GNU C on HP 9000/735 running HP-UX 9.01...

GNU C on HP 9000/735 running HP-UX 9.01...

Post by DS Curtis, ISB2 108, 375-21 » Sat, 06 Nov 1993 09:28:52



HELP!  I am trying to build GNU C on an HP 9000/735 running HP-UX 9.01.  I want
the binaries, libraries, includes, and man pages in /apps/gnu/{bin,lib,include,man}.
The following are the commands that I typed in:

./configure --prefix=/apps/gnu --local-prefix=/apps/gnu hp735-hpux

[Output deleted but everything OK]

make LANGUAGES=c

[Output and warnings about g option deleted and then I get this:]

cc: "/usr/local/lib/bison.simple", line 42: error 1705: Function prototypes are an ANSI feature.
*** Error code 1

So then I figure that the stock HP compiler doesn't like the #line directives in
the file, c-parse.c.  I comment ALL of the lines that start with #line in c-parse.c
and run make LANGUAGES=c again and I get:

cc: "c-parse.c", line 1128: error 1705: Function prototypes are an ANSI feature.
*** Error code 1

Now I am stumped.  Can someone who has built GNU C version 2.5.X shed some light
on what I am doing wrong or what I can do to get GNU C to compile?

Thanks in advance,

+--------------------------------------------------------------------------+
| Name:     Darren Curtis        |  Disclaimer:  My opinion is my own!     |
| Company:  Battelle PNL         |  Theory:  You cannot build a reputation |
| Phone:    (509) 375-2152       |           on what you are going to do!  |

+--------------------------------------------------------------------------+

 
 
 

GNU C on HP 9000/735 running HP-UX 9.01...

Post by DS Curtis, ISB2 108, 375-21 » Sun, 07 Nov 1993 09:58:57


Thanks to:






and special thanks to:

For helping me get gcc compiled.  Luckily I remembered how to perform
permutations!  After trying every combination that was sent to me I
finally merged some of the suggestions and came up with the following:

        # unpack gcc-2.5.2.tar.gz distribution from jaguar.cs.utah.edu.
        vi c-parse.c  and comment out line 1128.
        # use stock HP cc to compile gcc.
        ./configure
        make LANGUAGES=c
        make stage1
        make LANGUAGES=c CC="stage1/xgcc -Bstage1/" CFLAGS=-02 LDFLAGS=-s
        make stage2
        make LANGUAGES=c CC="stage2/xgcc -Bstage2/" CFLAGS=-02 LDFLAGS=-s
        make compare
        make stage3
        make CC="stage3/xgcc -Bstage3/" CFLAGS=-02 LDFLAGS=-s
        make CC="stage3/xgcc -Bstage3/" CFLAGS=-02 LDFLAGS=-s install
        make CC="stage3/xgcc -Bstage3/" CFLAGS=-0  LDFLAGS=-s install-libobjc

Everythings seems to be working great.  I have compiled emacs and perl without
any problems.

Thanks again,

+--------------------------------------------------------------------------+
| Name:     Darren Curtis        |  Disclaimer:  My opinion is my own!     |
| Company:  Battelle PNL         |  Theory:  Even if you're on the right   |
| Phone:    (509) 375-2152       |           track, you'll get run over if |

+--------------------------------------------------------------------------+

 
 
 

GNU C on HP 9000/735 running HP-UX 9.01...

Post by Richard Llo » Sat, 06 Nov 1993 19:25:23



Quote:> HELP!  I am trying to build GNU C on an HP 9000/735 running HP-UX 9.01.

You need HP's ANSI C compiler - try getting patch PHSS_3015 (which, ahem,
"converts" your bundled K&R minimal compiler into the fully-blown ANSI compiler,
but don't tell HP I told you this :-) ).

Quote:> [Output and warnings about g option deleted and then I get this:]

Because the standard HP C compiler doesn't support -g.

Quote:> cc: "/usr/local/lib/bison.simple", line 42: error 1705: Function prototypes
> are an ANSI feature.

An unsubtle hint that you need an ANSI C compiler...

Quote:> So then I figure that the stock HP compiler doesn't like the #line
> directives in  the file, c-parse.c.

Probably /lib/cpp that's objecting (since that's what the K&R C compiler runs).

Quote:> cc: "c-parse.c", line 1128: error 1705: Function prototypes are an ANSI
> feature.

Unsubtle hint #2 - you need an ANSI C compiler :-)

Patch PHSS_3015 can be obtained from your HP Response Centre or your nearest
HP SupportLine.

Archive Librarian,        Anonymous FTP: ftp.csc.liv.ac.uk (138.253.42.172)


Merseyside,               [For info, put "help" or "index" in message body]
England,                  Gopher server: gopher.csc.liv.ac.uk (138.253.42.174)
Great Britain.            Official Anonymous FTP mirror sites:
                          Germany: hpux.ask.uni-karlsruhe.de (129.13.200.57)
The archive has support   US:      ftp.cae.wisc.edu (144.92.4.15)
for HP-UX 8.07 and 9.01   France:  hpux.cict.fr (192.70.79.53)  *NEWEST SITE*

 
 
 

1. OpenGL on 9.01/9000-735's??

Hello

Has anyone had any experience of compiling in OpenGL with the X11R5 soure
distibution for HP-UX 9.01 for 9000/735's?

I assume that building X11R5 from source is not a problem (src at liverpool,
etc) but we have not had to do it yet.

We are considering site deals for OpenGL and would like to know if HP's can be
included or even if there is an 'official' HP version available.

Thanks
Neil

2. ASM COMPILER

3. XRN for HP 9000/720 running HP-UX A.09.01

4. Fredkin/reversible CAs

5. Looking for: TeX binaries for 735 running 9.01

6. Kevin A Hogarth/UK/CSC is out of the office.

7. IV 3.1 & HP 9000/755 running hpux 9.01

8. missing page file problem

9. Dialin on a 735 under HP/UX 9.01 (with PPL)

10. Reading Sun (Rockridge/UFS) CDs on HP 735/9.01 & HP CD-ROM player

11. HP 9000 735 125mhz HP-UX

12. FS: HP 9000 735/125 ; 735/100 ; 715/100XC

13. finger doesn't show .plan (HP 9000/720 HP-UX 9.01)