I downloaded gcc 4.3.5 sources on my Mac OS X 10.6. Additionally I
downloaded mpfr version 2.4.2 and gmp version 4.3.2 renamed the
directories to "mpfr" and "gmp" and moved them into
/Users/toom/Downloads/gcc-4.3.5-Files/gcc-4.3.5
After that I created a new build directory outside the source directory
/Users/toom/Downloads/gcc-4.3.5-Files/objdir
went into that directory and executed
/Users/toom/Downloads/gcc-4.3.5-Files/gcc-4.3.5/configure
The configure process went through without any errors. So I typed "make"
to start the compilation process. After some time I get the following
error message:
...
5-Files/objdir/./gmp
-I/Users/toom/Downloads/gcc-4.3.5-Files/gcc-4.3.5/gmp
-I/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./mpfr
-I/Users/toom/Downloads/gcc-4.3.5-Files/gcc-4.3.5/mpfr
-I../../gcc-4.3.5/gcc/../libdecnumber
-I../../gcc-4.3.5/gcc/../libdecnumber/dpd -I../libdecnumber
../../gcc-4.3.5/gcc/cp/cp-gimplify.c -o cp/cp-gimplify.o
/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./prev-gcc/xgcc
-B/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./prev-gcc/
-B/usr/local/i386-apple-darwin10.6.0/bin/ -g -O2 -fomit-frame-pointer
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -o cc1plus-dummy \
cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o
cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o
cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o
cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o
cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o
cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o
attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o
c-dump.o darwin-c.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o
cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o c-omp.o
tree-inline.o dummy-checksum.o main.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ./../intl/libintl.a
-liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-L/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./gmp/.libs
-L/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./gmp/_libs
-L/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./mpfr/.libs
-L/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./mpfr/_libs -lmpfr -lgmp
ld: warning: directory
'/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./gmp/_libs' following -L
not found
ld: warning: directory
'/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./mpfr/_libs' following -L
not found
ld: duplicate symbol _init_inline_once in libbackend.a(tree-inline.o)
and tree-inline.o
collect2: ld returned 1 exit status
make[3]: *** [cc1plus-dummy] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2
I checked that neither the directory
"/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./gmp/_libs" nor
"/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./mpfr/_libs" do exist
while "/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./mpfr/" and
"/Users/toom/Downloads/gcc-4.3.5-Files/objdir/./gmp/" exist.
What went wrong during the compilation procedure?