This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
sparc compile error with 2.20
- From: Waldemar Brodkorb <wbx at openadk dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 11 Sep 2014 17:35:28 +0200
- Subject: sparc compile error with 2.20
- Authentication-results: sourceware.org; auth=none
Hi,
recently I tried to update my buildsystem to use glibc 2.20.
Most architectures are working fine, but sparc fails to compile:
See here the full log:
http://www.openadk.org/glibc/make.log
/home/wbx/adk/toolchain_qemu-sparc_glibc_sparc/usr/bin/sparc-openadk-linux-gnu-gcc
../sysdeps/sparc/sparc32/sem_trywait.c -c -std=gnu99 -fgnu89-inline
-O2 -Wall -Winline -Wundef -Wwrite-strings -fhonour-copts
-fmerge-all-constants -fno-asynchronous-unwind-tables -fno-ident
-fno-unwind-tables -frounding-math -fwrapv -g3 -mcpu=v8 -pipe
-Wstrict-prototypes -mlong-double-128 -fomit-frame-pointer
-I../include
-I/home/wbx/adk/toolchain_build_qemu-sparc_glibc_sparc/w-glibc-2.20-1/glibc-2.20-final/nptl
-I/home/wbx/adk/toolchain_build_qemu-sparc_glibc_sparc/w-glibc-2.20-1/glibc-2.20-final
-I../sysdeps/unix/sysv/linux/sparc/sparc32/fpu
-I../sysdeps/sparc/sparc32/fpu
-I../sysdeps/unix/sysv/linux/sparc/sparc32
-I../sysdeps/ieee754/ldbl-64-128 -I../sysdeps/ieee754/ldbl-opt
-I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/sparc/nptl
-I../sysdeps/unix/sysv/linux -I../sysdeps/nptl
-I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/sparc/sparc32/soft-fp
-I../sysdeps/sparc/fpu -I../sysdeps/sparc -I../sysdeps/ieee754
-I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem
/home/wbx/adk/toolchain_qemu-sparc_glibc_sparc/usr/lib/gcc/sparc-openadk-linux-gnu/4.8.3/include
-isystem
/home/wbx/adk/toolchain_qemu-sparc_glibc_sparc/usr/lib/gcc/sparc-openadk-linux-gnu/4.8.3/include-fixed
-isystem /home/wbx/adk/target_qemu-sparc_glibc_sparc/usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h
-DNOT_IN_libc=1 -DIS_IN_libpthread=1 -DIN_LIB=libpthread -o
/home/wbx/adk/toolchain_build_qemu-sparc_glibc_sparc/w-glibc-2.20-1/glibc-2.20-final/nptl/sem_trywait.o
-MD -MP -MF
/home/wbx/adk/toolchain_build_qemu-sparc_glibc_sparc/w-glibc-2.20-1/glibc-2.20-final/nptl/sem_trywait.o.dt
-MT
/home/wbx/adk/toolchain_build_qemu-sparc_glibc_sparc/w-glibc-2.20-1/glibc-2.20-final/nptl/sem_trywait.o
../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);
^
../include/atomic.h:372:18: note: in definition of macro
'atomic_decrement_if_positive'
({ __typeof (*(mem)) __atg11_oldval; \
^
../sysdeps/sparc/sparc32/sem_trywait.c:38:43: error: dereferencing
pointer to incomplete type
val = atomic_decrement_if_positive (&isem->value);
^
...
What's wrong here?
gcc 4.8.3 and binutils 2.24.
2.19 works fine.
best regards
Waldemar