Problems building Linux-MIPS Toolchain on Linux-IA32 system
Stuart Longland
stuartl@longlandclan.hopto.org
Thu Mar 6 05:00:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm in the process of building a Linux-MIPS toolchain for my main
system. I've managed to install binutils, however, GCC fails to compile
with the following message. I'm trying to build this toolchain so I can
build Linux-From-Scratch to run on a Silicon Graphics Indy, and
eventually, start another Linux distribution specifically for this system.
Details on my build host:
CPU: 2xIntel Pentium III Coppermine 1GHz
RAM: 1024MB
Hard Drives: 2x 40GB IDE
8GB partitioned for Linux
Packages are being built on second hard
drive which at the moment is 100%
reiserFS mounted on /mnt
Operating System:
Red Hat Linux 8.0 (Intel) with Linux 2.4.20
Development packages involved:
binutils-2.13.90.0.2-2
gcc-3.2-7
glibc-2.2.93-5
Details on my target system:
Silicon Graphics Indy
CPU: 1xMIPS R4600 133MHz
RAM: 256MB
Hard Drives: 1x Seagate Barracuda
Operating System:
None - Linux From Scratch v4 is planned with
kernel 2.4.20
I'm using the following sources, downloaded from a mirror.
binutils-2.13.tar.gz
gcc-3.2.tar.gz
glibc-2.2.5.tar.gz
linux-2.4.20.tar.bz2
To build the toolchain, I'm following these instructions:
http://foobazco.org/~wesolows/mips-cross.html
Chain of events-----------------------------------------------------
Mounted /dev/hdb1 on /mnt
Created the following directories:
/mnt/gplinux-mips <- Distribution root
" /build <- Sources being built
" /binutils
" /gcc
" /glibc
" /packages <- Source Packages
" /sources <- Unpacked Source
" /binutils
" /gcc
" /glibc
" /linux
" /toolchain <- Prefix for toolchain
Unpacked the source packages:
binutils-2.13.tar.gz -> /mnt/gplinux-mips/sources/binutils
gcc-3.2.tar.gz -> /mnt/gplinux-mips/sources/gcc
glibc-2.2.5.tar.gz -> /mnt/gplinux-mips/sources/glibc
Built binutils:
# cd /mnt/gplinux-mips/build/binutils
# ../../sources/binutils/configure \
--prefix=/mnt/gplinux-mips/toolchain \
--target=mips-linux
(Succeeded)
# make MAKE="make -j3"
(Succeeded)
# make install
(Succeeded)
Binutils now appears in /mnt/gplinux-mips/toolchain
# ls /mnt/gplinux-mips/toolchain/
bin include info lib man mips-linux share
Attempted to build gcc:
# export PATH="$PATH:/mnt/gplinux-mips/toolchain/bin"
# cd /mnt/gplinux-mips/build/gcc
# AR=mips-linux-ar RANLIB=mips-linux-ranlib \
../gcc-000622/configure --prefix=/mnt/gplinux-mips/toolchain \
--target=mips-linux --with-newlib --enable-threads
# make -C libiberty LANGUAGES=c MAKE="make -j3" (Success to this point)
# make -C gcc LANGUAGES=c MAKE="make -j3" (Fails)
make: Entering directory `/mnt/gplinux-mips/build/gcc/gcc'
(cd intl && make -j3 all)
make[1]: Entering directory `/mnt/gplinux-mips/build/gcc/gcc/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/gplinux-mips/build/gcc/gcc/intl'
make -j3 GCC_FOR_TARGET="./xgcc -B./
- -B/mnt/gplinux-mips/toolchain/mips-linux/bin/ -isystem
/mnt/gplinux-mips/toolchain/mips-linux/include -isystem
/mnt/gplinux-mips/toolchain/mips-linux/sys-include" \
~ HOST_PREFIX="" HOST_PREFIX_1="ignore-" \
~ AR_FOR_TARGET="` if [ -f
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ar ] ; then echo
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ar ; else if [
"i686-pc-linux-gnu" = "mips-mips-linux-gnu" ] ; then echo ar; else
t='s,^,mips-linux-,'; echo ar | sed
- -e $t ; fi; fi`" \
~ AR_CREATE_FOR_TARGET="` if [ -f
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ar ] ; then echo
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ar ; else if [
"i686-pc-linux-gnu" = "mips-mips-linux-gnu" ] ; then echo ar; else
t='s,^,mips-linux-,'; echo ar | sed -e $t ; fi; fi` rc" \
~ AR_FLAGS_FOR_TARGET="" \
~ CFLAGS="-g -W -Wall -Wwrite-strings -Wstrict-prototypes
- -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
~ RANLIB_FOR_TARGET="` if [ -f
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ranlib ] ; then echo
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ranlib ; else if [
"i686-pc-linux-gnu" = "mips-mips-linux-gnu" ] ; then echo ranlib; else
t='s,^,mips-linux-,'; echo ranlib | sed -e $t ; fi; fi`" \
~ RANLIB_TEST_FOR_TARGET="[ -f ` if [ -f
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ranlib ] ; then echo
/mnt/gplinux-mips/build/gcc/gcc/../binutils/ranlib ; else if [
"i686-pc-linux-gnu" = "mips-mips-linux-gnu" ] ; then echo ranlib; else
t='s,^,mips-linux-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [
"i686-pc-linux-gnu" = "mips-mips-linux-gnu" ] && [ -f /usr/bin/ranlib
- -o -f /bin/ranlib ] )" \
~ NM_FOR_TARGET="` if [ -f ./nm ] ; then echo ./nm ; elif [ -f
/mnt/gplinux-mips/build/gcc/gcc/../binutils/nm-new ] ; then echo
/mnt/gplinux-mips/build/gcc/gcc/../binutils/nm-new ; else if [
"i686-pc-linux-gnu" = "mips-mips-linux-gnu" ] ; then echo nm; else
t='s,^,mips-linux-,'; echo nm | sed -e $t ; fi; fi`" AWK="gawk" \
~ LIBGCC2_CFLAGS="-O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
- -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
- -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
~ INCLUDES="-I. -I. -I../../../sources/gcc/gcc
- -I../../../sources/gcc/gcc/. -I../../../sources/gcc/gcc/config
- -I../../../sources/gcc/gcc/../include" \
~ CONFIG_H="tconfig.h " MACHMODE_H="machmode.h machmode.def" \
~ LIB1ASMSRC='' \
~ MAKEOVERRIDES= \
~ -f libgcc.mk all
make[1]: Entering directory `/mnt/gplinux-mips/build/gcc/gcc'
for d in libgcc; do \
~ if [ -d $d ]; then true; else /bin/sh
../../../sources/gcc/gcc/mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
./xgcc -B./ -B/mnt/gplinux-mips/toolchain/mips-linux/bin/ -isystem
/mnt/gplinux-mips/toolchain/mips-linux/include -isystem
/mnt/gplinux-mips/toolchain/mips-linux/sys-include -O2 -DIN_GCC
- -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
- -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
- -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
- -I../../../sources/gcc/gcc -I../../../sources/gcc/gcc/.
- -I../../../sources/gcc/gcc/config -I../../../sources/gcc/gcc/../include
- -fexceptions -c ../../../sources/gcc/gcc/unwind-dw2.c -o
libgcc/./unwind-dw2.o
./xgcc -B./ -B/mnt/gplinux-mips/toolchain/mips-linux/bin/ -isystem
/mnt/gplinux-mips/toolchain/mips-linux/include -isystem
/mnt/gplinux-mips/toolchain/mips-linux/sys-include -O2 -DIN_GCC
- -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
- -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
- -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
- -I../../../sources/gcc/gcc -I../../../sources/gcc/gcc/.
- -I../../../sources/gcc/gcc/config -I../../../sources/gcc/gcc/../include
- -fexceptions -c ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c -o
libgcc/./unwind-dw2-fde-glibc.o
./xgcc -B./ -B/mnt/gplinux-mips/toolchain/mips-linux/bin/ -isystem
/mnt/gplinux-mips/toolchain/mips-linux/include -isystem
/mnt/gplinux-mips/toolchain/mips-linux/sys-include -O2 -DIN_GCC
- -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
- -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
- -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
- -I../../../sources/gcc/gcc -I../../../sources/gcc/gcc/.
- -I../../../sources/gcc/gcc/config -I../../../sources/gcc/gcc/../include
- -fexceptions -c ../../../sources/gcc/gcc/unwind-sjlj.c -o
libgcc/./unwind-sjlj.o
In file included from ../../../sources/gcc/gcc/unwind-dw2.c:26:
../../../sources/gcc/gcc/unwind-pe.h: In function `size_of_encoded_value':
../../../sources/gcc/gcc/unwind-pe.h:76: warning: implicit declaration
of function `abort'
In file included from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:47:
../../../sources/gcc/gcc/unwind-pe.h: In function `size_of_encoded_value':
../../../sources/gcc/gcc/unwind-pe.h:76: warning: implicit declaration
of function `abort'
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-sjlj.c:25:
../../../sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such file or
directory
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-sjlj.c:25:
../../../sources/gcc/gcc/gthr-posix.h:39: parse error before
"__gthread_key_t"
../../../sources/gcc/gcc/gthr-posix.h:39: warning: type defaults to
`int' in declaration of `__gthread_key_t'
../../../sources/gcc/gcc/gthr-posix.h:39: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:40: parse error before
"__gthread_once_t"
../../../sources/gcc/gcc/gthr-posix.h:40: warning: type defaults to
`int' in declaration of `__gthread_once_t'
../../../sources/gcc/gcc/gthr-posix.h:40: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:41: parse error before
"__gthread_mutex_t"
../../../sources/gcc/gcc/gthr-posix.h:41: warning: type defaults to
`int' in declaration of `__gthread_mutex_t'
../../../sources/gcc/gcc/gthr-posix.h:41: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_active_p':
../../../sources/gcc/gcc/gthr-posix.h:83: `pthread_create' undeclared
(first use in this function)
../../../sources/gcc/gcc/gthr-posix.h:83: (Each undeclared identifier is
reported only once
../../../sources/gcc/gcc/gthr-posix.h:83: for each function it appears in.)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:453: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:454: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_dtor':
../../../sources/gcc/gcc/gthr-posix.h:456: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:457: warning: implicit declaration
of function `pthread_setspecific'
../../../sources/gcc/gcc/gthr-posix.h:457: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:463: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:464: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../../sources/gcc/gcc/gthr-posix.h:465: warning: implicit declaration
of function `pthread_key_delete'
../../../sources/gcc/gcc/gthr-posix.h:465: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:469: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:470: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../../sources/gcc/gcc/gthr-posix.h:471: warning: implicit declaration
of function `pthread_getspecific'
../../../sources/gcc/gcc/gthr-posix.h:471: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:471: warning: return makes pointer
from integer without a cast
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:475: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:476: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../../sources/gcc/gcc/gthr-posix.h:477: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:477: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:481: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:482: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../../sources/gcc/gcc/gthr-posix.h:484: warning: implicit declaration
of function `pthread_mutex_lock'
../../../sources/gcc/gcc/gthr-posix.h:484: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:490: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:491: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function
`__gthread_mutex_trylock':
../../../sources/gcc/gcc/gthr-posix.h:493: warning: implicit declaration
of function `pthread_mutex_trylock'
../../../sources/gcc/gcc/gthr-posix.h:493: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:499: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:500: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../../sources/gcc/gcc/gthr-posix.h:502: warning: implicit declaration
of function `pthread_mutex_unlock'
../../../sources/gcc/gcc/gthr-posix.h:502: `mutex' undeclared (first use
in this function)
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2.c:28:
../../../sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such file or
directory
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2.c:28:
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:39: parse error before
"__gthread_key_t"
../../../sources/gcc/gcc/gthr-posix.h:39: warning: type defaults to
`int' in declaration of `__gthread_key_t'
../../../sources/gcc/gcc/gthr-posix.h:39: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:40: parse error before
"__gthread_once_t"
../../../sources/gcc/gcc/gthr-posix.h:40: warning: type defaults to
`int' in declaration of `__gthread_once_t'
../../../sources/gcc/gcc/gthr-posix.h:40: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:41: parse error before
"__gthread_mutex_t"
../../../sources/gcc/gcc/gthr-posix.h:41: warning: type defaults to
`int' in declaration of `__gthread_mutex_t'
../../../sources/gcc/gcc/gthr-posix.h:41: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_active_p':
../../../sources/gcc/gcc/gthr-posix.h:83: `pthread_create' undeclared
(first use in this function)
../../../sources/gcc/gcc/gthr-posix.h:83: (Each undeclared identifier is
reported only once
../../../sources/gcc/gcc/gthr-posix.h:83: for each function it appears in.)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:453: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:454: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_dtor':
../../../sources/gcc/gcc/gthr-posix.h:456: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:457: warning: implicit declaration
of function `pthread_setspecific'
../../../sources/gcc/gcc/gthr-posix.h:457: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:463: parse error before "key"
make[1]: *** [libgcc/./unwind-sjlj.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../../../sources/gcc/gcc/gthr-posix.h:464: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../../sources/gcc/gcc/gthr-posix.h:465: warning: implicit declaration
of function `pthread_key_delete'
../../../sources/gcc/gcc/gthr-posix.h:465: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:469: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:470: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../../sources/gcc/gcc/gthr-posix.h:471: warning: implicit declaration
of function `pthread_getspecific'
../../../sources/gcc/gcc/gthr-posix.h:471: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:471: warning: return makes pointer
from integer without a cast
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:475: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:476: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../../sources/gcc/gcc/gthr-posix.h:477: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:477: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:481: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:482: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../../sources/gcc/gcc/gthr-posix.h:484: warning: implicit declaration
of function `pthread_mutex_lock'
../../../sources/gcc/gcc/gthr-posix.h:484: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:490: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:491: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function
`__gthread_mutex_trylock':
../../../sources/gcc/gcc/gthr-posix.h:493: warning: implicit declaration
of function `pthread_mutex_trylock'
../../../sources/gcc/gcc/gthr-posix.h:493: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:499: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:500: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../../sources/gcc/gcc/gthr-posix.h:502: warning: implicit declaration
of function `pthread_mutex_unlock'
../../../sources/gcc/gcc/gthr-posix.h:502: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/unwind-dw2.c: In function `extract_cie_info':
../../../sources/gcc/gcc/unwind-dw2.c:226: warning: implicit declaration
of function `strlen'
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:49:
../../../sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such file or
directory
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:49:
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:39: parse error before
"__gthread_key_t"
../../../sources/gcc/gcc/gthr-posix.h:39: warning: type defaults to
`int' in declaration of `__gthread_key_t'
../../../sources/gcc/gcc/gthr-posix.h:39: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:40: parse error before
"__gthread_once_t"
../../../sources/gcc/gcc/gthr-posix.h:40: warning: type defaults to
`int' in declaration of `__gthread_once_t'
../../../sources/gcc/gcc/gthr-posix.h:40: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:41: parse error before
"__gthread_mutex_t"
../../../sources/gcc/gcc/gthr-posix.h:41: warning: type defaults to
`int' in declaration of `__gthread_mutex_t'
../../../sources/gcc/gcc/gthr-posix.h:41: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_active_p':
../../../sources/gcc/gcc/gthr-posix.h:83: `pthread_create' undeclared
(first use in this function)
../../../sources/gcc/gcc/gthr-posix.h:83: (Each undeclared identifier is
reported only once
../../../sources/gcc/gcc/gthr-posix.h:83: for each function it appears in.)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:453: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:454: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_dtor':
../../../sources/gcc/gcc/gthr-posix.h:456: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:457: warning: implicit declaration
of function `pthread_setspecific'
../../../sources/gcc/gcc/gthr-posix.h:457: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:463: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:464: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../../sources/gcc/gcc/gthr-posix.h:465: warning: implicit declaration
of function `pthread_key_delete'
../../../sources/gcc/gcc/gthr-posix.h:465: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:469: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:470: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../../sources/gcc/gcc/gthr-posix.h:471: warning: implicit declaration
of function `pthread_getspecific'
../../../sources/gcc/gcc/gthr-posix.h:471: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:471: warning: return makes pointer
from integer without a cast
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:475: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:476: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../../sources/gcc/gcc/gthr-posix.h:477: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:477: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:481: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:482: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../../sources/gcc/gcc/gthr-posix.h:484: warning: implicit declaration
of function `pthread_mutex_lock'
../../../sources/gcc/gcc/gthr-posix.h:484: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:490: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:491: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function
`__gthread_mutex_trylock':
../../../sources/gcc/gcc/gthr-posix.h:493: warning: implicit declaration
of function `pthread_mutex_trylock'
../../../sources/gcc/gcc/gthr-posix.h:493: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:499: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:500: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../../sources/gcc/gcc/gthr-posix.h:502: warning: implicit declaration
of function `pthread_mutex_unlock'
../../../sources/gcc/gcc/gthr-posix.h:502: `mutex' undeclared (first use
in this function)
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2.c:28:
../../../sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such file or
directory
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2.c:28:
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:39: parse error before
"__gthread_key_t"
../../../sources/gcc/gcc/gthr-posix.h:39: warning: type defaults to
`int' in declaration of `__gthread_key_t'
../../../sources/gcc/gcc/gthr-posix.h:39: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:40: parse error before
"__gthread_once_t"
../../../sources/gcc/gcc/gthr-posix.h:40: warning: type defaults to
`int' in declaration of `__gthread_once_t'
../../../sources/gcc/gcc/gthr-posix.h:40: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:41: parse error before
"__gthread_mutex_t"
../../../sources/gcc/gcc/gthr-posix.h:41: warning: type defaults to
`int' in declaration of `__gthread_mutex_t'
../../../sources/gcc/gcc/gthr-posix.h:41: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_active_p':
../../../sources/gcc/gcc/gthr-posix.h:83: `pthread_create' undeclared
(first use in this function)
../../../sources/gcc/gcc/gthr-posix.h:83: (Each undeclared identifier is
reported only once
../../../sources/gcc/gcc/gthr-posix.h:83: for each function it appears in.)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:453: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:454: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_dtor':
../../../sources/gcc/gcc/gthr-posix.h:456: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:457: warning: implicit declaration
of function `pthread_setspecific'
../../../sources/gcc/gcc/gthr-posix.h:457: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:463: parse error before "key"
make[1]: *** [libgcc/./unwind-sjlj.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../../../sources/gcc/gcc/gthr-posix.h:464: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../../sources/gcc/gcc/gthr-posix.h:465: warning: implicit declaration
of function `pthread_key_delete'
../../../sources/gcc/gcc/gthr-posix.h:465: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:469: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:470: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../../sources/gcc/gcc/gthr-posix.h:471: warning: implicit declaration
of function `pthread_getspecific'
../../../sources/gcc/gcc/gthr-posix.h:471: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:471: warning: return makes pointer
from integer without a cast
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:475: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:476: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../../sources/gcc/gcc/gthr-posix.h:477: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:477: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:481: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:482: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../../sources/gcc/gcc/gthr-posix.h:484: warning: implicit declaration
of function `pthread_mutex_lock'
../../../sources/gcc/gcc/gthr-posix.h:484: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:490: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:491: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function
`__gthread_mutex_trylock':
../../../sources/gcc/gcc/gthr-posix.h:493: warning: implicit declaration
of function `pthread_mutex_trylock'
../../../sources/gcc/gcc/gthr-posix.h:493: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:499: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:500: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../../sources/gcc/gcc/gthr-posix.h:502: warning: implicit declaration
of function `pthread_mutex_unlock'
../../../sources/gcc/gcc/gthr-posix.h:502: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/unwind-dw2.c: In function `extract_cie_info':
../../../sources/gcc/gcc/unwind-dw2.c:226: warning: implicit declaration
of function `strlen'
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:49:
../../../sources/gcc/gcc/gthr-posix.h:37:21: pthread.h: No such file or
directory
In file included from gthr-default.h:1,
~ from ../../../sources/gcc/gcc/gthr.h:98,
~ from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:49:
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:39: parse error before
"__gthread_key_t"
../../../sources/gcc/gcc/gthr-posix.h:39: warning: type defaults to
`int' in declaration of `__gthread_key_t'
../../../sources/gcc/gcc/gthr-posix.h:39: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:40: parse error before
"__gthread_once_t"
../../../sources/gcc/gcc/gthr-posix.h:40: warning: type defaults to
`int' in declaration of `__gthread_once_t'
../../../sources/gcc/gcc/gthr-posix.h:40: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h:41: parse error before
"__gthread_mutex_t"
../../../sources/gcc/gcc/gthr-posix.h:41: warning: type defaults to
`int' in declaration of `__gthread_mutex_t'
../../../sources/gcc/gcc/gthr-posix.h:41: warning: data definition has
no type or storage class
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_active_p':
../../../sources/gcc/gcc/gthr-posix.h:83: `pthread_create' undeclared
(first use in this function)
../../../sources/gcc/gcc/gthr-posix.h:83: (Each undeclared identifier is
reported only once
../../../sources/gcc/gcc/gthr-posix.h:83: for each function it appears in.)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:438: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:447: parse error before ')' token
../../../sources/gcc/gcc/gthr-posix.h:453: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:454: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_dtor':
../../../sources/gcc/gcc/gthr-posix.h:456: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:457: warning: implicit declaration
of function `pthread_setspecific'
../../../sources/gcc/gcc/gthr-posix.h:457: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:463: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:464: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../../sources/gcc/gcc/gthr-posix.h:465: warning: implicit declaration
of function `pthread_key_delete'
../../../sources/gcc/gcc/gthr-posix.h:465: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:469: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:470: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../../sources/gcc/gcc/gthr-posix.h:471: warning: implicit declaration
of function `pthread_getspecific'
../../../sources/gcc/gcc/gthr-posix.h:471: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:471: warning: return makes pointer
from integer without a cast
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:475: parse error before "key"
../../../sources/gcc/gcc/gthr-posix.h:476: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../../sources/gcc/gcc/gthr-posix.h:477: `key' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h:477: `ptr' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:481: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:482: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../../sources/gcc/gcc/gthr-posix.h:484: warning: implicit declaration
of function `pthread_mutex_lock'
../../../sources/gcc/gcc/gthr-posix.h:484: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:490: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:491: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function
`__gthread_mutex_trylock':
../../../sources/gcc/gcc/gthr-posix.h:493: warning: implicit declaration
of function `pthread_mutex_trylock'
../../../sources/gcc/gcc/gthr-posix.h:493: `mutex' undeclared (first use
in this function)
../../../sources/gcc/gcc/gthr-posix.h: At top level:
../../../sources/gcc/gcc/gthr-posix.h:499: parse error before '*' token
../../../sources/gcc/gcc/gthr-posix.h:500: warning: function declaration
isn't a prototype
../../../sources/gcc/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../../sources/gcc/gcc/gthr-posix.h:502: warning: implicit declaration
of function `pthread_mutex_unlock'
../../../sources/gcc/gcc/gthr-posix.h:502: `mutex' undeclared (first use
in this function)
In file included from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:298:
../../../sources/gcc/gcc/unwind-dw2-fde.c: At top level:
../../../sources/gcc/gcc/unwind-dw2-fde.c:50: parse error before
"object_mutex"
../../../sources/gcc/gcc/unwind-dw2-fde.c:50: warning: type defaults to
`int' in declaration of `object_mutex'
../../../sources/gcc/gcc/unwind-dw2-fde.c:50:
`PTHREAD_MUTEX_INITIALIZER' undeclared here (not in a function)
../../../sources/gcc/gcc/unwind-dw2-fde.c:50: warning: data definition
has no type or storage class
In file included from ../../../sources/gcc/gcc/unwind-dw2-fde-glibc.c:298:
../../../sources/gcc/gcc/unwind-dw2-fde.c: In function `get_cie_encoding':
../../../sources/gcc/gcc/unwind-dw2-fde.c:271: warning: implicit
declaration of function `strlen'
../../../sources/gcc/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../../sources/gcc/gcc/unwind-dw2.c:899: warning: implicit declaration
of function `memset'
../../../sources/gcc/gcc/unwind-dw2.c: In function `uw_install_context_1':
../../../sources/gcc/gcc/unwind-dw2.c:1166: syntax error before
"once_regsizes"
../../../sources/gcc/gcc/unwind-dw2.c:1167: warning: implicit
declaration of function `__gthread_once'
../../../sources/gcc/gcc/unwind-dw2.c:1167: `once_regsizes' undeclared
(first use in this function)
../../../sources/gcc/gcc/unwind-dw2.c:1181: warning: implicit
declaration of function `memcpy'
make[1]: *** [libgcc/./unwind-dw2.o] Error 1
make[1]: *** [libgcc/./unwind-dw2-fde-glibc.o] Error 1
make: *** [libgcc.a] Error 2
make: Leaving directory `/mnt/gplinux-mips/build/gcc/gcc'
This was all being compiled and installed as 'root'. Is there anything
I may be doing wrong here? This has really got me stumped as to why
it's not working. Is there an RPM containing the tools I need?
Thanks
- --
+-------------------------------------------------------------+
| Stuart Longland stuartl at longlandclan.hopto.org |
| Brisbane Mesh Node: 719 http://stuartl.cjb.net/ |
| I haven't lost my mind - it's backed up on a tape somewhere |
| Griffith Student No: 2100350 Course: Bachelor/IT @ Nathan |
+-------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+ZtXLIGJk7gLSDPcRAsQoAJ9qEV8pxoCtz5MIHZwX3A7pP6Sl0wCfVGku
SM4nv4MC+Snrsp/EU+QyjcY=
=l7VQ
-----END PGP SIGNATURE-----
More information about the Gcc-help
mailing list