mpfr-related link errors
Bob Walters
mostlyharmless77@yahoo.com
Mon Oct 20 12:30:00 GMT 2008
A recent change (builtins.c mpfr work) seems to be giving me link
errors. I'm trying to get back on track. Have done an svn update,
followed by a reconfigure (needed) and recompile.
Thought the issue was with the version of mpfr I was using, so I
upgraded from mprfr-2.3.0 to 2.3.2, and this did get rid of a compile
error I was having on builtins.c. I have added mpfr to the gcc source
directory, and done a make distclean and attempting to rebuild. I'm
still getting the link error shown below. Any help is appreciated.
Build environment is MacOS 10.5.5...
Here's what I've been configuring with:
export AR=/usr/bin/ar; ../gcc/configure --prefix=/usr/local --mandir=/
usr/local/share/man --infodir=/usr/local/info --enable-languages=c,c++
--with-arch=nocona --with-tune=generic --build=i686-apple-darwin9 --
with-gmp=/usr/local --with-libiconv-prefix=/sw --with-system-zlib --x-
includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -
Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-
definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-
long -Wno-variadic-macros -Wno-overlength-strings -fno-common -
DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o
c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-
common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o
c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o darwin-c.o c-
gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../
libdecnumber/libdecnumber.a ../libcpp/libcpp.a -lintl -L/sw/lib -
liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/usr/
local/lib -L/Users/bobw/Desktop/gcc.svn/build/./mpfr/.libs -L/Users/
bobw/Desktop/gcc.svn/build/./mpfr/_libs -lmpfr -lgmp -L/usr/local/
lib -L/Users/bobw/Desktop/gcc.svn/build/./mpfr/.libs -L/Users/bobw/
Desktop/gcc.svn/build/./mpfr/_libs -lmpfr -lgmp
ld warning: duplicate dylib /usr/local/lib/libgcc_s.1.dylib
Undefined symbols:
"_mpfr_lgamma", referenced from:
_do_mpfr_lgamma_r in libbackend.a(builtins.o)
"_mpfr_remainder", referenced from:
_mpfr_remainder$non_lazy_ptr in libbackend.a(builtins.o)
"_mpfr_remquo", referenced from:
_do_mpfr_remquo in libbackend.a(builtins.o)
"_mpfr_j0", referenced from:
_mpfr_j0$non_lazy_ptr in libbackend.a(builtins.o)
"_mpfr_j1", referenced from:
_mpfr_j1$non_lazy_ptr in libbackend.a(builtins.o)
"_mpfr_jn", referenced from:
_mpfr_jn$non_lazy_ptr in libbackend.a(builtins.o)
"_mpfr_y0", referenced from:
_mpfr_y0$non_lazy_ptr in libbackend.a(builtins.o)
"_mpfr_y1", referenced from:
_mpfr_y1$non_lazy_ptr in libbackend.a(builtins.o)
"_mpfr_yn", referenced from:
_mpfr_yn$non_lazy_ptr in libbackend.a(builtins.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
More information about the Gcc-help
mailing list