Created attachment 5926 [details] build log I've tried to build glibc for in git HEAD as of today. Here's the first error message, full log as attachment. ../sysdeps/sparc/sparc32/sem_trywait.c: In function '__new_sem_trywait': ../sysdeps/sparc/sparc32/sem_trywait.c:35:11: error: dereferencing pointer to incomplete type if (isem->value > 0) ^ In file included from ../include/list.h:45:0, from ../sysdeps/sparc/nptl/tls.h:28, from ../include/errno.h:27, from ../sysdeps/sparc/sparc32/sem_trywait.c:20: ../sysdeps/sparc/sparc32/sem_trywait.c:38:43: error: dereferencing pointer to incomplete type val = atomic_decrement_if_positive (&isem->value); ^
Thanks for the headsup, just sent a patch to the list to disable 2.20 for sparc which leaves 2.21 (tested working with qemu).
You could also apply this simple patch: diff -Nur glibc-2.20.orig/sysdeps/sparc/sparc32/sem_trywait.c glibc-2.20/sysdeps/sparc/sparc32/sem_trywait.c --- glibc-2.20.orig/sysdeps/sparc/sparc32/sem_trywait.c 2014-09-07 10:09:09.000000000 +0200 +++ glibc-2.20/sysdeps/sparc/sparc32/sem_trywait.c 2014-09-13 10:21:44.000000000 +0200 @@ -22,6 +22,7 @@ #include <lowlevellock.h> #include <internaltypes.h> #include <semaphore.h> +#include <sparc-nptl.h> #include <shlib-compat.h>
Fixed by http://git.buildroot.net/buildroot/commit/?id=dbf7da63188d461e738dcfcaa436b84baa23143c, which basically disallows glibc 2.20 on SPARC. Waldemar, I noticed your proposal, but since glibc 2.21 just builds/works out of the box on SPARC, there isn't much point in carrying a build fix for glibc 2.20.