[geeks] Strange GCC issue on Sol10 6/02 (U2)

Bill Bradford mrbill at mrbill.net
Thu Jul 27 13:05:35 CDT 2006


root at bradford:/> uname -aSunOS bradford 5.10 Generic_118833-17 sun4u sparc SUNW,Ultra-5_10

root at bradford:/> gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

root at bradford:/> pkginfo |grep gcc
application SUNW0gccfss                      GCC for SPARC(R) Systems (Solaris 10)
system      SUNWgcc                          gcc - The GNU C compiler
system      SUNWgccruntime                   GCC Runtime libraries

Okay, its the gcc included with Solaris 10 (this is 6/06 with patches).

root at bradford:/usr/local/src> echo $PATH
/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/usr/openwin/bin:/usr/ccs/bin:/usr/ucb

root at bradford:/usr/local/src> echo $LD_LIBRARY_PATH
/usr/local/lib:/lib:/usr/lib

root at bradford:/usr/local/src> crle

Configuration file [version 4]: /var/ld/ld.config  
  Default Library Path (ELF):   /usr/local/lib:/lib:/usr/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

Everything looks fine path-wise.

root at bradford:/usr/local/src/ImageMagick-6.2.8> ./configure
configuring ImageMagick 6.2.8
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking whether build environment is sane... yes
checking for a BSD-compatible install... ./install-sh -c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executablesSee `config.log' for more details.

what the heck?  over.

configure:2564: gcc --version </dev/null >&5
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2567: $? = 0
configure:2569: gcc -v </dev/null >&5
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/config
ure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/cc
s/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
configure:2572: $? = 0
configure:2574: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2577: $? = 1
configure:2600: checking for C compiler default output file name
configure:2603: gcc    conftest.c  >&5
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
configure:2606: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "magick/magick.h"
| #define PACKAGE_TARNAME "magick-magick-h"
| #define PACKAGE_VERSION " "
| #define PACKAGE_STRING "magick/magick.h  "
| #define PACKAGE_BUGREPORT "http://redux.imagemagick.org/discussion-server/view
forum.php?f=3"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2645: error: C compiler cannot create executables
See `config.log' for more details.


Anybody have any idea why this is broken all of a sudden?  I *know*
how to setup gcc on Solaris, I've done it for years.. but now it's not 
working.

Bill

-- 
Bill Bradford 
Houston, Texas



More information about the geeks mailing list