crosstool-0.35 w/ NPTL patch running demo-i686-nptl.sh fails building libc

Leon Woestenberg leonw@mailcan.com
Wed Jun 29 22:23:00 GMT 2005


Hello,

I am running crosstool-0.35 (Thanks Dan Kegel) patched with 
crosstool-0.34-nptl.patch (Thanks Steven J. Hill).

demo-i686-nptl.sh fails for me, during the libc build. Can someone 
deduce from the output what could have caused this
error? (I will test this on another host (x86 ubuntu stable) later to 
see if it reproduces there.

My host is an up-to-date-with-stable Gentoo 2005.0/amd64 with the 
following native toolchain:

leon@tinderbox ~/sandbox/tracs/crosstool-0.35 $ uname -a
Linux tinderbox 2.6.11-gentoo-r11 #1 SMP Thu Jun 23 12:33:27 CEST 2005 
x86_64 Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux
leon@tinderbox ~/sandbox/tracs/crosstool-0.35 $ gcc --version
gcc (GCC) 3.4.3 20041125 (Gentoo 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

My script that installs crosstool with NPTL patch:

#!/bin/bash

wget -N http://www.kegel.com/crosstool/crosstool-0.35.tar.gz
wget -N 
http://www.kegel.com/crosstool/crosstool-0.35/contrib/crosstool-0.34-nptl.patch

tar xzf crosstool-0.35.tar.gz
cd crosstool-0.35
patch -p1 <../crosstool-0.34-nptl.patch
chmod +x ./demo-i686-nptl.sh

My invocation of crosstool:

# ./demo-i686-nptl.sh

The tail of the output log:

/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofclose.o)(.text+0xd3): 
In function `fclose':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofclose.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iogetdelim.o)(.text+0x1f2): 
In function `getdelim':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iogetdelim.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(wfileops.o)(.text+0x371): 
In function `_IO_wfile_underflow':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(wfileops.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(fileops.o)(.text+0x9fe): 
In function `_IO_file_underflow':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(fileops.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofflush.o)(.text+0xa6): 
In function `fflush':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofflush.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofputs.o)(.text+0xdf): 
In function `fputs':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofputs.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofwrite.o)(.text+0xdd): 
In function `fwrite':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(iofwrite.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(fseek.o)(.text+0xaf): 
In function `fseek':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(fseek.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(ioseekoff.o)(.text+0x172): 
In function `_IO_seekoff':
: undefined reference to `_Unwind_Resume'
/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/libc.a(ioseekoff.o)(.eh_frame+0x12): 
undefined reference to `__gcc_personality_v0'
collect2: ld returned 1 exit status
make[2]: *** 
[/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/build-glibc/elf/sln] 
Error 1
make[2]: Leaving directory 
`/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/glibc-2.3.3/elf'
make[1]: *** [elf/others] Error 2
make[1]: Leaving directory 
`/home/leon/sandbox/tracs/crosstool-0.35/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.3/glibc-2.3.3'
make: *** [all] Error 2


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



More information about the crossgcc mailing list