Hello everyone, sorry if this is a duplicate bug, the search function wouldn't load for me and "possible duplicates" is showing "data error." Adding --disable-shared (to make a static C library for sysroot) breaks the build of GLIBC very early on as it fails to generate the libc-modules.h file. I have looked over commit 130ac68ca25c9aa65e027e3e37337bc048205c69 but was unable to fix the issue. Master branch and gentoo/2.24 both fail for me (haven't tried others.) In the mean time I have built GLIBC for my custom build environment without that option. Full configure line: ../configure --prefix=/home/<scrubbed>/git-toolchain-bin/usr --with-binutils=/home/<scrubbed>/git-toolchain-bin/usr/bin --with-headers=/home/<scrubbed>/git-toolchain-bin/usr/include --disable-shared Thank you, and again, sorry for the possible duplicate! Build log attached. Alec Ari
*** Bug 20846 has been marked as a duplicate of this bug. ***
I have this problem aswell.
(In reply to rmtaliancich from comment #2) > I have this problem aswell. I'd use musl if you need a static build for now. It's the most stable, working approach. Smaller, designed for static linking, more portable, etc.
We don't have much testing to cover the esoteric build configurations. Your best bet is to try investigate this yourself and post patches to libc-alpha@sourceware.org for review. Once you get --disable-shared working cleanly, you should suggest that scripts/build-many-glibcs.py be improved to include at least one x86_64 build configuration with --disable-shared so we can ensure that breakage is detected early.