This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] Problems building fortran (gmp) with latest cvs-version


In FreeBSD 4.8-STABLE I have two versions of libgmp. The system one in
/usr/{lib,include} which is too old for compiling gcc (see below) and a
fresh one in /usr/local/{lib,include} which should be new enough (installed
with the ports system).

The problem is that gcc seems to use the /usr/{lib,include}-one instead for
the version within /usr/local/{lib,include} with the following result:

gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -fno-common   -DHAVE_CONFIG_H  -o f951 \
        fortran/arith.o fortran/array.o fortran/bbt.o fortran/check.o fortran/decl.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/parse.o fortran/primary.o fortran/options.o fortran/resolve.o fortran/scanner.o fortran/simplify.o fortran/st.o fortran/symbol.o fortran/dump-parse-tree.o fortran/f95-lang.o fortran/convert.o fortran/trans.o fortran/trans-decl.o fortran/trans-types.o fortran/trans-const.o fortran/trans-expr.o fortran/trans-stmt.o fortran/trans-io.o fortran/trans-array.o fortran/trans-intrinsic.o fortran/dependency.o fortran/trans-common.o fortran/trans-equivalence.o tree-cfg.o tree-dfa.o tree-optimize.o tree-simple.o tree-ssa.o tree-ssa-ccp.o tree-ssa-dce.o tree-alias-common.o tree-alias-type.o gimplify.o main.o libbackend.a ../libiberty/libiberty.a ../intl/libintl.a   ../libbanshee/points-to/libandersen.a ../libbanshee/engine/libban!
 sheeengine.a ../libbanshee/libcompat/libbansheecompat.a  -lgmp
fortran/arith.o: In function `exponential':
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:218: undefined reference to `mpf_floor'
fortran/arith.o: In function `sine':
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:292: undefined reference to `mpf_floor'
fortran/arith.o: In function `cosine':
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:356: undefined reference to `mpf_floor'
fortran/arith.o: In function `gfc_arith_init_1':
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:676: undefined reference to `mpf_pow_ui'
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:714: undefined reference to `mpf_trunc'
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:726: undefined reference to `mpf_pow_ui'
/stuff/gcc.obj/gcc/../../gcc/gcc/fortran/arith.c:728: undefined reference to `mpf_pow_ui'
(....)

I modified the Makefiles a bit so that they inserted a -I /usr/local/include when
compiling and i -L /usr/local/lib when linking so that it used the correct version
of libgmp but got an ICE in stage 2. This could be a result of me messing with 
the wrong parts of the Makefiles so I wouldn't make too much of it at the moment.

/LS


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]