Skip to content
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

xmake更新之后原有工程编译不了 #4769

Closed
Dozingfiretruck opened this issue Feb 26, 2024 · 13 comments
Closed

xmake更新之后原有工程编译不了 #4769

Dozingfiretruck opened this issue Feb 26, 2024 · 13 comments
Labels
Milestone

Comments

@Dozingfiretruck
Copy link

Xmake 版本

2.8.7

操作系统版本和架构

win10

描述问题

貌似把warning当做错误了,只要出现这个warning,后面不管编译什么都当做错误停止
bb9cc9a4029d7620dbcb2b4c985678ae

期待的结果

正常编译

工程配置

仓库地址 : https://gitee.com/openLuat/luatos-soc-air101

附加信息和错误日志

error: gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
..\LuatOS\components\luatfonts\luat_lib_fonts.c:1:0: error: bad value (ck804ef) for -mtune= switch
/*
^

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: The original project cannot be compiled after xmake is updated.

@waruqi
Copy link
Member

waruqi commented Feb 26, 2024

xmake 不会处理 warning 只会判断 gcc 的 exit code ,非 0 就退出。

即使有错,也是 Gcc 报错导致,可以对比前后 flags 的差异

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


xmake will not handle warnings and will only judge the exit code of gcc. If it is not 0, it will exit.

Even if there is an error, it is caused by Gcc error. You can compare the difference in flags before and after.

@Dozingfiretruck
Copy link
Author

xmake 不会处理 warning 只会判断 gcc 的 exit code ,非 0 就退出。

即使有错,也是 Gcc 报错导致,可以对比前后 flags 的差异

没有差异,工程不变,只更新xmake,2.8.6一切正常

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


xmake will not handle warnings, but will only judge the exit code of gcc, and exit if it is not 0.

Even if there is an error, it is caused by Gcc error. You can compare the difference in flags before and after

There is no difference, the project remains unchanged, only xmake is updated, everything is normal with 2.8.6

waruqi added a commit that referenced this issue Feb 26, 2024
@waruqi
Copy link
Member

waruqi commented Feb 26, 2024

再试下。。xmake update -s dev; xmake f -c

@waruqi waruqi added this to the v2.8.8 milestone Feb 26, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Try again. . xmake update -s dev; xmake f -c

@Dozingfiretruck
Copy link
Author

再试下。。xmake update -s dev; xmake f -c

可以了,这个影响应该比较大,下个版本是不是会提前发布

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Try again. . xmake update -s dev; xmake f -c

Okay, this impact should be relatively large. Will the next version be released in advance?

@waruqi
Copy link
Member

waruqi commented Feb 26, 2024

看情况。

@waruqi waruqi closed this as completed Feb 26, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It depends.

@waruqi
Copy link
Member

waruqi commented Mar 2, 2024

更新了。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants