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

Fails to build ninja with mold linker on gcc15 #1336

Closed
blackteahamburger opened this issue Aug 29, 2024 · 5 comments
Closed

Fails to build ninja with mold linker on gcc15 #1336

blackteahamburger opened this issue Aug 29, 2024 · 5 comments

Comments

@blackteahamburger
Copy link

blackteahamburger commented Aug 29, 2024

build.log
emerge-info-output.log
Ref: https://bugs.gentoo.org/938659

Without -fuse-ld=mold build succeeds.

Edit: gdb.txt

@rui314
Copy link
Owner

rui314 commented Aug 29, 2024

Thank you for your report. GCC 15 is not released yet, no? If that's the case, it might be a bug that is in the development branch. You may want to report it to GCC.

@jwakely
Copy link

jwakely commented Aug 29, 2024

The build.log seems to show that the python configure.py step fails, but the logs don't show any information about why, except that ninja trapped.

There is nothing useful here that can be reported as a GCC bug, and a gentoo toolchain dev is unable to reproduce this.

Please rebuild with -g3, ulimit -c unlimited, and check coredumpctl

@blackteahamburger
Copy link
Author

I recompiled it using gcc-14 but it still failed. It never failed before. My gcc-14 and mold are built on gcc-15.

@rui314
Copy link
Owner

rui314 commented Aug 31, 2024

Is there any possibility that gcc 15 miscompiled mold? Overall, it looks more like an issue with the gcc dev branch rather than a mold issue.

@blackteahamburger
Copy link
Author

It seems that gcc 15 has broken too many things. I don't want to move further because I have reinstalled my system.

@blackteahamburger blackteahamburger closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants