Hello, Cross-compilation of glibc 2.11.1 from the official release tarball fails for me:
--8<---------------cut here---------------start------------->8--- gawk -f ../scripts/gen-as-const.awk ../sysdeps/i386/tlsdesc.sym \ | i586-pc-gnu-gcc -S -o /tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/tlsdesc.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-unwind-tables -g -Wno-parentheses -Wstrict-prototypes -mpreferred-stack-boundary=4 -I../include -I/tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/csu -I/tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build -I../sysdeps/i386/elf -I../sysdeps/mach/hurd/i386 -I../glibc-ports-2.11/sysdeps/mach/hurd -I../sysdeps/mach/hurd -I../sysdeps/gnu -I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman -I../sysdeps/mach/i386 -I../glibc-ports-2.11/sysdeps/mach -I../sysdeps/mach -I../sysdeps/i386/i586 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/unix/bsd -I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../glibc-ports-2.11 -I../hurd -I/tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/hurd/ -I../mach -I/tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/mach/ -I.. -I../libio -I. -nostdinc -isystem /nix/store/36gl2qi3s5xpfq4dibjgl1lplchq5drq-gcc-4.5.0-i586-pc-gnu-stage-static/lib/gcc/i586-pc-gnu/4.5.0/include -isystem /nix/store/36gl2qi3s5xpfq4dibjgl1lplchq5drq-gcc-4.5.0-i586-pc-gnu-stage-static/lib/gcc/i586-pc-gnu/4.5.0/include-fixed -isystem /nix/store/kr08bv2hkgpz1lvi49sn9vz8yyyjmhs3-hurd-0.4-7913beaef3e6a2c4f7f315a8db7a31dbe1f713e0/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/tlsdesc.h.dT -MT '/tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/tlsdesc.h.d /tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/tlsdesc.h' In file included from ../sysdeps/mach/hurd/tls.h:27:0, from ../sysdeps/mach/hurd/i386/tls.h:26, from ../include/tls.h:6, from ../sysdeps/mach/i386/sysdep.h:23, from <stdin>:2: /nix/store/mjbbjz6hz3axvprb2554las00diz5h63-gnumach-1.4-7987a711e8f13c0543e87a0211981f4b40ef6d94/include/mach/mig_errors.h:71:3: warning: function declaration isn't a prototype <stdin>: In function 'dummy': <stdin>:7:67: error: invalid use of undefined type 'struct pthread' make[2]: *** [/tmp/nix-build-0r7cgavcrf4h2ng9cys44izxfc5xw78b-glibc-2.11.1-i586-pc-gnu.drv-0/build/tlsdesc.h] Error 1 --8<---------------cut here---------------end--------------->8--- Is it a known issue fixed in hurd/glibc.git? Has it been reported upstream? Is there a simple patch that should be applied to work around it? Should I just give up building the “official” glibc and instead build From hurd/glibc.git? Thanks, Ludo’.
pgprR404lN3qm.pgp
Description: PGP signature