AW: [Orca-users] which gcc, make on Solaris 10?

Kraus, Niki Niki.Kraus at 3beg.at
Mon Sep 19 07:43:00 PDT 2005


Hello Adrian and Blair,

thank you for your reply.

I don't know why I can't use Sun's own gcc, if I run 
# ./configure ...
I get "configure: error: C compiler cannot create executables"

By that time there was the compiler from Sun installed, also Sun's make and Perl - and no GNU-utils.
/usr/sfw/bin has been at the front of my PATH.


Ok, but on the other hand I finally got it by trimming it like this. 
I show some details, maybe someone needs it like I did.


{Orca installation on Solaris 10 Install.typ "Core SUNWCreq"}
----------------------------------------------------------------
1.
Leaving SUNWsprot (make etc.) and SUNWperl584core and SUNWperl584usr installed, but in PATH behind /usr/local/bin.
There a some good K9Toolkit goodies from Brendan Gregg where he uses /usr/bin/perl.


2.
# pkgrm SUNWgcc

3.
install GNU gcc from blastwave.org
(makes header fixups that are necessary for gcc to work on 10)
After unzipping, I moved it to /usr/local.
Linking /usr/local/gcc-3.4.3 to /usr/local/gcc.

4.
install GNU make from sunfreeware.com

5.
install GNU perl from sunfreeware.com

6.
edit PATH like
# export PATH=/usr/local/bin:/usr/local/gcc/bin:/usr/ccs/bin:/opt/RICHPse/bin:/usr/local/bin/K9:$PATH

Now 
# ./configure
# make
# make install
works without troubles.

Nick



-----Ursprüngliche Nachricht-----
Von: Cockcroft, Adrian [mailto:acockcroft at ebay.com] 
Gesendet: Samstag, 17. September 2005 18:33
An: Blair Zajac; Kraus, Niki
Cc: orca-users at orcaware.com
Betreff: RE: [Orca-users] which gcc, make on Solaris 10?



On Solaris 10, I used /usr/sfw/bin and /opt/sfw/bin at the front of my path and used gmake CC=gcc for some of the Sun demo code I was working on.

I think you have a mixture of solaris and gnu components causing your errors.

Adrian



-----Original Message-----
From:	orca-users-bounces+acockcroft=ebay.com at orcaware.com on behalf of Blair Zajac
Sent:	Fri 9/16/2005 9:07 PM
To:	Kraus, Niki
Cc:	orca-users at orcaware.com
Subject:	Re: [Orca-users] which gcc, make on Solaris 10?

Kraus, Niki wrote:
> Hello all,
> 
> can someone please tell me what is the best gcc/make package to build 
> the Release "orca-snapshot-r456" on Solaris 10?
> 
> Should I use
> - Sun compiler pkg SUNWgcc 3.4.3
> - GNU C Compiler gcc-3.3.2-sol10-sparc-local from sunfreeware.com or
> - gcc-3.4.3-csl-20050525 from blastwave.org
> 
> 
> The same question with make.
> 
> 
> Because .... I run into problems with make && gcc.
> 
> eg. {with SUNs gcc, SUNs make)
> # cd /var/spool/software/orca/orca-snapshot-r456
> # make
> ...
> /usr/ccs/bin/as: error: unknown option '-'
> /usr/ccs/bin/as: error: unknown option 't'
> /usr/ccs/bin/as: error: unknown option 'aditional-format'
> 
> 
> 
> or {with GNU gcc, GNU make}
> # cd /var/spool/software/orca/orca-snapshot-r456
> # ./install-with-all-its-options {OK!}
> # make
> ...
> gcc: unrecognized option `-KPIC'
> 
> Suns 'make' resides parallel with SUNWsprot, but in the PATH ~behind~
> /usr/local/bin.
> 
> So what is best practice??
> Thanks for your input.
> 
> --Nick

After changing any compiler and make, I would recommend deleting and 
uncompressing the orca tarball and then rerunning configure.  This 
should take care of some problems.

Well, I know that gcc and Gnu's make work on Linux.  The Make version 
shouldn't matter.  Just get your gcc compiler working and you should be 
fine.

Regards,
Blair
_______________________________________________
Orca-users mailing list
Orca-users at orcaware.com
http://www.orcaware.com/mailman/listinfo/orca-users







More information about the Orca-users mailing list