This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[newbee] trouble compiling gcc 3.3
- From: Sami Potirca <spotirca at softwin dot ro>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 8 Jul 2003 18:10:50 +0300
- Subject: [newbee] trouble compiling gcc 3.3
- Organization: SOFTWIN
- Reply-to: Sami Potirca <spotirca at softwin dot ro>
Hello,
I am trying to compile gcc 3.3 on a slackware 8.1 (gcc 2.95.3, glibc
2.2.5) as a cross compiler for s390-linux.
in my /usr/local/src I have the following:
/usr/local/src/
binutils-2.12
gcc-3.3
glibc-2.3.2
build-s390-binutils
build-s390-gcc
build-s390-glibc
First, I compiled binutils. In /usr/local/src/build-s390-binutils:
../binutils-2.12/configure --target=s390-linux
everything worked out just fine
After that I got /usr/local/s390-linux with the following structure:
/usr/local/s390-linux/bin
lib
ln -s /usr/include /usr/local/s390-linux/include
then in build-s390-gcc:
../gcc-3.3/configure --target=s390-linux \
--enable-languages=c,c++ \
--without-headers
worked fine, and when I run make bootstrap I get
./xgcc -B./ -B/usr/local/s390-linux/bin/ -isystem
/usr/local/s390-linux/include -isystem
/usr/local/s390-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 -I. -I. -I../../gcc-3.3/gcc
-I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config
-I../../gcc-3.3/gcc/../include -fexceptions -c
../../gcc-3.3/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ../../gcc-3.3/gcc/gthr-posix.h:37,
from gthr-default.h:1,
from ../../gcc-3.3/gcc/gthr.h:98,
from ../../gcc-3.3/gcc/unwind-dw2.c:28:
/usr/local/s390-linux/include/pthread.h:163: error: parse error before "__thread"
/usr/local/s390-linux/include/pthread.h:165: error: `pthread_create' declared as function returning a function
/usr/local/s390-linux/include/pthread.h:166: error: parse error before "void"
/usr/local/s390-linux/include/pthread.h:591: error: storage class specified for parameter `type name'
In file included from /usr/local/s390-linux/include/pthread.h:655,
from ../../gcc-3.3/gcc/gthr-posix.h:37,
from gthr-default.h:1,
from ../../gcc-3.3/gcc/gthr.h:98,
from ../../gcc-3.3/gcc/unwind-dw2.c:28:
/usr/local/s390-linux/include/bits/sigthread.h:36: error: storage class specified for parameter `type name'
../../gcc-3.3/gcc/unwind-dw2.c: In function `uw_update_context_1':
../../gcc-3.3/gcc/unwind-dw2.c:1049: warning: unused variable `tmp_sp'
In file included from ../../gcc-3.3/gcc/unwind-dw2.c:1244:
../../gcc-3.3/gcc/unwind.inc: In function `_Unwind_Resume_or_Rethrow':
../../gcc-3.3/gcc/unwind.inc:248: warning: `return' with a value, in function returning void
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory `/usr/local/src/s390-gcc/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/usr/local/src/s390-gcc/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/local/src/s390-gcc/gcc'
make: *** [bootstrap] Error 2
My final question is what am I doing wrong ?
Thank you,
Sami Potirca