Treasure101 发表于 2025-10-6 09:09

“make -j4 all”以退出代码2终止。

我在构建空项目时遇到了这个错误“make -j4 all”以退出代码2终止。似乎是inc文件中缺少关键内容?
make -j4 all
arm-none-eabi-gcc -o "test.elf" @"objects.list"-mcpu=cortex-m4 -T"\\MAC\Home\Desktop\Embedded-C\My_workspace\host\test\STM32F446RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="test.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.10.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: cannot open linker script file \MAC\Home\Desktop\Embedded-C\My_workspace\host\test\STM32F446RETX_FLASH.ld: No such file or directory
collect2.exe: error: ld returned 1 exit status
make: *** Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.



页: [1]
查看完整版本: “make -j4 all”以退出代码2终止。