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]

problems with (_IO_new_fclose, __gcc_personality_v0) when building glibc-2.3.2


I don`t know it the right section here. Otherwise i`m sorry.

I tried to build glibc-2.3.2 for my target machine. Now i think i can use the 
same configuration like building the target glibc-2.3.2 for 
Host-Crosscompiler (powerpc-tuxbox-linux-gnu).

I tried out to build Glibc-2.3.2 with nptl-0.60 and a few target optimizing 
patches. In the same way the target glibc-2.3.2 was build for my 
Crosscompiler (Host) earlier. But it was compiled with Bootstrap-gcc. Now it 
will not working again.

Here an part of original Makefile
################
#
# core
#

core: .glibc

.glibc: /Archive/glibc-2.3.2.tar.bz2 /Archive/nptl-0.60.tar.bz2 /Archive/glibc-2.3.2-r0.diff.bz2  /Archive/linux-libc-headers-2.6.9.1.tar.bz2

bunzip2 -cd /Archive/glibc-2.3.2.tar.bz2 | tar -x && ( cd glibc-2.3.2; bunzip2 
-cd /Archive/nptl-0.60.tar.bz2 | tar -x ) && ( cd glibc-2.3.2; bunzip2 
-cd /Archive/glibc-2.3.2-r0.diff.bz2 | patch -p1 ) && ( cd glibc-2.3.2; patch 
-p1 < /Archive/glibc_ppc4xx_ibmstropt.diff ) && ( cd glibc-2.3.2; patch -p1 
< /Archive/glibc-ibmppc4xx_fp_perflib.diff ) && ( rm -rf build || /bin/true ) 
&& mkdir build 
	cd build && \
	CC=powerpc-tuxbox-linux-gnu-gcc \
	AR=powerpc-tuxbox-linux-gnu-ar \
	RANLIB=powerpc-tuxbox-linux-gnu-ranlib \
	CFLAGS="-mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3" \
	LDFLAGS= \
	../glibc-2.3.2/configure \
	--build=i686-pc-linux-gnu \
	--host=powerpc-tuxbox-linux-gnu \
	--prefix= \
	--with-headers=/hdd/opt/usr/linux/include \
	--enable-kernel=2.6.5 \
	--disable-profile \
	--enable-shared \
	--enable-add-ons=nptl \
	--with-__thread \
	--without-fp \
	--with-tls \
	$(MAKE) all 


After do make it will running for a while and finished with the following 
error.

powerpc-tuxbox-linux-gnu-gcc -nostdlib -nostartfiles -static 
-o /hdd/opt/build/elf/sln 
-msoft-float  /hdd/opt/build/csu/crt1.o /hdd/opt/build/csu/crti.o 
`powerpc-tuxbox-linux-gnu-gcc 
--print-file-name=crtbegin.o` /hdd/opt/build/elf/sln.o  /hdd/opt/build/libc.a 
-lgcc /hdd/opt/build/libc.a `powerpc-tuxbox-linux-gnu-gcc 
--print-file-name=crtend.o` /hdd/opt/build/csu/crtn.o
/hdd/opt/build/libc.a(iofclose.o)(.text+0x138): In function `_IO_new_fclose':
/hdd/opt/glibc-2.3.2/libio/libioP.h:991: undefined reference to 
`_Unwind_Resume'
/hdd/opt/build/libc.a(iofclose.o)(.eh_frame+0x12): In function 
`_IO_new_fclose':
/hdd/opt/glibc-2.3.2/libio/iofclose.c:43: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(iogetdelim.o)(.text+0x254): In function `_IO_getdelim':
/hdd/opt/glibc-2.3.2/libio/libioP.h:991: undefined reference to 
`_Unwind_Resume'
/hdd/opt/build/libc.a(iogetdelim.o)(.eh_frame+0x12): In function 
`_IO_getdelim':
/hdd/opt/glibc-2.3.2/libio/iogetdelim.c:52: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(wfileops.o)(.text+0x3f8): In function 
`_IO_wfile_underflow':
./libioP.h:991: undefined reference to `_Unwind_Resume'
/hdd/opt/build/libc.a(wfileops.o)(.eh_frame+0x12): In function 
`_IO_wdo_write':
/hdd/opt/glibc-2.3.2/libio/wfileops.c:62: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(fileops.o)(.text+0xc34): In function 
`_IO_new_file_underflow':
/hdd/opt/glibc-2.3.2/libio/libioP.h:991: undefined reference to 
`_Unwind_Resume'
/hdd/opt/build/libc.a(fileops.o)(.eh_frame+0x12): In function 
`_IO_new_file_init':
/hdd/opt/glibc-2.3.2/libio/fileops.c:150: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(iofflush.o)(.text+0x104): In function `_IO_fflush':
/hdd/opt/glibc-2.3.2/libio/libioP.h:991: undefined reference to 
`_Unwind_Resume'
/hdd/opt/build/libc.a(iofflush.o)(.eh_frame+0x12): In function `_IO_fflush':
/hdd/opt/glibc-2.3.2/libio/iofflush.c:35: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(iofputs.o)(.text+0x13c): In function `_IO_fputs':
/hdd/opt/glibc-2.3.2/libio/libioP.h:991: undefined reference to 
`_Unwind_Resume'
/hdd/opt/build/libc.a(iofputs.o)(.eh_frame+0x12): In function `_IO_fputs':
/hdd/opt/glibc-2.3.2/libio/iofputs.c:36: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(fseek.o)(.text+0x11c): In function `fseek':
/hdd/opt/glibc-2.3.2/libio/libioP.h:991: undefined reference to 
`_Unwind_Resume'
/hdd/opt/build/libc.a(fseek.o)(.eh_frame+0x12): In function `fseek':
/hdd/opt/glibc-2.3.2/libio/fseek.c:37: undefined reference to 
`__gcc_personality_v0'
/hdd/opt/build/libc.a(ioseekoff.o)(.text+0x22c): In function `_IO_seekoff':
./libioP.h:991: undefined reference to `_Unwind_Resume'
/hdd/opt/build/libc.a(ioseekoff.o)(.eh_frame+0x12): In function 
`_IO_seekoff_unlocked':
/hdd/opt/glibc-2.3.2/libio/ioseekoff.c:45: undefined reference to 
`__gcc_personality_v0'
collect2: ld returned 1 exit status
make[3]: *** [/hdd/opt/build/elf/sln] Error 1
make[3]: Leaving directory `/hdd/opt/glibc-2.3.2/elf'
make[2]: *** [elf/others] Error 2
make[2]: Leaving directory `/hdd/opt/glibc-2.3.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/hdd/opt/build'
make: *** [.glibc] Error 2

Is there any solution or patches available? Links are welcome ;)
Is it important to build glibc with bootstrap compiler or does it working with 
finished cross-gcc (ar, ranlib) too?

Thx a lot


------
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]