* Building gcc 3.4.0 on Solaris 10, x86
@ 2004-07-01 13:42 Joost Mulders
2004-07-01 16:15 ` llewelly
0 siblings, 1 reply; 2+ messages in thread
From: Joost Mulders @ 2004-07-01 13:42 UTC (permalink / raw)
To: gcc-help
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 \
--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
I don't need g77, just need c en c++. Can gcc be compiled with SUNWspro/cc?
Thx, Joost
--
Joost Mulders + email: joost.mulders@sun.com
Technical Consultant + phone: +31-33-45-15701
Professional Services + fax: +31-33-45-15734
Sun Microsystems + mobile: +31-6-5198-7268
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building gcc 3.4.0 on Solaris 10, x86
2004-07-01 13:42 Building gcc 3.4.0 on Solaris 10, x86 Joost Mulders
@ 2004-07-01 16:15 ` llewelly
0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-07-01 16:15 UTC (permalink / raw)
To: Joost Mulders; +Cc: gcc-help
Joost Mulders <joost.mulders@sun.com> 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]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-01 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 13:42 Building gcc 3.4.0 on Solaris 10, x86 Joost Mulders
2004-07-01 16:15 ` llewelly
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).