-
Notifications
You must be signed in to change notification settings - Fork 643
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
build error x86_64-linux-gnu #2090
Comments
Possibly similar to rust-lang/rust#76984
|
It may not be the same as this question. I am using gnu gcc, not TDM-GCC and MinGW. You can take a look at the .config file I uploaded. And when I use gcc 7.5.0, this error will be reported, but gcc 13.2.0 will not report an error. |
TDM-GCC and MinGW both use gcc. gcc in itself sands for gnu compiler collection or gnu c compiler. |
So is there a solution to this? |
The best solution would be to use a newer version of GCC. |
However, other dependencies in my project are compiled using gcc7. If compiled with a newer version of gcc, it will not be compatible with the previous library. Recompiling all dependencies is very labor intensive. |
AFAIK the only library ( |
I've experimented with compiling using GCC 13. In my project, I'm using static libraries. When attempting to compile with a higher version of GCC, I encounter LTO (Link Time Optimization) linking errors. Even when disabling LTO optimization, other errors persist. Therefore, it's crucial to maintain consistency in the GCC version throughout the project. |
IMO recompiling everything using gcc 13 is more future proof. I know something like this can take a while but it schoudn't be more than 3-2 days. Build servers can minimize the downtime of not compiling in the night or similar. |
.config
withbuild.log
ct-ng.zipThe text was updated successfully, but these errors were encountered: