[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: A strange problem to compile glibc cvs ["Tue Dec 10 00:17:06 2002"] to ARM arch



When I run the command separately, the error msg is different. (The same
command is ok
to the glibc without nptl)

arm-linux-gcc   -nostdlib -nostartfiles -r -o
/boris/try.nptl/glibc-12.9/sea.nptl/elf/boris-librtld.map.o 
'-Wl,-(' /boris/try.nptl/glibc-12.9/sea.nptl/elf/dl-allobjs.os
/boris/try.nptl/glibc-12.9/sea.nptl/libc_pic.a -lgcc
 '-Wl,-)' -Wl,-Map,/boris/try.nptl/glibc-12.9/sea.nptl/elf/librtld.mapT

collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/boris/try.nptl/glibc-12.9/sea.nptl/libc_pic.a(init-first.os):../sysdeps/uni
x/sysv/linux/init-first.c:48: 
multiple definition of `__libc_multiple_libcs'
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/boris/try.nptl/glibc-12.9/sea.nptl/elf/dl-allobjs.os(.data+0xc): first
defined here
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/boris/try.nptl/glibc-12.9/sea.nptl/libc_pic.a(_itoa.os)::173: multiple
definition of `_itoa'
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.
/usr/local/arm-linux/arm-linux/bin/ld: Dwarf Error: Invalid or unhandled
FORM value: 14.

"Dwarf Error" seems binutil problem according to google search result.  But
the strange point is 
to the same command why there is a "multiple defienition" with
"--enable-add-ons=nptl" while  
no this problem without "nptl", because "__lib_multiple_libcs" & "_itoa"
seem to have nothing 
to with add-ons. 

thanks. 

boris

> -----Original Message-----
> From: Hu, Boris 
> Sent: 2003年1月14日 17:19
> To: libc-alpha sources redhat com
> Cc: NPT library mailing list; Linux-Arm (E-mail)
> Subject: A strange problem to compile glibc cvs ["Tue Dec 10 00:17:06
> 2002"] to ARM arch
> 
> 
> 
> Sorry if I asked the problem in the wrong mail-list. 
> 
> I am trying to port some basic NPTL features to ARM architecture. But 
> I met a compile problem. 
> 
> First, I didn't add NPTL support and config the glibc with 
> the following cmd,
> everything is fine. (Here kernel dir is arm-linux kernel. )
> ../configure arm-linux --build=i686-pc-linux-gnu 
> --with-headers=$KERNEL/include 
>        	--enable-add-ons --enable-shared --prefix=$PREFIX
> 
> Later, I added two NPTL dirs (nptl and nptl_db) and config 
> the glibc with the following
> cmd,  then met a problem in late "make".  It is strang for 
> the problem occurs before compiling the add-ons=nptl ? do I 
> miss sth? thanks a lot. 
> 
> ../configure arm-linux --build=i686-pc-linux-gnu 
> --with-headers=$KERNEL/include --enable-add-ons=nptl 
> --enable-shared --prefix=$PREFIX
> 
> ....  ....
> arm-linux-gcc   -nostdlib -nostartfiles -r -o 
> /boris/try.nptl/glibc-12.9/sea/elf/librtld.map.o '-Wl,-(' 
/boris/try.nptl/glibc\
> -12.9/sea/elf/dl-allobjs.os 
> /boris/try.nptl/glibc-12.9/sea/libc_pic.a -lgcc '-Wl,-)' 
> -Wl,-Map,/boris/try.nptl/glibc-12.9/sea/\
> elf/librtld.mapT
> /boris/try.nptl/glibc-12.9/sea/libc_pic.a(init-first.os)(.data
> +0x0): In function `init':
> ../sysdeps/unix/sysv/linux/init-first.c:48: multiple 
> definition of `__libc_multiple_libcs'
> /boris/try.nptl/glibc-12.9/sea/elf/dl-allobjs.os(.data+0xc): 
> first defined here
> /boris/try.nptl/glibc-12.9/sea/libc_pic.a(_itoa.os)(.text+0x0)
> : In function `_itoa':
> /var/boris/try.nptl/glibc-12.9/stdio-common/_itoa.c:173: 
> multiple definition of `_itoa'
> /boris/try.nptl/glibc-12.9/sea/elf/dl-allobjs.os(.text+0xe554)
:/var/boris/try.nptl/glibc-12.9/elf/dl-minimal.c:305: first def\
> ined here
> /boris/try.nptl/local/arm//lib/gcc-lib/arm-linux/3.2/../../../
../arm-linux/bin/ld: Warning: size of symbol `_itoa' changed fr\
> om 184 to 1616 in /boris/try.nptl/glibc-12.9/sea/libc_pic.a(_itoa.os)
> collect2: ld returned 1 exit status
> make[2]: *** [/boris/try.nptl/glibc-12.9/sea/elf/librtld.map] Error 1
> make[2]: Leaving directory `/var/boris/try.nptl/glibc-12.9/elf'
> make[1]: *** [elf/subdir_lib] Error 2
> make[1]: Leaving directory `/var/boris/try.nptl/glibc-12.9'
> make: *** [all] Error 2
> 
> My env:
> 1. binutils-2.13.90.0.10
> 2. gcc-3.2-20021016
> 3. glibc ["Tue Dec 10 00:17:06 2002"]
> 4. nptl 0.12 + some basic porting to ARM
> 5. arm-linux-2.4.18 +rmk 6 patch
> 
> All these components is built ok in x86 machine.  
> 
> The attachment is my building script. thanks again. 
> 
> 
>   Boris
> =========================
> To know what I don't know
> To learn what I don't know
> To contribute what I know
> =========================
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]