Closed blta closed 2 years ago
riscv-nuclei-elf-gcc: error: -march=rv32imac -mabi=ilp32 -mcmodel=medany : No such file or directory
应该是没找到工具链,rtconfig.py中的工具链路径及配置是否正确?
riscv-nuclei-elf-gcc: error: -march=rv32imac -mabi=ilp32 -mcmodel=medany : No such file or directory
应该是没找到工具链,rtconfig.py中的工具链路径及配置是否正确?
工具链配置正确的, 编译配置应该有问题,但是和rtthread-stdudio生成rvstart工程的rtconfing.py 差别不大,很奇怪!
最新进展:
git diff
diff --git a/bsp/nuclei/gd32vf103_rvstar/SConstruct b/bsp/nuclei/gd32vf103_rvstar/SConstruct
index 56c576acc..11e4a3ee3 100644
--- a/bsp/nuclei/gd32vf103_rvstar/SConstruct
+++ b/bsp/nuclei/gd32vf103_rvstar/SConstruct
@@ -23,7 +23,7 @@ AddOption('--run',
DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
- CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
+ CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', LIBS = rtconfig.LIBS,
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
把Sconstruct里的CFLAG改成CCFLAG就可以了(和rtthread-stdudio生成rvstart工程保持一致) 我有空找个rvstart板子测试一下运行情况,提个PR
感觉像是rtconfig.py配置问题
另外使用rtthread-stdudio生成的rvstart工程,同样的编译器是可以编译通过的,
复制该rtconfig.py修改部分错误后编译还是同样的错误!