First, this bug report is very similar to the closed bug 35693. I could find no
way to re-open that bug report, and in any case this is a different version of
gcc, a different machine etc. 

I believe the 'solution' given there, which involves setting LD_LIBRARY_PATH is
not really the right answer, and instead the code should be fixed. 

LD_LIBRARY_PATH should be used as a last resort - see for example


'Why LD_LIBRARY_PATH is bad'
http://xahlee.org/UnixResource_dir/_/ldpath.html

'The evil LD_LIBRARY_PATH'
http://www.sunmanagers.org/pipermail/sunmanagers/2002-May/014159.html

gcc has been told the location of the library with switches - it should not
need LD_LIBRARY_PATH set. 

This bug comes up time and again. Numerous people find it. Really the code
should be fixed, and not workarounds suggested. 

../gcc-4.4.0/configure --with-gnu-as --with-as=/usr/sfw/bin/gas --with-gnu-ld
--with-ld=/usr/sfw/bin/gld 
--with-gmp=/usr/local/gmp-4.3.1-Solaris-10-u4-ABI=32-gcc-3.4.3
--with-mpfr=/usr/local/mpfr-2.4.1p5-Solaris-10-u4-gcc-3.4.3
--enable-languages=c,c++,fortran --prefix=/usr/local/gcc-4.4.0

fails with:


checking for sparc-sun-solaris2.10-strip... strip
checking whether ln -s works... yes
checking for sparc-sun-solaris2.10-gcc...
/home/kirkby/build-gcc-4.4.0/./gcc/xgcc -B/home/kirkby/build-gcc-4.4.0/./gcc/
-B/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/bin/
-B/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/lib/ -isystem
/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/include -isystem
/usr/local/gcc-4.4.0/sparc-sun-solaris2.10/sys-include
checking for suffix of object files... configure: error: in
`/home/kirkby/build-gcc-4.4.0/sparc-sun-solaris2.10/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/kirkby/build-gcc-4.4.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/kirkby/build-gcc-4.4.0'
make: *** [bootstrap] Error 2


-- 
           Summary: configure: error: cannot compute suffix of object files:
                    cannot compile
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: david dot kirkby at onetel dot net
  GCC host triplet: Sun T5240


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40360

Reply via email to