Andre Lue wrote: > asura, > > Configured with: ./configure --prefix=/opt/gcc/gcc-4.4 > --with-as=/usr/local/src/usr/sfw/bin/gas --with-gnu-as > --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ > --enable-shared --with-mpfr-include=/usr/include/mpfr > --with-gmp-include=/usr/include/gmp LDFLAGS=-lgmp > > I made multiple attempts to compile this code but fails in the last stage > linking against gmp. I used the 4.3.2 compiler mentioned above. My configure > looked like > ./configure --prefix=/opt/gcc/gcc-4.4 > --with-as=/usr/sfw/bin/gas --with-gnu-as > --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ > --enable-shared --with-mpfr-include=/opt/sfw/include > --with-gmp-include=/opt/sfw/include LDFLAGS=-lgmp > > My luck to get a 4.x.x compiler on opensolaris with a non 3.4.3 linker has > proved frustrating and much harder than this should be. Why isn't there a > newer version in the packages??? > There's a number of reasons to use the sun ld (linker) and if you'd like a list I'm more than happy to start one.. I also think J?rg Schilling if he's reading this could help out.
I've uploaded a couple new packages which may be helpful.. Both are i386-pc-solaris2.11 targets and should be safe to directly extract. The packaging metadata is available as a subdoc only and won't extract by default. (You'll need xar + xz compression though.. Debs forthcoming in a couple days) Built against gmp-4.2.4 and mpfr-2.4.1 (if you need configure option I can provide) http://pkg.osunix.org/packages/dump-dangerous/sys-devel/binutils-temp-2.19.51.20090405.oxe http://pkg.osunix.org/packages/dump-dangerous/sys-devel/gcc-4.4-r2.oxe Target: i386-pc-solaris2.11 Configured with: ../configure --prefix=/usr/gcc/gcc-4.4 --host=i386-pc-solaris2.11 --target=i386-pc-solaris2.11 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-as=/usr/sfw-temp/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared --with-mpfr-include=/usr/include/mpfr --disable-nls --with-gmp-include=/usr/include/gmp --enable-multilib --disable-static --with-included-gettext --without-ppl --with-system-zlib --enable-gather-detailed-mem-stats --with-stabs --enable-largefile --enable-symvers --without-system-libunwind --disable-libmudflap --with-long-double-128 --enable-decimal-float --includedir=/usr/include --libdir=/usr/lib Thread model: posix gcc version 4.4.0 20090331 (prerelease) (GCC) (I would have built with solaris threads, but failed and didn't have time to debug why) --- GNU assembler version 2.19.51 (i386-pc-solaris2.11) using BFD version (GNU Binutils) 2.19.51.20090405 http://pkg.osunix.org/binutils/binutils-2.19.51.20090405.tar.bz2 export LD_OPTIONS="-M ${FILESDIR}/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" ../configure \ --prefix=/usr/sfw-temp \ --build=i386-pc-solaris2.11 \ --host=i386-pc-solaris2.11 \ --target=i386-pc-solaris2.11 \ --enable-64-bit-bfd \ --program-prefix=g \ --includedir=/usr/include Myself and others packaging this are available on irc if you're ever needing help. Hopefully this is helpful to you. #osunix / #ospkg on irc.freenode.net Thanks ./Christopher ---- Community driven OpenSolaris Technology - http://www.osunix.org blog: http://www.codestrom.com