This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

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/tr
y.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/b
in/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
=========================

Attachment: build-glibc.ZIP
Description: Binary data


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