http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53112
--- Comment #2 from birender.singh at hotmail dot com 2012-04-30 11:06:51 UTC --- Building 64bit gcc-4.4.4 and received below error: 1. Edit the configure file from gcc-4.4.4 directory at line number 4607: Line 4607: if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then have_gmp=yes If I understand shell language properly (and I do have a passing familiarity), I think the line should be: if test -d ${srcdir}/gcc && test "x$have_gmp" = xyes; then have_gmp=yes And then set the paths: echo $PATH=/els/install/gcc-4.4.4/bin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/platform/SUNW,Sun-Fire-V240/sbin:/opt/sun/bin:/opt/VRTS/bin:/etc/vx/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin echo $LD_LIBRARY_PATH=/els/install/gcc-4.4.4/lib/sparcv9:/els/install/gcc-4.4.4/lib:/usr/local/lib:/usr/ccs/lib and ../gcc-4.4.4/configure --with-gmp=/usr/local --with-mpfr=/usr/local sparcv9-sun-solaris2.9 and executed: make and recevied below error after few hours.. . . . e.o ipa-utils.o ipa.o matrix-reorg.o prefix.o tree-inline.o tree-nomudflap.o varpool.o ranlib libbackend.a 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-form at.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o sol2-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 /usr/local/lib/libintl.so -L/ usr/local/lib /usr/local/lib/libiconv.so -lsec -lc -R/usr/local/lib -R/usr/lib -R/usr/openwin/lib -R/usr/local/ssl/lib -R/usr/local/BerkeleyDB. 4.2/lib /usr/local/lib/libiconv.so -L/usr/local/lib -R/usr/local/lib ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/usr/local/lib -L/usr/local/lib -lmpfr -lgmp ld: warning: file /usr/local/lib/libiconv.so: attempted multiple inclusion of file ld: fatal: file /usr/local/lib/libmpfr.so: wrong ELF class: ELFCLASS64 ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to cc1-dummy collect2: ld returned 1 exit status make[3]: *** [cc1-dummy] Error 1 make[3]: Leaving directory `/els/install/biru/obj/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/els/install/biru/obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/els/install/biru/obj' make: *** [all] Error 2 root@slimsol9t4 # PLease provide solution to this, and also am i doing correct steps to make 64 bit gcc of version gcc-4.4.4. If not then also please steps or any help links. Thanks, -BK