This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: cross-compiling 'make check' bug
- To: aj@arthur.rhein-neckar.de
- Subject: Re: cross-compiling 'make check' bug
- From: Deborah Wallach <kerr@pa.dec.com>
- Date: Wed, 27 May 1998 15:55:58 -0700
- Address: Digital Equipment Corporation; Western Research Laboratory; 250 University Avenue; Palo Alto, CA 94301; USA
- Cc: libc-alpha@cygnus.com
- Phone: 650-617-3315
> 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