This is the mail archive of the glibc-bugs@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]

[Bug libc/13089] New: cannot find -lgcc_eh with GCC 4.6.0


http://sourceware.org/bugzilla/show_bug.cgi?id=13089

             Bug #: 13089
           Summary: cannot find -lgcc_eh with GCC 4.6.0
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: christophe.jarry@ouvaton.org
    Classification: Unclassified


Created attachment 5897
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5897
Patch to fix "cannot find -lgcc_eh" error message

I tried to cross-compile glibc 2.13 + MIPS port with GCC 4.6.0 and:

echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache
BUILD_CC="gcc" \
    CC="mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=n32" \
    AR="mips64el-unknown-linux-gnu-ar" \
    RANLIB="mips64el-unknown-linux-gnu-ranlib" \
    /microcebus/build/glibc-2.13/configure \
    --prefix=/usr \
    --libexecdir=/usr/lib/glibc \
    --build=mipsel-cross-linux-gnu \
    --host=mips64el-unknown-linux-gnu \
    --disable-profile \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=2.6.26 \
    --with-__thread \
    --with-binutils=/microcebus/cross-tools/bin \
    --with-headers=/microcebus/usr/include \
    --cache-file=config.cache
make

make gives me the following error message:

mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=n32 -nostdlib
-nostartfiles -o /microcebus/build/glibc-build/iconv/iconvconfig 
-Wl,-dynamic-linker=/lib32/ld.so.1    -Wl,-z,relro 
/microcebus/build/glibc-build/csu/crt1.o
/microcebus/build/glibc-build/csu/crti.o `mips64el-unknown-linux-gnu-gcc
-march=loongson2f -mabi=n32  --print-file-name=crtbegin.o`
/microcebus/build/glibc-build/iconv/iconvconfig.o
/microcebus/build/glibc-build/iconv/strtab.o
/microcebus/build/glibc-build/iconv/xmalloc.o
/microcebus/build/glibc-build/iconv/hash-string.o 
-Wl,-rpath-link=/microcebus/build/glibc-build:/microcebus/build/glibc-build/math:/microcebus/build/glibc-build/elf:/microcebus/build/glibc-build/dlfcn:/microcebus/build/glibc-build/nss:/microcebus/build/glibc-build/nis:/microcebus/build/glibc-build/rt:/microcebus/build/glibc-build/resolv:/microcebus/build/glibc-build/crypt:/microcebus/build/glibc-build/nptl
/microcebus/build/glibc-build/libc.so.6
/microcebus/build/glibc-build/libc_nonshared.a 
/microcebus/build/glibc-build/elf/ld.so  -lgcc -lgcc_eh 
`mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=n32 
--print-file-name=crtend.o` /microcebus/build/glibc-build/csu/crtn.o
/microcebus/cross-tools/lib/gcc/mips64el-unknown-linux-gnu/4.6.0/../../../../mips64el-unknown-linux-gnu/bin/ld:
cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [/microcebus/build/glibc-build/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/microcebus/build/glibc-2.13/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/microcebus/build/glibc-2.13'
make: *** [all] Error 2

A patch to fix this problem could be the one attached.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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