[comp.sys.hp] Problem with g++ on HPUX

cnbr10@vaxa.strath.ac.uk (06/19/91)

Hopefully someone can help me with this problem with g++:

I have gcc 1.39 installed and working on an HP9000/360 system running HPUX 7.0
I have compiled and installed g++ version 1.39.1 , and that all seemed
quite successful,

BUT...

When I come to use g++ to compile the src files in libg++-1.39.0 everything
goes well until I reach the file Complex.cc and I get the following errors:

as error: "/usr/tmp/cca05837.s" line 631: syntax error (opcode/operand
mismatch)
as error: "/usr/tmp/cca05837.s" line 631: sytnax error
as error: "/usr/tmp/cca05837.s" line 1235: syntax error (opcode/operand
mismatch)
as error: "/usr/tmp/cca05837.s" line 1235: syntax error

and so on...

When I investigate further I find the lines it doesn't like contain this
instruction:
	        fmov.d &0rnan,%fp0

This looks to me like an instruction for the 68881 (or 68882) math co pro.
..which the assembler should assemble ok.....unless the syntax of the 
instruction is being wrongly produced by g++...but why should it go wrong?
gcc alone compiles programs with loads of maths in them no problem...

Anyone have any solutions to this problem?

Thanks

David J.Young
-- 
_______________________________________________________________________________
  /~\           Never Trust An  |  CNBR10 Corp., VAX/VMS and UNIX Consultants
 /@@-\____---   Elephant In     |  "Pay up or we send the boys round to wipe
 / / /       \  Dark Glasses.   |   your system disk"
 l/'\  /__\  /\,                |
 \l lll   lll                   |          Service with a smile. :-)
__~_"""___"""__________________________________________________________________

aaa@hpuerca.HP.COM (Simon Fowler) (06/26/91)

>When I come to use g++ to compile the src files in libg++-1.39.0 everything
>goes well until I reach the file Complex.cc and I get the following errors:
>
>as error: "/usr/tmp/cca05837.s" line 631: syntax error (opcode/operand
>mismatch)
>as error: "/usr/tmp/cca05837.s" line 631: sytnax error
>as error: "/usr/tmp/cca05837.s" line 1235: syntax error (opcode/operand
>mismatch)
>as error: "/usr/tmp/cca05837.s" line 1235: syntax error
>
>and so on...

Not knowing enough about g++ and related software, I can only surmise at 
this point. I have seen this error many times when a system that is running
7.0 is updated to the 7.40 language release, then updated to the 7.03/5 OS
release. The 7.40 languages have different libraries and assemblers, both
of which are overlaid by the 7.05 OS. Hope this helps.

simon

All comments my own - not Bill and Dave's