[gnu.gcc.bug] GCC on HPUX - is it possible?

schultz@mmm.UUCP (John C Schultz) (05/10/89)

Trying to compile GCC 1.34 on HPUX (Version 6.something) fails in
toplev.c seemingly because the macro definitions are too long for the
HPUX compiler.  Does anyone have suggestions? patches? sympathy?

In addition to the normal reasons for using GCC, twm (Tom's Window
Manager) for X11 won't compile under the HPUX compiler and we were
hoping gcc would do better.  

-- 
 john c. schultz   schultz@3M.Com   ..!uiucuxc!mmm!schultz  (612) 733-4047
           3M Center, Bldg 518-1-1, St. Paul, MN 55144-1000
  The opinions expressed herein are, as always, my own and not 3M's.

ross@ziebmef.uucp (Ross Ridge) (05/17/89)

In article <1263@mmm.UUCP> you write:
>Trying to compile GCC 1.34 on HPUX (Version 6.something) fails in
>toplev.c seemingly because the macro definitions are too long for the
>HPUX compiler.  Does anyone have suggestions? patches? sympathy?

Well, I got GCC 1.34 going on an old HP 9000 Series 200 computer
running HP-UX 2.1 (quite different from the 2.1 they had for the 800
series). Our compiler would acctually dump core trying to compile toplev.c
(we managed to convince it to pre-process the file no problems,
however.) Our solution was to cross compile the compiler on another
computer (a VAX running BSD4.3). You probably don't have to go to that
extream with your system. Try using GCC's cpp to pre-process toplev.c
and pass that code to your normal compiler. If you're only having
problems with toplev.c you can make GCC's cpp by entering "make cpp".

>In addition to the normal reasons for using GCC, twm (Tom's Window
>Manager) for X11 won't compile under the HPUX compiler and we were
>hoping gcc would do better.  

Actually the only thing we ever gave our compiler trouble was GCC
itself...

							Ross Ridge
-- 
 l/                   attcan!tmsoft!ziebmef!ross			 //
[OO]                   					                [oo]
-()-                                                                    -()-
 db                     6502 assembly forever!                           //