View Single Post
  #28  
Old 06-10-2008, 10:56 PM
unix unix is offline
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: gcc build fails "cannot compute suffix of object files"

Oscar del Rio wrote:
> 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)
>
>


I was going to upgrade to b90 tommorow anyway, so I will wait until
then. At which point i will try your suggestion. You have /usr/gnu as
the first item in your path, but what is in there? I assume that
whatever version of gcc you use is in there. What version of gcc are you
compiling with? I've tired a 2.x, and 3.x and a 4.x, and got nowhere
with any of them.

I noticed you are using the GNU assembler. From what I understood from
others, it was better to use the Sun linker and assembler - that is the
way Blastwave builds it, and I think Sunfreeware too.

Reply With Quote