Problems compiling gcc-4.2.2 in a IBM Power PC 970MP
Joan Josep Iglesias Blanch
joan.iglesias@bsc.es
Mon Feb 4 08:10:00 GMT 2008
Hello
We are trying to compile gcc4.2.2 in a Power PC 970MP 64 bits. The
operative systems is Suse 9 SP3.
Due to problems with the default compilation and the libraries installed
in the system, we had to download the gmp and mpfr libraries and compile
them using 64 bits options.
After compiling them we configure the gcc to use them but at the end of
the "make" process we obtain the following error:
fortran/arith.o fortran/array.o fortran/bbt.o fortran/check.o
fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fortran/error.o
fortran/expr.o fortran/interface.o fortran/intrinsic.o fortran/io.o
fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o
fortran/module.o fortran/openmp.o fortran/options.o fortran/parse.o
fortran/primary.o fortran/resolve.o fortran/scanner.o fortran/simplify.o
fortran/st.o fortran/symbol.o fortran/convert.o fortran/dependency.o
fortran/f95-lang.o fortran/trans.o fortran/trans-array.o
fortran/trans-common.o fortran/trans-const.o fortran/trans-decl.o
fortran/trans-expr.o fortran/trans-intrinsic.o fortran/trans-io.o
fortran/trans-openmp.o fortran/trans-stmt.o fortran/trans-types.o
main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a
-lmpfr -lgmp ../libcpp/libcpp.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a
fortran/dump-parse-tree.o(.text+0x9ac): In function `gfc_show_expr':
../.././gcc/fortran/dump-parse-tree.c:398: undefined reference to
`.mpfr_out_str'
fortran/dump-parse-tree.o(.text+0x9f4):../.././gcc/fortran/dump-parse-tree.c:404:
undefined reference to `.mpfr_out_str'
fortran/dump-parse-tree.o(.text+0xa60):../.././gcc/fortran/dump-parse-tree.c:373:
undefined reference to `.mpfr_out_str'
fortran/simplify.o(.text+0x5f98): In function `gfc_simplify_nearest':
../.././gcc/fortran/simplify.c:2610: undefined reference to
`.mpfr_add_one_ulp'
fortran/simplify.o(.text+0x6040):../.././gcc/fortran/simplify.c:2618:
undefined reference to `.mpfr_sub_one_ulp'
fortran/simplify.o(.text+0x6050):../.././gcc/fortran/simplify.c:2619:
undefined reference to `.mpfr_add_one_ulp'
fortran/simplify.o(.text+0x607c):../.././gcc/fortran/simplify.c:2624:
undefined reference to `.mpfr_sub_one_ulp'
collect2: ld returned 1 exit status
make[3]: *** [f951] Error 1
The problem is that `.mpfr_out_str' exists in our compiled version but
is not named the same ( __gmpfr_out_str .__gmpfr_out_str ). And the
`.mpfr_sub_one_ulp' doesn't exists.
Here I send you more or less the process in all the compilation steps:
export CC="gcc -m64"
export F77="xlf -q64"
# gmp:
./configure --prefix=/a/path/
make
make check >& check.log.mine
make install
#mpfr:
./configure --prefix=/a/path/ --with-gmp=/a/path/
make >& make.mine.log
make check >& makecheck.mine.log
make install
# gcc 4.2.2:
./configure --prefix=/a/path/ --enable-languages=c,c++,fortran
--with-mpfr=/a/path/ --with-gmp=/a/path/
export LIBRARY_PATH=/a/path/gmp/lib:/a/path/mpfr/lib:$LIBRARY_PATH
export INCLUDE_PATH=/a/path/gmp/include:/a/path/mpfr/include:$INCLUDE_PATH
make >& compilation-output
Thank you
Joan
More information about the Gcc-help
mailing list