This is the mail archive of the libc-help@sourceware.org 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]

glibc 2.19 for microblazeel


Hi Libc hackers,

I am trying to build glibc 2.18/2.19 based cross toolchain 
for microblaze little endian architecture using buildroot.

I am getting following link error:
/home/wbx/buildroot/output/host/usr/bin/microblazeel-buildroot-linux-gnu-gcc
-
shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib/ld.so.1  -B/
home/wbx/buildroot/output/build/glibc-2.19/build/csu/
-Wl,--version-script=/hom
e/wbx/buildroot/output/build/glibc-2.19/build/libc.map
-Wl,-soname=libc.so.6 -Wl ,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both -nostdlib -nostartfiles -e __li bc_main
-L/home/wbx/buildroot/output/build/glibc-2.19/build
-L/home/wbx/buildroo t/output/build/glibc-2.19/build/math
-L/home/wbx/buildroot/output/build/glibc-2.  19/build/elf
-L/home/wbx/buildroot/output/build/glibc-2.19/build/dlfcn -L/home/w
bx/buildroot/output/build/glibc-2.19/build/nss
-L/home/wbx/buildroot/output/buil d/glibc-2.19/build/nis
-L/home/wbx/buildroot/output/build/glibc-2.19/build/rt -L
/home/wbx/buildroot/output/build/glibc-2.19/build/resolv
-L/home/wbx/buildroot/o utput/build/glibc-2.19/build/crypt
-L/home/wbx/buildroot/output/build/glibc-2.19 /build/nptl
-Wl,-rpath-link=/home/wbx/buildroot/output/build/glibc-2.19/build:/h
ome/wbx/buildroot/output/build/glibc-2.19/build/math:/home/wbx/buildroot/output/
build/glibc-2.19/build/elf:/home/wbx/buildroot/output/build/glibc-2.19/build/dlf
cn:/home/wbx/buildroot/output/build/glibc-2.19/build/nss:/home/wbx/buildroot/out
put/build/glibc-2.19/build/nis:/home/wbx/buildroot/output/build/glibc-2.19/build
/rt:/home/wbx/buildroot/output/build/glibc-2.19/build/resolv:/home/wbx/buildroot
/output/build/glibc-2.19/build/crypt:/home/wbx/buildroot/output/build/glibc-2.19
/build/nptl -o
/home/wbx/buildroot/output/build/glibc-2.19/build/libc.so -T /hom
e/wbx/buildroot/output/build/glibc-2.19/build/shlib.lds
/home/wbx/buildroot/outp ut/build/glibc-2.19/build/csu/abi-note.o
/home/wbx/buildroot/output/build/glibc- 2.19/build/elf/soinit.os
/home/wbx/buildroot/output/build/glibc-2.19/build/libc_ pic.os
/home/wbx/buildroot/output/build/glibc-2.19/build/elf/sofini.os
/home/wbx /buildroot/output/build/glibc-2.19/build/elf/interp.os
/home/wbx/buildroot/outpu t/build/glibc-2.19/build/elf/ld.so -lgcc
ln -s ld.so
/home/wbx/buildroot/output/build/glibc-2.19/build/elf/ld.so.1
/home/wbx/buildroot/output/build/glibc-2.19/build/libc_pic.os: In
function `__is oc99_scanf': (.text+0x5fc58): undefined reference to
`__gcc_personality_sj0'
/home/wbx/buildroot/output/build/glibc-2.19/build/libc_pic.os: In
function `__is oc99_scanf': (.text+0x5fc8c): undefined reference to
`_Unwind_SjLj_Register'
/home/wbx/buildroot/output/build/glibc-2.19/build/libc_pic.os: In
function `__is
...

Full log is here http://www.openadk.org/br-microblaze.log 

When I add -lgcc_eh to Makeconfig the compile went fine and the
system boots up in qemu. It is surely not the right fix and I have
no idea how to do it the right way. I tried adding 
gnulib-arch = -lgcc_eh
static-gnulib-arch = -lgcc_eh
to ports/sysdeps/microblaze/Makefile, but this didn't work.

It somehow works for b86835ca92a1942ed08d8b5ee47498e711feaddb from
https://github.com/Xilinx/glibc. But I don't know why.
Seems to be a change between
b86835ca92a1942ed08d8b5ee47498e711feaddb and 2.18 release.

It also works fine when building glibc with a static gcc, instead of
shared.

Any hints are welcome,
 Waldemar


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