1834403 Members
2754 Online
110067 Solutions
New Discussion

Re: gcc on UX 11

 
Chris Campbell_10
Occasional Contributor

gcc on UX 11

I installed gcc with the SD package from the HP-UX Software Archive. When I
try to compile, it says:
campbell $/opt/gcc/bin/gcc -o hello hello.c
as: "/var/tmp/cc8bB81c.s", line 22: error 1052: Directive name not recognized -
NSUBSPA
4 REPLIES 4
Jim Donovan_1
Occasional Advisor

Re: gcc on UX 11

Did you also download and install the binutils-2.9.1 from the Software
Archive? If so, be sure that /opt/binutils is in your path when using gcc

hth
Greg Procunier
New Member

Re: gcc on UX 11

I would suggest that you grab the latest version of gcc from :

ftp://ftp.gnu.org/pub/gnu/gcc/gcc-2.95.tar.gz

You will also want to use the GNU version of make :

ftp://ftp.gnu.org/pub/gnu/make/make-3.78.1.tar.gz

After configuring, use 'make bootstrap', this will cause the entire core of the
package to be compiled (which includes binutils and other dependancies).

After it goes through the motions of compiling use 'make install'.

A final note, your PATH is very important .. depending on which directory comes
first will determin which CC or assembler is used in conjunction. I usually
set /usr/local/bin first in /etc/PATH so things dont get confused.

Cheers.
David Epperly
New Member

Re: gcc on UX 11

I'm having the same trouble on HP-UX 10.20 with gcc 2.95.2

Did this ever get resolved? Please email me...
David Epperly
New Member

Re: gcc on UX 11

Never mind... I did some further work and found that the lack of binutils was
the problem.

binutils provides an "as" that is in /opt/binutils/bin/as that is sym refd by
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/as

The /usr/ccs/bin/as that comes with HPUX is braindamaged? just like the default
cc on HPUX.

You may need to make sure your PATH points to the correct "as".

Thanks to those who posted the hints...