This is the mail archive of the crossgcc@sourceware.org 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: crosstool-NG: introduce support for uClibc/NPTL


Hi,

On Sun, Jul 11, 2010 at 12:39:00AM +0200, Yann E. MORIN wrote:
> 
> I've added experimental support for uClibc/NPTL toolchains in crosstool-NG.
> 
> NPTL for uClibc is available for uClibc nightly snapshots, and those
> interested in testing should first enable 'EXPERIMENTAL'.
> 
> Here is a quick step-by-step procedure:
>   hg clone http://ymorin.is-a-geek.org/hg/crosstool-ng ct-ng.uclibc-nptl
>   cd ct-ng.uclibc-nptl
>   ./configure --local
>   make
>   ./ct-ng armeb-test_nptl-linux-uclibcgnueabi
>   ./ct-ng build

I just successfully built an arm-unknown-linux-uclibcgnueabi NPTL
toolchain with the ingredients outlined in an earlier posting.
The gdbserver still failed:

  [ALL  ]    arm-unknown-linux-uclibcgnueabi-gcc -Wall -g -O2    -I. -I/home/js/temp/toolchain/targets/src/gdb-7.1/gdb/gdbserver -I/home/js/temp/toolchain/targets/src/gdb-7.1/gdb/gdbserver/../common -I/home/js/temp/toolchain/targets/src/gdb-7.1/gdb/gdbserver/../regformats -I/home/js/temp/toolchain/targets/src/gdb-7.1/gdb/gdbserver/../../include -static -rdynamic -o gdbserver inferiors.o regcache.o remote-utils.o server.o signals.o target.o utils.o version.o mem-break.o hostio.o event-loop.o xml-builtin.o reg-arm.o arm-with-iwmmxt.o arm-with-vfpv2.o arm-with-vfpv3.o arm-with-neon.o linux-low.o linux-arm-low.o hostio-errno.o thread-db.o proc-service.o           -ldl 
  [ALL  ]    /home/js/temp/toolchain/i/arm-unknown-linux-uclibcgnueabi//sys-root/usr/lib/libdl.a(libdl.os): In function `_dl_do_reloc':
  [ALL  ]    /home/js/temp/toolchain/targets/arm-unknown-linux-uclibcgnueabi/build/build-libc/./ldso/ldso/arm/elfinterp.c:289: undefined reference to `_dl_allocate_static_tls'
  [ALL  ]    /home/js/temp/toolchain/i/arm-unknown-linux-uclibcgnueabi//sys-root/usr/lib/libdl.a(libdl.os): In function `_dl_load_elf_shared_library':
  [ALL  ]    /home/js/temp/toolchain/targets/arm-unknown-linux-uclibcgnueabi/build/build-libc/ldso/libdl/../ldso/dl-elf.c:755: undefined reference to `_dl_next_tls_modid'
  [ALL  ]    /home/js/temp/toolchain/i/arm-unknown-linux-uclibcgnueabi//sys-root/usr/lib/libdl.a(libdl.os): In function `dlopen':
  [ALL  ]    /home/js/temp/toolchain/targets/arm-unknown-linux-uclibcgnueabi/build/build-libc/ldso/libdl/libdl.c:536: undefined reference to `_dl_add_to_slotinfo'
  [ALL  ]    /home/js/temp/toolchain/i/lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.4/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: gdbserver: hidden symbol `_dl_allocate_static_tls' isn't defined
  [ALL  ]    /home/js/temp/toolchain/i/lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.4/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: final link failed: Nonrepresentable section on output
  [ALL  ]    collect2: ld returned 1 exit status
  [ERROR]    make[1]: *** [gdbserver] Error 1

but I was able to build it by turning off CT_GDB_GDBSERVER_STATIC.
I'm currently not sure if static gdbserver is not supported
by uClibc+NPTL, or if this is a uClibc bug (the symbols are
defined in ld-uClibc.so).


Thanks
Johannes

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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