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

Provide GCC 14 #398

Open
eschnett opened this issue Dec 25, 2024 · 7 comments
Open

Provide GCC 14 #398

eschnett opened this issue Dec 25, 2024 · 7 comments

Comments

@eschnett
Copy link
Contributor

It seems that Rust isn't well supported in GCC 12 or 13. The release notes of GCC 14 promise much better support, including support for vector extensions. It would be convenient to provide GCC 14 in BinaryBuilder.

@eschnett
Copy link
Contributor Author

I have a prototype implementation of GCC 14.2. It's difficult to build old glibc versions with it so I'm building glibc 2.35 at the moment. Please advise.

  • Is GCC 14.2 the right version to target?
  • Is it possible to use glibc 2.35? If not, which older version would be acceptable? Is it necessary to remain with the antediluvian 2.17?

@giordano
Copy link
Member

It seems that Rust isn't well supported in GCC 12 or 13.

I presume you meant RISC-V instead of Rust 🙂

It's difficult to build old glibc versions with it so I'm building glibc 2.35 at the moment.

For architetuctures like x86_64 which have thousands of systems around still running Red Hat 7 (in extended support up to 2027 or 28, don't remember), which ships with glibc 2.17 that's a no-go. RISC-V is different because it's a much more recent architecture, with only few usable (for Julia workloads) boards, we have less constraints about it.

@giordano
Copy link
Member

Can you please elaborate on what's the issue with glibc 2.17?

@giordano giordano transferred this issue from JuliaPackaging/Yggdrasil Dec 25, 2024
@eschnett
Copy link
Contributor Author

The particular error I'm seeing is that it complains that the flag --no-whole-archive or somesuch is not supported.

@giordano
Copy link
Member

That's a linker option (which we use often), I'm missing the connection with the glibc version.

@eschnett
Copy link
Contributor Author

The failing command is

sandbox:${WORKSPACE}/srcdir/glibc_build # ${WORKSPACE}/srcdir/glibc-*/configure --prefix=/usr --host=${COMPILER_TARGET} --build=${HOST_TARGET} --with-headers="${sysroot}/usr/include" --disable-multilib --disable-werror ${GLIBC_CONFIGURE_OVERRIDES[@]}

and the error message is

[20:58:03] checking for ld --no-whole-archive... no
[20:58:03] configure: error: support for --no-whole-archive is needed

This error is not there with glibc 2.35. (I haven't investigated the error.)

@giordano
Copy link
Member

Usual suggestion: read the log file, the actual error may be different than what printed to screen.

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

2 participants