Re: Building gcc 3.4.0 on Solaris 10, x86

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

 



Joost Mulders <joost.mulders@xxxxxxx> writes:

> Hi,
> 
> I am building gcc 3.4.0 on Solaris 10 (beta), on x86. I am trying to
> do this with "Sun Studio 8". (/opt/SUNWspro/bin/cc)
> 
> I've downloaded & extracted:
> 	gcc-3.4.0.tar.bz2
> 	gcc-core-3.4.0.tar.bz2
> 	gcc-g++-3.4.0.tar.bz2
> 	gcc-testsuite-3.4.0.tar.bz2
> 
> My "configure" command is:
> 	mkdir objdir && cd objdir
> 	../gcc-3.4.0/configure \

You need --enable-languages=c,c++ as well. That will limit the
    langauges built to C and C++, which are the only ones you
    downloaded. This should take care of the (misleading) g77 error
    message you got.

You also need to run configure with an absolute path, not a relative
    path.

Make sure you shell is ksh or bash; solaris sh is known not
    to work.

Finally, see the solaris specific install advice at
    http://gcc.gnu.org/install/specific.html#*-*-solaris2*

> 		--prefix=/opt/gcc3 \
> 		--with-as=/usr/ccs/bin/as \
> 		--with-ld=/usr/ccs/bin/ld
> 
> Configure runs fine, but compile barfs with:
> /opt/SUNWspro/bin/cc -c   -xO3 -xarch=sse -DIN_GCC     -DHAVE_CONFIG_H
> -I. -If -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/f
> -I../../gcc-3.4.0/gcc/../include -I../intl ../../gcc-3.4.0/gcc/f/bad.c
> -o f/bad.o
> "../../gcc-3.4.0/gcc/f/proj.h", line 37: #error: "You have to use gcc
> 2.x to build g77."
> cc: acomp failed for ../../gcc-3.4.0/gcc/f/bad.c
> gmake[1]: *** [f/bad.o] Error 2
> gmake[1]: Leaving directory `/usr/local/install/gcc/objdir/gcc'
> gmake: *** [all-gcc] Error 2
[snip]

[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