[Clfs-support] problem report for 3.0.0 beta 1 PowerPC SysVInit instructions

Dave Gomboc dave_gomboc at acm.org
Tue Sep 9 18:24:23 PDT 2014


Hello,

ISL configure fails with a message indicating that it could not
find the symbol "main" within gmp.  Indeed, there is no such
symbol within the file at /cross-tools/lib/libgmp.so.10.2.0
(according to "nm -C /cross-tools/lib/libgmp.so.10.2.0 | grep
main").  Plenty of other symbols are present, though.

tar xf ${CLFS_SOURCES}/isl-0.12.2.tar.lzma
cd isl-0.12.2/
LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure
--prefix=/cross-tools --disable-static --with-gmp-prefix=/cross-tools
make
make install
cd ..
rm -rf isl-0.12.2/

A relevant excerpt from config.log is below.

What is the adjustment to the instructions that you recommend?

Thanks,
Dave Gomboc

configure:17242: checking which gmp to use
configure:17244: result: system
configure:17266: checking gmp.h usability
configure:17266: gcc -c -O3 -fomit-frame-pointer -malign-double
-fstrict-aliasing -ffast-math -I/cross-tools/include  conftest.c >&5
configure:17266: $? = 0
configure:17266: result: yes
configure:17266: checking gmp.h presence
configure:17266: gcc -E -I/cross-tools/include  conftest.c
configure:17266: $? = 0
configure:17266: result: yes
configure:17266: checking for gmp.h
configure:17266: result: yes
configure:17274: checking for main in -lgmp
configure:17293: gcc -o conftest -O3 -fomit-frame-pointer
-malign-double -fstrict-aliasing -ffast-math -I/cross-tools/include
-L/cross-tools/lib -Wl,-rpath,/cross-tools/lib conftest.c -lgmp  -lgmp
 >&5
/usr/bin/ld: skipping incompatible /cross-tools/lib/libgmp.so when
searching for -lgmp
/usr/bin/ld: cannot find -lgmp
/usr/bin/ld: skipping incompatible /cross-tools/lib/libgmp.so when
searching for -lgmp
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
configure:17293: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "isl"
| #define PACKAGE_TARNAME "isl"
| #define PACKAGE_VERSION "0.12.2"
| #define PACKAGE_STRING "isl 0.12.2"
| #define PACKAGE_BUGREPORT "isl-development at googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "isl"
| #define VERSION "0.12.2"
| #define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
|
|
| int
| main ()
| {
| return main ();
|   ;
|   return 0;
| }
configure:17302: result: no
configure:17312: error: gmp library not found



More information about the Clfs-support mailing list