🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46648

Help: building gcc and libg++ on HP 9000/375, 9.0

#46648
From: Stephan Eppinger
Date: Mon, 31 Oct 1994 16:37
74 lines
4193 bytes
Hi everybody,

I have problems building gcc and it's lib for my machine, a HP 9000 series 375
running hpux 9.0. I will mention the steps taken and the results/problems:

Trying to build gcc-2.5.8:
--------------------------
0) runnig configure without problems
1) building stage 1 compilers:
I got from my compiler warnings regarding pointer types. My compiler don't
like expressions like: 
  enum test_e *ePtr;
  ePtr = (enum test_e *) malloc( 10 * sizeof( enum test_e ) );
Is this a severe prob?
2) building the stage 2 compiler:
I got the message:
cc1: warning: `-g' option not supported on this version of GCC
Debugging would be fine :). Do I have to install GAS and the GNU ld?
3) bulding the stage 3 compiler and comparing the two succeeds.
4) unable to build the Objective C library
    /disk2/sources/gnu/gcc-2.5.8/xgcc -B/disk2/sources/gnu/gcc-2.5.8/ \
      -O -fg nu-runtime \
      -c -DIN_GCC   -g -O -I. -I.. -I/disk2/sources/gnu/gcc-2.5.8 \
      -I/disk2/sources/gnu/gcc-2.5.8/config Object.m
cc1obj: warning: `-g' option not supported on this version of GCC
as error: "/usr/tmp/cca22049.s" line 1623: syntax error
as error: "/usr/tmp/cca22049.s" line 1624: invalid instruction
    mnemonic (__GLOBA L_$I$Object)
as error: "/usr/tmp/cca22049.s" line 1624: syntax error
*** Error code 1


Trying to build libg++-2.5.3
----------------------------
0) runnig configure without problems
1) libiberty.a builds fine.
2) libio: problems compiling iovfprintf.c and iovfscanf.c:
 cc -c  -I. -I.  iovfprintf.c
"iovfprintf.c", line 285: void pointer inappropriate
....
 cc -c  -I. -I. iovfscanf.c
"iovfscanf.c", line 282: void pointer inappropriate
....
fixed by splitting compilation into two part: first running only the
preprocessor and then compiling the output: works! With this tricks
the two libs libio.a and libiostream.a build.
3) libg++: on compiling Obstack.cc:
cc1plus: warning: `-g' option not supported on this version of GCC
/usr/local/lib/gcc-lib/m68k-hp-hpux/2.5.8/include/math.h: In function
  `double pow(double, int)':
In file included from ./builtin.h:33,
                 from Obstack.cc:22:
/usr/local/lib/gcc-lib/m68k-hp-hpux/2.5.8/include/math.h:71: conflicting
    types for `double pow(double, int)'
/usr/local/lib/gcc-lib/m68k-hp-hpux/2.5.8/include/math.h:68: previous
    declaration as `double pow(double, double)'
/usr/local/lib/gcc-lib/m68k-hp-hpux/2.5.8/include/math.h: In function
    `double pow(double, int)':
/usr/local/lib/gcc-lib/m68k-hp-hpux/2.5.8/include/math.h:72: warning:
    float or double used for argument 2 of `double pow(double, int)'
... and STOP!

I can see no errors in .../math.h, but something in it kills my program.
So, after this long explication, can anybody help me to continue? Tips and
experience is very appreciated, specifically regarding some linked problems
or known bugs or some missing tools. Many thanks in advance -please email
direct to me, after a working instalation I will post a resume :)

steve

--
 --------------------------------- -----------------------------------------
| Stephan Eppinger                |      steve@bihq00.bi.ehu.es             |
 --------------------------------- -----------------------------------------
Technical Details
Message-ID: <3936g7$ia@scdx01.sc.ehu.es>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!EU.net!Germany.EU.net!news.dfn.de!scsing.switch.ch!sun.rediris.es!scdx01.sc.ehu.es!s835cc.bi.ehu.es!iaaeppis

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e6061c7caac9a2d3,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: fcda7,e6061c7caac9a2d3,start
X-Google-Attributes: gidfcda7,public
X-Google-Thread: 10996c,e6061c7caac9a2d3,start
X-Google-Attributes: gid10996c,public
X-Google-ArrivalTime: 1994-10-31 08:37:27 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!EU.net!Germany.EU.net!news.dfn.de!scsing.switch.ch!sun.rediris.es!scdx01.sc.ehu.es!s835cc.bi.ehu.es!iaaeppis
From: iaaeppis@bi.ehu.es (Stephan Eppinger)
Newsgroups: gnu.gcc.help,comp.sys.hp.hpux,comp.sys.hp.misc
Subject: Help: building gcc and libg++ on HP 9000/375, 9.0
Date: 31 Oct 1994 16:37:27 GMT
Organization: UPV/EHU Facultad de Informatica (San Sebastian)
Lines: 74
Message-ID: <3936g7$ia@scdx01.sc.ehu.es>
NNTP-Posting-Host: s835cc.bi.ehu.es
Cc: steve@bihq00.bi.ehu.es
X-Newsreader: TIN [version 1.2 PL2]