1827625 Members
3481 Online
109966 Solutions
New Discussion

Re: gcc problem

 
Tzouganakis Stefanos
Occasional Contributor

gcc problem

Hi,
I have a problem with gcc 2.95.2 in my system. I cannot compile anything, because every time it throws the same error one or more times. For example when I give: 'gcc -c main.c' I get the:
as: "/var/tmp/ccwzHuqc.s", line 57, error 1052: Directive name not recognized - NSUBSPA

This is my first time I see something like that (and also my first time compiling something under HP-UX).
Any ideas?
3 REPLIES 3
Hartmut Lang
Trusted Contributor

Re: gcc problem

Ok, it seems you have an error from the assembler.

Try a gcc -v -c main.c
Now you should see a line like:
.../gnu/hppa1.1-hp-hpux10.20/bin/as ...

The gcc has to us the GNU assembler and not the HP assembler!
Paresh Borkar
Occasional Advisor

Re: gcc problem

The officially supported version of gcc on HP is gcc 3.0 onwards. I would recommend using version 3.0.1, which is a bug fix release.

hope this helps.
Uday_S_Ankolekar
Honored Contributor

Re: gcc problem