AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-653985

Cameron Tacklind's questions

Martin Hope
Cameron Tacklind
Asked: 2020-11-25 17:28:16 +0800 CST

Windows 上的 Make 似乎无法创建或运行临时 shell

  • 5

我正在尝试构建一个项目,即LUFA 提供的 AVR 设备的引导加载程序,它使用 GNU Make ( make),但我在 Windows 上。虽然 Windows 本身并不一定是问题所在,但它显然是个麻烦事。

我已经make通过 Chocolatey 安装了其他辅助程序(grep、mingw、...)。我有时也在他们的设备上安装了 Cygwin/MinGW,但相信我没有使用这些二进制文件……但也许他们没有帮助……

在执行第一个 make 目标之前,我正在运行make并收到错误:

#...

test:
  echo test

#...

结果:

C:\Users\camer\git\Project\bootloader>make
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
echo test
test

make -d似乎显示了导致The system cannot find the path specified.错误的原因:

PS C:\Users\camer\git\Project\bootloader> make -d
GNU Make 4.3
Built for Windows32
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Reading makefile 'Makefile'...
CreateProcess(C:\WINDOWS\system32\hostname.exe,hostname,...)
Main thread handle = 00000110
Reading makefile 'local.HOSTNAME.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/LUFA/lufa-sources.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/LUFA/lufa-gcc.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/core.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/cppcheck.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/core.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/doxygen.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/core.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/dfu.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/core.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/gcc.mk' (search path) (no ~ expansion)...
Reading makefile 'LUFA/LUFA/Build/DMBS/DMBS/core.mk' (search path) (no ~ expansion)...
Creating temporary batch file C:\Users\camer\AppData\Local\Temp\make14552-1.bat
Batch file contents:
        @echo off
        mkdir -p obj 2> /dev/null
CreateProcess(C:\Users\camer\AppData\Local\Temp\make14552-1.bat,C:\Users\camer\AppData\Local\Temp\make14552-1.bat,...)
The system cannot find the path specified.
Cleaning up temporary batch file C:\Users\camer\AppData\Local\Temp\make14552-1.bat
...

因此,看起来make正在尝试在 Windows 上创建临时批处理 ( .bat) 文件并执行该文件以获得一些输出的一些解决方法。或者这可能是标准做法,它.sh在 Linux 上创建了一个脚本......无论如何,这似乎是由于某种原因而失败的原因。

查看 LUFA 包含的 Makefiles ( LUFA/LUFA/Build/DMBS/DMBS/*.mk),我可以看到正在尝试运行的指令:

#...
# Create the output object file directory if it does not exist and add it to the virtual path list
$(shell mkdir -p $(OBJDIR) 2> /dev/null)
#...

因此,有关 Make 的内置shell功能在 Windows 10 上失败了。

奇怪的是,这些错误不会导致构建失败。您可以在我的示例中看到echo test它仍在运行。

事实证明,这会导致 LUFA 的 Makefile 出现一系列其他问题。内置函数用于填充许多 make var ,shell并且许多构建步骤期望这些变量为非空。由于shell调用失败而没有取消整个执行,所以一切都中断了。

我不太确定下一步该去哪里解决我的问题。是不是我使用的版本不好make?我尝试了一些make.exe来自不同地方的二进制文件,它们都有这个错误(如果有记忆的话)。我很确定我已经让这些 make 文件在以前的 Windows 安装中运行,但是那台计算机现在处于脱机状态,所以我无法比较。

谢谢你的目光!干杯!

windows-10 cmd.exe
  • 1 个回答
  • 169 Views
Martin Hope
Cameron Tacklind
Asked: 2019-11-02 16:55:28 +0800 CST

如何在 Linux 中格式化闪存驱动器以用于其他操作系统

  • 5

我有一个全新的闪存驱动器,插入树莓派。我想将内容写入驱动器,然后在 macOS、Windows 或其他 Linux 发行版上轻松读取。

我应该如何使用 cli 工具将此驱动器格式化为每个系统都可以轻松使用的大文件系统?

我们现在可以忽略确保数据全部写入驱动器/干净卸载的问题,但最好谈谈这一点。对热拔出有弹性的答案的奖励积分。


虽然我过去在 linux only 驱动器上成功地使用了没有分区表的驱动器,但我知道分区表对于在其他操作系统上的易用性很有用。

应该使用标准 BIOS 分区/MBR ( fdisk/ cfdisk) 吗?还是我们想用 GPT 格式化?

我假设将一个“主”分区设置为最大大小fdisk是标准方法,但是应该使用什么“分区类型”?83肯定不是默认的吗?

至于文件系统,是 FAT32(mkfs.fat [对吗?])、VFAT(mkfs.vfat)还是其他“标准”?微软现在正在推动 exFAT( mkfs.exfat) 用于更大的驱动器(我的驱动器是 128GB),对吧?但是,我听说某些 Linux 发行版(在我的情况下为 Raspbian)上的内核不支持 exFAT。最好不需要使用 FUSE 来挂载,我知道这是用于 exFAT 的。

partitioning usb-flash-drive
  • 1 个回答
  • 1099 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve