On Wed, Dec 29, 2010 at 12:20 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > On 29 December 2010 11:11, Dan Track wrote: >> >> --with-gmp="/opt/gcc" >> --with-gmp-include="/opt/gcc/include" > ... >> -L/opt/gcc/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -lz >> >> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: >> cannot find -lgmp > ... >> I have gmp installed in >> /app/gcc/usr/lib. > > Use the right --with-gmp option. > Hi, Thanks for your suggestion, I made the recommended change and removed the old config. However I’ve still got the same error, is there something else required? Here’s what I’ve been doing cd /opt/mon tar –xzf gcc-4.5.2.tar.gz cd gcc-4.5.2 then the following commands Configure: ./configure --enable-threads=posix --prefix=/opt/gcc --with-local-prefix=/opt/gcc/usr/local --infodir=/opt/gcc/usr/share/info --mandir=/opt/gcc/usr/share/man --libdir=/opt/gcc/usr/lib64 --libexecdir=/opt/gcc/usr/lib64 --enable-languages=c,c++,objc,obj-c++ --enable-checking=release --with-gxx-include-dir=/opt/gcc/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/opt/gcc/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix= --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id LDFLAGS="-L/opt/gcc/lib -L/opt/gcc/usr/lib -L/opt/utils/lib -L/opt/utils/usr/lib" CPPFLAGS="-I/opt/utils/usr/include" --host=x86_64-suse-linux --target=x86_64-suse-linux --build=x86_64-suse-linux --with-tune=generic --with-arch_32=i686 --with-gmp="/opt/gcc" CC=/opt/utils/usr/bin/gcc CXX=/opt/utils/usr/bin/g++ CFLAGS="-g3 -O0 -I/opt/utils/usr/include" BOOT_LDFLAGS="-L/opt/gcc/lib -L/opt/gcc/usr/lib -L/opt/utils/lib -L/opt/utils/usr/lib" Make make /opt/mon/gcc-4.5.2/host-x86_64-suse-linux/prev-gcc/xgcc -B/opt/mon/gcc-4.5.2/host-x86_64-suse-linux/prev-gcc/ -B/opt/gcc/x86_64-suse-linux/bin/ -B/opt/gcc/x86_64-suse-linux/bin/ -B/opt/gcc/x86_64-suse-linux/lib/ -isystem /opt/gcc/x86_64-suse-linux/include -isystem /opt/gcc/x86_64-suse-linux/sys-include -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -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 c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \ dummy-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/gcc/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -lz /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lgmp collect2: ld returned 1 exit status make[3]: *** [cc1-dummy] Error 1 make[3]: Leaving directory `/opt/mon/gcc-4.5.2/host-x86_64-suse-linux/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/opt/mon/gcc-4.5.2' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/opt/mon/gcc-4.5.2' make: *** [all] Error 2 Thanks Dan