pthreadtypes.h Error
hunold at linuxtv.org
hunold at linuxtv.org
Tue Jan 17 13:46:30 UTC 2006
Hi,
meanwhile I switched to the following configuration:
latest buildroot from SVN (13369)
BR2_ARCH="mips"
BR2_ENDIAN="BIG"
BR2_KERNEL_HEADERS_2_4_25=y
BR2_UCLIBC_VERSION_SNAPSHOT=y
BR2_BINUTILS_VERSION_2_16_1=y
BR2_GCC_VERSION_4_0_2=y
Compiling uClibc fails with the following error:
----------------------------------schnipp---------------------------------
cat
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/con
fig/fp-bit.c >> dp-bit.c
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2-initial
/gcc/xgcc -B/mnt/teemhu/devel/buildroot/build
root/toolchain_build_mips/gcc-4.0.2-initial/gcc/
-B/opt/tc90400/mips-linux-uclibc/bin/ -B/opt/tc90400/mips-linux-uclibc/l ib/
-isystem /opt/tc90400/mips-linux-uclibc/include -isystem
/opt/tc90400/mips-linux-uclibc/sys-include -O2 -DIN_GCC -DCR OSS_COMPILE
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./includ e -I. -I.
-I/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc
-I/mnt/teemhu/devel/buildroot/build
root/toolchain_build_mips/gcc-4.0.2/gcc/.
-I/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/.
./i nclude
-I/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/.
./libcpp/include -g0 -finhibit-size- directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time \
-c
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/crt
stuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc_dev//usr/i
nclude/stdio.h:36,
from
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/tsy
stem.h:90,
from
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/crt
stuff.c:64:
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc_dev//usr/i
nclude/bits/types.h:164:32: error: bits/pthre adtypes.h: No such file or
directory
In file included from
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc_dev//usr/i
nclude/stdio.h:72,
from
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/tsy
stem.h:90,
from
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2/gcc/crt
stuff.c:64:
/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc_dev//usr/i
nclude/bits/uClibc_stdio.h:299: error: syntax error before
'pthread_mutex_t'
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory
`/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2-initia
l/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
`/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2-initia
l'
make: ***
[/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/gcc-4.0.2-initia
l/.compiled] Error 2
----------------------------------schnipp---------------------------------
To solve this problem, I copied two header files as mentioned in some other
mail:
----------------------------------schnipp---------------------------------
cp ./toolchain_build_mips/uClibc/include/bits/sigthread.h
./toolchain_build_mips/gcc-4.0.2-initial/gcc/include/bits
cp ./toolchain_build_mips/uClibc/include/bits/pthreadtypes.h
./toolchain_build_mips/gcc-4.0.2-initial/gcc/include/bits
----------------------------------schnipp---------------------------------
But unfortunately, now it fails later on:
----------------------------------schnipp---------------------------------
STRIP -x -R .note -R .comment ldso/libdl/libdl_so.a
AR cr ldso/libdl/libdl_so.a
make[2]: Entering directory
`/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc'
CC libc/sysdeps/linux/mips/__longjmp.os
libc/sysdeps/linux/mips/__longjmp.c:26: error: '__longjmp' undeclared here
(not in a function)
libc/sysdeps/linux/mips/__longjmp.c:26: warning: type defaults to 'int' in
declaration of '__longjmp'
libc/sysdeps/linux/mips/__longjmp.c:33: error: '__longjmp' redeclared as
different kind of symbol
libc/sysdeps/linux/mips/__longjmp.c:26: error: previous declaration of
'__longjmp' was here
libc/sysdeps/linux/mips/__longjmp.c:87: error: '__EI___longjmp' aliased to
undefined symbol '__GI___longjmp'
make[2]: *** [libc/sysdeps/linux/mips/__longjmp.os] Error 1
make[2]: Leaving directory
`/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc'
make[1]: *** [lib/libc.so.0] Error 2
make[1]: Leaving directory
`/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc'
make: ***
[/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips/uClibc/lib/libc.
a] Error 2
----------------------------------schnipp---------------------------------
I'll try to dig into this problem, but I'm new to this. Any help is
appreciated.
CU
Michael.
More information about the uClibc
mailing list