This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiler error 1052:Directive not recognized
- To: sharvey8 at my-deja dot com
- Subject: Re: compiler error 1052:Directive not recognized
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 31 Aug 1999 16:27:25 -0600
- cc: help-gcc at gnu dot org
- Reply-To: law at cygnus dot com
In message <7qhjph$bl0$1@nnrp1.deja.com>you write:
> I installed gcc on HP-UX 10.20 using the pkgadd and the binary gcc-
> 2_8_1-sd-10_20_depot
>
> It appears to have installed correctly in /opt/gcc
>
> When I try to test it by compiling a simple program: /opt/gcc/bin/gcc
> hello.c I get this error:
>
> as: "/var/tmp/cca03961.s", line 16:error 1052: Directive name not
> recognized - NSUBSPA
You have configured the compiler to use gas, but it is finding the HP
assembler first.
Please read the GCC FAQ, it discusses this issue in great detail.
Some of the workarounds/solutions won't work since you're using an out of
date, buggy compiler (gcc-2.8.x). I recommend you use gcc-2.95.1.
jeff