Operating System - HP-UX
1832780 Members
3057 Online
110045 Solutions
New Discussion

Re: Problems building gcc compiler

 
Greg Hale
Advisor

Problems building gcc compiler

We are trying to load the gcc compiler on an HP L class server running HP/UX 11.00. I've downloaded gcc for 64-bit 11.0 and 11i (source). I ran swinstall to load the depot. I've followed the instructions for Installing the GCC configuration with the following:

To configure GCC:

% mkdir objdir
% cd objdir
% srcdir/configure

As far as I could tell that completed fine.

I then went to the next step of Building GCC and when I do make bootstrap I get the following:

(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C pro
duct; ignored.
Bootstrapping the compiler
sh[5]: gcc: not found.
*** Error exit code 1

There were several warning 480 messages.

Any help would be greatly appreciated.

thanks,

Gre
7 REPLIES 7
James Beamish-White
Trusted Contributor

Re: Problems building gcc compiler

Hi Greg,

I have had numerous problems with running compilers on HP-UX, as it keeps complaining about not using ANSI-C. So much for any support of open source ;-)

Anyway, there are some depot versions of GCC available, try doing a search for 'gcc HP-UX depot'. Swinstall makes things a bit easier.

Cheers!
James
GARDENOFEDEN> create light
Craig Rants
Honored Contributor

Re: Problems building gcc compiler

You can find the depot mentioned above at:

http://hpux.cs.utah.edu/

The ANSI C compiler is much more reliable however. I have never had a problem compiling software using ANSI C on hpux.

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
S.K. Chan
Honored Contributor

Re: Problems building gcc compiler

GCC 2.95.2 is the one that we used on our 11.0 and seems to work. We have also tried using the GCC version running on HP-UX 10.20 and it too could work.
Greg Hale
Advisor

Re: Problems building gcc compiler

I made the mistake of downloading the source depot and not the binary depot. Everything is working fine now.

thanks,

Greg
harry d brown jr
Honored Contributor

Re: Problems building gcc compiler

Greg,

Any time you use gnu's gcc, or quite a few other open source programs, you usually will need gnu's make, ld, and "as" assembler for hpux. Otherwise these products won't usually work.

I'm glad you found your answer though! Don't forget to assign points to those that directed you to the depot's.

live free or die
harry
Live Free or Die

Re: Problems building gcc compiler

Craig: I am not sure, but I think Greg meant the depots available on the HP.com site, not the HPPA sites.

The big difference between these two is the fact that the latter is only 32-bit and the HP.com ones support both 32-bit and 64-bit [two seperate depot files, which install in different locations].

Harry: HP.com's gcc is configured with /usr/ccs/bin/ld. Which works ok since they added translation switches to the specs file. Now to fix the remainder though.
Fallen into evermourn with these wings so torn, after your day, my dawn...
T. M. Louah
Esteemed Contributor

Re: Problems building gcc compiler

to add to above check:
# whence -v cc
cc is a tracked alias for /usr/bin/cc
# cd /usr/bin
# ll cc
lr-xr-xr-t 1 root sys 17 Mar 2 01:34 cc -> /opt/ansic/bin/cc
# echo $PATH
see if your PATH variable contains above.
More info can be found @: http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

g'd luck
t++
Little learning is dangerous!