This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: trouble building gcc-3.2.3 for x86_64


Andreas Plaß wrote:
I tried to compile crosstool-0.28-rc37 on a i686 host (Redhat Enterprise Linux 3.0 WS) with the following configuration:

target: x86_64
gcc-3.2.3
glibc-2.3.2

what I did so far was:

downloaded the sources,
removed    patches/glibc-2.3.2/gcc-pr-9552-workaround.patch
and started 'demo-x86_64'

Then the compilation of gcc failed and stopped with the message

"gthr-posix.h:37:21: pthread.h: No such file or directory"

/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/build-gcc/gcc/xgcc -B/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/build-gcc/gcc/ -B/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/x86_64-unknown-linux-gnu/bin/ -B/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/ -isystem /opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/x86_64-unknown-linux-gnu/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/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc -I/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/. -I/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.
3-glibc-2.3.2/gcc-3.2.3/gcc/config -I/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/../include -fexceptions -c /home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from /home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/unwind-dw2.c:26:
/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/unwind-pe.h: In function `size_of_encoded_value':
/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/unwind-pe.h:76: warning: implicit declaration of function `abort'
In file included from gthr-default.h:1,
                 from /home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/gthr.h:98,
                 from /home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/unwind-dw2.c:28:
/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/gcc-3.2.3/gcc/gthr-posix.h:37:21: pthread.h: No such file or directory
...
make[1]: Leaving directory `/home/aplass/crosstool-0.28-rc37/build/x86_64-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/build-gcc/gcc'
make: *** [all-gcc] Error 2

Please try with gcc-3.3.4 or gcc-3.4.2. gcc-3.2.3 is a bit old. Or do you have a particular reason you need that old version of gcc? - Dan

--
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]