> 
> On FC6 x86_64-pc-linux-gnu with the svn trunk r121257 configured like this:
> 
> ../trunk/configure   --with-gmp=/usr/local --with-mpfr=/usr/local 
> --disable-multilib --enable-languages=c,c++,java
> 
> I am seeing this failure when bootstrapping.  It worked for me last week:
> 
> /home/daney/gccsvn/native-trunk/gcc/gcj 
> -B/home/daney/gccsvn/native-trunk/x86_64-unknown-linux-gnu/libjava/ 
> -B/home/daney/gccsvn/native-trunk/gcc/ -fomit-frame-pointer -fclasspath= 
> -fbootclasspath=../../../trunk/libjava/classpath/lib --encoding=UTF-8 
> -Wno-deprecated -fbootstrap-classes -g -O2 -c 
> -fsource-filename=/home/daney/gccsvn/native-trunk/x86_64-unknown-linux-gnu/libjava/classpath/lib/classes
>  
> -MT gnu/java/awt.lo -MD -MP -MF gnu/java/awt.deps @gnu/java/awt.list -o 
> gnu/java/awt.o >/dev/null 2>&1
> /home/daney/gccsvn/native-trunk/gcc/jc1: symbol lookup error: 
> /home/daney/gccsvn/native-trunk/gcc/jc1: undefined symbol: 
> __gmp_get_memory_functions

Did you update GMP or MPFR in the last week?
From:
http://www.mpfr.org/faq.html


When I link my program with MPFR, I get undefined reference to __gmpXXXX.
Link your program with GMP. Assuming that your program is foo.c, you should 
link it using: cc link.c -lmpfr -lgmpMPFR library reference (-lmpfr) should be 
before GMP's one (-lgmp). Another solution is, with GNU ld, to give all the 
libraries inside a group: gcc link.c -Wl,--start-group libgmp.a libmpfr.a 
-Wl,--end-group See INSTALL file and ld manual for more details.
Moreover, if several GMP versions are installed (e.g., one provided by the 
system and a new one installed by some user), you must make sure that the 
include and library search paths are consistent. Unfortunately, on various 
GNU/Linux machines, they aren't by default. Typical errors are: undefined 
reference to `__gmp_get_memory_functions' in make check when GMP 4.1.4 is 
installed in /usr/{include,lib} (provided by the system) and GMP 4.2.1 is 
installed in /usr/local/{include,lib} (installed by the user with configure, 
make, make install).

-- Pinski

Reply via email to