gcc 4.4.1 under Solaris 10 Ultrasparc - build problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have been unsuccessful building gcc 4.4.1 on a Sparc Enterprise T5120
running Solaris 10.  Having not built any Solaris versions of gcc for
many years, I'd appreciate any pointers this group might have.

This Sun system comes with gcc version 4.0.4 (gccfss).

Starting with gmp-4.3.1, I was able to successfully build and check the
package with the preinstalled gcc.  Similarly, mpfr-2.4.1 successfully
built and checked with this compiler.

On to gcc 4.4.1, I ran the configure with:

	../configure CC='gcc -m64' --prefix=/gnu/usr/gcc-4.4.1 --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-mpfr=/local/usr --with-gpm=/local/usr --enable-languages=c,c++

Without the 'gcc -m64' configure complained that GMP and MPFR weren't in place
as the configure test attempted a 32 built compile.  When I ran

	make bootstrap

the build failed in the following way:

[from the output of the make]
	checking for sparc-sun-solaris2.10-gcc... /local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/./gcc/xgcc -B/local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/./gcc/ -B/gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/bin/ -B/gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/lib/ -isystem /gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/include -isystem /gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/sys-include
	checking for suffix of object files... configure: error: in `/local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/sparc-sun-solaris2.10/libgcc':
	configure: error: cannot compute suffix of object files: cannot compile

Checking in ./sparc-sun-solaris2.10/libgcc/config.log:

	configure:2415: /local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/./gcc/xgcc -B/local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/./gcc/ -B/gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/bin/ -B/gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/lib/ -isystem /gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/include -isystem /gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/sys-include -o conftest -g -O2     conftest.c  >&5
	conftest.c:1: internal compiler error: Segmentation Fault
	Please submit a full bug report,
	with preprocessed source if appropriate.
	See <http://gcc.gnu.org/bugs.html> for instructions.
	configure:2418: $? = 1
	configure:2590: checking for suffix of object files
	configure:2611: /local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/./gcc/xgcc -B/local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/./gcc/ -B/gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/bin/ -B/gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/lib/ -isystem /gnu/usr/gcc -4.4.1/sparc-sun-solaris2.10/include -isystem /gnu/usr/gcc-4.4.1/sparc-sun-solaris2.10/sys-include -c -g -O2    conftest.c >&5
	conftest.c:1: internal compiler error: Segmentation Fault
	Please submit a full bug report,
	with preprocessed source if appropriate.
	See <http://gcc.gnu.org/bugs.html> for instructions.
	configure:2614: $? = 1
	configure: failed program was:
	| /* confdefs.h.  */
	|
	| #define PACKAGE_NAME "GNU C Runtime Library"
	| #define PACKAGE_TARNAME "libgcc"
	| #define PACKAGE_VERSION "1.0"
	| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
	| #define PACKAGE_BUGREPORT ""
	| /* end confdefs.h.  */
	|
	| int
	| main ()
	| {
	|
	|   ;
	|   return 0;
	| }
	configure:2627: error: in `/local/src/gcc-4.4.1/SunOS-5.10-sun4v/objdir/sparc-sun-solaris2.10/libgcc':
	configure:2630: error: cannot compute suffix of object files: cannot compile

I'll put in a bug report if I haven't done something dumb in my
configuration.

As an aside, and after reading some disparaging remarks about gccfss, I
installing the sunfreeware.com gcc 3.4.6 package (the most recent build
I could find) and attempted to build gcc with it.  This got further,
but I was bitten in that build by a 32 bit/64 bit incompatibility.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux