cross-compiling 'make check' bug

Deborah Wallach kerr@pa.dec.com
Wed May 27 16:46:00 GMT 1998


    > Also, in the misc directory, tst-efgcvt should link with libm.a but
    > doesn't (either cross compiling or not).
   tst-efgcvt shouldn't need to link against libm.  What's the error
   message?

The error message is:
/g4/glibc-build/csu/crt0.o   /extra/g4/glibc-build/misc/tst-efgcvt.o  /extra/g4/glibc-build/libc.a -lgcc /extra/g4/glibc-build/libc.a  
/extra/g4/glibc-build/libc.a(efgcvt_r.o): In function `ecvt_r':
/extra/g4/libc/misc/efgcvt_r.c:160: undefined reference to `floor'
/extra/g4/libc/misc/efgcvt_r.c:161: undefined reference to `exp'
/extra/g4/libc/misc/efgcvt_r.c:210: undefined reference to `log10'
make[2]: *** [/extra/g4/glibc-build/misc/tst-efgcvt] Error 1

But actually, Uli was right.  I forgot that I had to disable the weak
linking with my version of binutils (binutils-2.9.1.0.4).  I end up forcing
both libc_cv_asm_weak_directive and libc_cv_asm_weakext_directive to "no".
I expect that using a different version of binutils will fix this
particular problem.

   Btw. from what platform to which platform are you crosscompiling which 
   versions of glibc?

To: arm-unknown-linuxaout.  From: arm-unknown-linuxaout or i586-linux.  Not
very successfully, I may add (it compiles, with some hand massaging, but
there are still quite a number of bugs).  I'm using a glibc snapshot (I've
been trying to keep up to date, but my last update was 5/22), I'm afraid.

			-Debby




More information about the Libc-hacker mailing list