Problem with Gcc Installation on HP-UX Itanium box

Jim Wilson wilson@tuliptree.org
Mon Jun 2 19:12:00 GMT 2003


Ritu Sabharwal wrote:
> error: invalid switch '-x'

This appears to be an error from the HP-UX assembler.  It would be 
helpful if the HP-UX assembler identified itself when reporting a 
problem to make this more obvious.  Using the gcc -v option should make 
this more obvious.

The assembler -x option is used by gas to turn on dependency violation 
checking.  This is also the same option used by the Intel assembler.  I 
have never had access to HP-UX for IA-64, so I don't know HP-UX 
assembler conventions.

It appears that the HP-UX IA-64 gcc port assumes that you have installed 
the GNU binutils package first.  So I would suggest doing that and then 
retrying the gcc build.  Alternatively, you could try removing the -x 
option from gcc/config/ia64/sysv4.h ASM_SPEC, but I think this is 
unlikely to work.  I doubt that anyone has ever tried to make gcc output 
  work with the HP-UX assembler.

Jim




More information about the Gcc mailing list