-
-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译MDK项目选择armclang编译器报错 #5809
Comments
Title: Compile MDK project and select armclang compiler to report an error |
我这里可以,去掉反而报错,提示要加这个 armclang: fatal error: no target architecture given; use --target=arm-arm-none-eabi or --target=aarch64-arm-none-eabi 而且你这提示的是
但是代码里根本没这个 arch 只有 xmake/xmake/toolchains/armclang/xmake.lua Line 60 in bfaaf9c
|
不清楚,我这里可以,你可以看下 编译器版本,是不是过低了 |
Not sure, I can do it here. You can check the compiler version to see if it is too low. |
版本兼容问题,你确认下最低支持版本是多少,可以根据版本来做兼容,也可以直接提个 pr 过来。 后面那个汇编问题,我不清楚,有可能新版本不支持 test example 里面的一些汇编语法,你可以自己调下代码 排查下。 |
For version compatibility issues, please confirm what the minimum supported version is. You can make compatibility based on the version, or you can directly submit a PR. I don't know about the assembly issue at the end. It's possible that the new version doesn't support some assembly syntax in the test example. You can adjust the code yourself to check. |
版本问题我修了,可以再试下 |
I have fixed the version problem. You can try |
当前的这个测试正常了 回头我再多测试几个,看这个代码应该是所有版本都OK了,感谢! |
The current test is normal. I will test a few more later and see that all versions of this code should be OK. Thank you! |
Xmake 版本
xmake v2.9.6 HEAD.abd15c255
操作系统版本和架构
Windows 10 version 22H2
描述问题
按官网教程
无法编译,报错
期待的结果
期望可以编译成功。
目前已找到解决方法,修改xmake安装目录下的
toolchains\armclang\xmake.lua
第70行,添加--
注释掉这一行,之后再次运行xmake即可成功编译修复后
工程配置
使用的官方github仓库下
tests\projects\embed\mdk\hello
示例附加信息和错误日志
已经有解决方案
The text was updated successfully, but these errors were encountered: