Linux 下编译错误,提示arm-none-eabi-gcc没有找到?但这个文件路径是正常的

(py3.9) dongtao@linux:~/openSiFli/sifli-sdk/example/get-started/hello_world/rtt/project$ scons --board=em-lb525
scons: Reading SConscript files …
Board: em-lb525_hcpu

Multi-Project Info

full_name main.bootloader
parent main
bsp_root /home/dongtao/openSiFli/sifli-sdk/example/boot_loader/project/butterflmicro/ram_v2
build_dir build_em-lb525_hcpu/bootloader
link_script /home/dongtao/openSiFli/sifli-sdk/example/boot_loader/project/butterflmicro/ram_v2/link
ptab /home/dongtao/openSiFli/sifli-sdk/customer/boards/em-lb525/ptab.json
embedded: False

full_name main
parent
bsp_root /home/dongtao/openSiFli/sifli-sdk/example/get-started/hello_world/rtt/project
build_dir build_em-lb525_hcpu/
link_script /home/dongtao/openSiFli/sifli-sdk/drivers/cmsis/sf32lb52x/Templates/gcc/HCPU/link
ptab /home/dongtao/openSiFli/sifli-sdk/customer/boards/em-lb525/ptab.json

full_name main.ftab
parent main
bsp_root /home/dongtao/openSiFli/sifli-sdk/example/flash_table/sf32lb52x_common_v2
build_dir build_em-lb525_hcpu/ftab
link_script /home/dongtao/openSiFli/sifli-sdk/drivers/cmsis/sf32lb52x/Templates/gcc/HCPU/link
ptab /home/dongtao/openSiFli/sifli-sdk/customer/boards/em-lb525/ptab.json
embedded: False

scons: done reading SConscript files.
scons: Building targets …
scons: building associated VariantDir targets: build_em-lb525_hcpu . .
CC build_em-lb525_hcpu/bootloader/board/bf0_ap_hal_msp.o
sh: 1: arm-none-eabi-gcc: not found
scons: *** [build_em-lb525_hcpu/bootloader/board/bf0_ap_hal_msp.o] Error 127
scons: building terminated because of errors.

您好,请问一下在运行之前您是否已经执行过 . export.sh脚本

执行过->
(py3.9) dongtao@linux:~/openSiFli/sifli-sdk$ . ./export.sh
Checking “python3” …
Python 3.9.21
“python3” has been detected
Activating SIFLI_SDK 2.3
Setting SIFLI_SDK_PATH to ‘/home/dongtao/openSiFli/sifli-sdk’.

  • Checking python version … 3.9.21
  • Checking python dependencies … OK
  • Deactivating the current SiFli-SDK environment (if any) … OK
  • Establishing a new SiFli-SDK environment … OK
  • Identifying shell … bash
  • Detecting outdated tools in system … OK - no outdated tools found
  • Shell completion … Autocompletion code generated

Done! You can now compile SIFLI-SDK projects.
Go to the project directory and run:

You can refer to the 编译下载 - SiFli SDK编程指南 文档 to continue
(py3.9) dongtao@linux:~/openSiFli/sifli-sdk$

目前有一个workaround的方式,你可以尝试执行两次. ./export.sh

哈哈,确实可行,但有新的错误->
(py3.9) dongtao@linux:~/openSiFli/sifli-sdk/example/get-started/hello_world/rtt/project$
scons --board=em-lb525 -j8
scons: Reading SConscript files …
Board: em-lb525_hcpu

Multi-Project Info

full_name main.bootloader
parent main
bsp_root /home/dongtao/openSiFli/sifli-sdk/example/boot_loader/project/butterflmicro/ram_v2
build_dir build_em-lb525_hcpu/bootloader
link_script /home/dongtao/openSiFli/sifli-sdk/example/boot_loader/project/butterflmicro/ram_v2/link
ptab /home/dongtao/openSiFli/sifli-sdk/customer/boards/em-lb525/ptab.json
embedded: False

full_name main
parent
bsp_root /home/dongtao/openSiFli/sifli-sdk/example/get-started/hello_world/rtt/project
build_dir build_em-lb525_hcpu/
link_script /home/dongtao/openSiFli/sifli-sdk/drivers/cmsis/sf32lb52x/Templates/gcc/HCPU/link
ptab /home/dongtao/openSiFli/sifli-sdk/customer/boards/em-lb525/ptab.json

full_name main.ftab
parent main
bsp_root /home/dongtao/openSiFli/sifli-sdk/example/flash_table/sf32lb52x_common_v2
build_dir build_em-lb525_hcpu/ftab
link_script /home/dongtao/openSiFli/sifli-sdk/drivers/cmsis/sf32lb52x/Templates/gcc/HCPU/link
ptab /home/dongtao/openSiFli/sifli-sdk/customer/boards/em-lb525/ptab.json
embedded: False

scons: done reading SConscript files.
scons: Building targets …
scons: building associated VariantDir targets: build_em-lb525_hcpu . .
scons: *** [build_em-lb525_hcpu/bootloader/sifli_sdk/drivers/cmsis/sf32lb52x/Templates/gcc/startup_bf0_hcpu.o] Source /home/dongtao/openSiFli/sifli-sdk/drivers/cmsis/sf32lb52x/Templates/gcc/startup_bf0_hcpu.s' not found, needed by target build_em-lb525_hcpu/bootloader/sifli_sdk/drivers/cmsis/sf32lb52x/Templates/gcc/startup_bf0_hcpu.o’.
scons: building terminated because of errors.
(py3.9) dongtao@linux:~/openSiFli/sifli-sdk/example/get-started/hello_world/rtt/project$

这个是因为有些大小写不敏感的情况,导致在大小写敏感的文件系统上会出现问题。这是个已知bug,将在下次release的时候修复

嗯,我下载了2.3.6可以编译通过了,谢谢!