
06-10-2008, 09:10 PM
|
| Junior Member | | Join Date: Sep 2009
Posts: 0
| |
Re: gcc build fails "cannot compute suffix of object files" Dave wrote:
> Since you seem to be getting further than me, as you are running for
> hours and mine is bombing out after only 5 minutes, what are use using?
It built without errors in Nevada b90.
SunOS 5.11 snv_90 i86pc i386 i86pc Solaris
First I installed gmp and mpfr, both 32 and 64-bit versions
(in /opt/local/lib and /opt/local/lib/64) which took a few tries.
Env:
PATH=/usr/gnu/bin:/usr/sfw/bin:/usr/bin:/usr/sbin:/usr/ccs/bin
(I put "GNU" stuff first in the PATH just in case - not sure if
it makes any difference in the build)
CPPFLAGS=-I/opt/local/include
CONFIG_SHELL=/bin/bash
LDFLAGS=-L/opt/local/lib -R/opt/local/lib
LD_OPTIONS=-L/opt/local/lib -R/opt/local/lib
.../configure --prefix=/opt/local --with-local-prefix=/opt/local
--enable-languages=c,c++,fortran --with-gmp=/opt/local --with-mpfr=/opt/local
--with-gnu-as --with-as=/usr/sfw/bin/gas
gmake -j 8 && gmake install (using 8 cores, it builds in a few minutes)
First I had to install gmp and mpfr, both 32 and 64-bit versions
(in /opt/local/lib and /opt/local/lib/64)
% /opt/local/bin/gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../configure --prefix=/opt/local --with-local-prefix=/opt/local
--enable-languages=c,c++,fortran --with-gmp=/opt/local --with-mpfr=/opt/local
--with-gnu-as --with-as=/usr/sfw/bin/gas
Thread model: posix
gcc version 4.3.1 (GCC) |