[Buildroot] Error configuring MPFR - "libgmp not found or uses a different ABI"

Peter Korsgaard jacmet at uclibc.org
Sun May 24 20:10:45 UTC 2009


>>>>> "Adam" == Adam McLaurin <buildroot at irotas.net> writes:

 Adam> I checked out the latest buildroot from git this morning and
 Adam> unfortunately cannot get it to build successfully.

>From mpfr.config.log we see:

/home/irotas/sandboxes/buildroot/build_i686/gmp-4.2.4/.libs/libgmp.so: undefined reference to `_IO_getc'
/home/irotas/sandboxes/buildroot/build_i686/gmp-4.2.4/.libs/libgmp.so: undefined reference to `__ctype_b_loc'
/home/irotas/sandboxes/buildroot/build_i686/gmp-4.2.4/.libs/libgmp.so: undefined reference to `_IO_putc'
collect2: ld returned 1 exit status

This if gmp/mpfr for the target, E.G. for the compiler running on the target.
_IO_getc is a glibc specific feature, so it seems like the gmp build
system gets confused when cross compiling and target=host and ends up
using the host compiler / include files.

I'll try to track it down.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list