Error configuring MPFR - "libgmp not found or uses a different ABI"
I checked out the latest buildroot from git this morning and unfortunately cannot get it to build successfully.
The build ends like this:
checking whether the /home/irotas/sandboxes/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-g++ -Os -pipe -Os -I/home/irotas/sandboxes/buildroot/build_i686/staging_dir/usr/include -I/home/irotas/sandboxes/buildroot/build_i686/staging_dir/include --sysroot=/home/irotas/sandboxes/buildroot/build_i686/staging_dir/ -isysroot /home/irotas/sandboxes/buildroot/build_i686/staging_dir -mtune=i686 -march=i686 linker (/home/irotas/sandboxes/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate checking whether gcc __attribute__ ((mode (XX))) works... yes
checking for recent GMP... yes
checking for gmp internal files... no
checking for working alloca.h... yes
checking for alloca... yes
checking for __gmpz_init in -lgmp... no
configure: error: libgmp not found or uses a different ABI.
Please read the INSTALL file -- see "In case of problem".
make: *** [/home/irotas/sandboxes/buildroot/build_i686/mpfr-2.4.1/.configured] Error 1
I've uploaded the build output, configuration files, and MPFR config.log to my website:
http://public.irotas.fastmail.fm/buildroot/buildroot.log.tgz
http://public.irotas.fastmail.fm/buildroot/config
http://public.irotas.fastmail.fm/buildroot/config.cmd
http://public.irotas.fastmail.fm/buildroot/mpfr.config.log
I also tried downloading 'buildroot-2009.02.tar.gz' and have the same problems with that version too, so it looks like it's not a new problem.
I don't know if it matters, but I'm building on Ubuntu 8.10 (Linux 2.6.27-14).
Any suggestions?
Thanks,
Adam
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Adam" == Adam McLaurin <[email protected]> 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.
Signature · 1 line
Bye, Peter Korsgaard