Summary: | =dev-libs/klibc-1.5.25 fails to build with clang-3.1-r4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabio Scaccabarozzi <fsvm88> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | anton.kochkov, fsvm88, mgorny, wizardedit |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963, 410945 | ||
Attachments: |
emerge fail log
Patch for klibc-2.0.4 to compile with 4.4.1 kernel sources. Emerge compile log with ebuild patches. |
Please retest on klibc-2.0.3, so we can stabilize the new series and drop the 1.5 series if all tests are good. (In reply to Robin Johnson from comment #1) > Please retest on klibc-2.0.3, so we can stabilize the new series and drop > the 1.5 series if all tests are good. Retested with clang-3.4.2 and klibc 2.0.3-r1. It now fails because of invalid arguments (fno-delete-null-pointer-checks and maccumulate-outgoing-args). I tried to track these down in the sources, but couldn't find them. Retested with klibc-2.0.4 and clang-3.7/3.8_rc1, still fails when compiling. I bumped the kernel version used by the ebuild to 4.4.1, to no avail (except for the fact that the unknown compile flags are not hard errors anymore, but just soft warnings). Note that with the linux-3.12 headers the errors may be much harder to fix, and anyway klibc's usr/klibc/README.klibc mentions "Extract a recent Linux kernel into a directory". Please see the attached patch for the ebuild updates and the compile log with the patched ebuild. Note that I removed all the logic for calculating the kernel version and patches. I know fetching patches is the preferred way because it reuses the same kernel base tarball, on the other hand it's much harder to read and understand - feel free to ignore those changes and/or fix as needed the original ebuild. Created attachment 424728 [details, diff]
Patch for klibc-2.0.4 to compile with 4.4.1 kernel sources.
Created attachment 424730 [details]
Emerge compile log with ebuild patches.
klibc-1.5.25.ebuild klibc-2.0.2.ebuild klibc-2.0.2-r1.ebuild klibc-2.0.3.ebuild klibc-2.0.3-r1.ebuild klibc-2.0.4.ebuild all build for me with clang 3.5.0. (In reply to Austin English from comment #6) > klibc-1.5.25.ebuild > klibc-2.0.2.ebuild > klibc-2.0.2-r1.ebuild > klibc-2.0.3.ebuild > klibc-2.0.3-r1.ebuild > klibc-2.0.4.ebuild > > all build for me with clang 3.5.0. Mistake on my end, forgot to put clang after package name in package.env. 1.5.25 still fails: x86_64-pc-linux-gnu-clang-3.5.0: error: unknown argument: '-fno-delete-null-pointer-checks' x86_64-pc-linux-gnu-clang-3.5.0: error: unknown argument: '-maccumulate-outgoing-args' Confirming. Currently blocked by: https://llvm.org/bugs/show_bug.cgi?id=9251 https://llvm.org/bugs/show_bug.cgi?id=28145 in clang-3.8, and bug 410945 (linux kernel doesn't build with clang). Reassigning to the maintainer. still valid with 2.0.4-r3? Many changes in clang since. Please reopen if you can still repro it with new versions of clang. |
Created attachment 318748 [details] emerge fail log =dev-libs/klibc-1.5.25 fails to build with clang-3.1-r4