ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling 3.8 on HP-UX 11.0


From: Tim Mooney
Subject: Re: Compiling 3.8 on HP-UX 11.0
Date: Wed, 17 Dec 2003 16:05:34 -0600 (CST)

In regard to: Compiling 3.8 on HP-UX 11.0, Tom Wurgler said (at 1:38pm on...:

>cc1plus: warning: -g is only supported when using GAS on this processor,
>cc1plus: warning: -g option disabled

Your gcc has not been compiled to use gas as the assmebler.  gas may be on
the box, but gcc's configure didn't detect it or didn't use it when you
were building gcc.

Let's say you configured and installed binutils to use /usr/local as a
prefix.  Did you end up with a binary, either named `gas' or `as' in

        /usr/local/hppa*-hp-hpux11*/bin

?

If so, what I did, the last time I built gcc for HP-UX (admittedly this
was a long time ago -- gcc 2.8.1 for HP-UX 10.20), was this:

        prefix=/usr/local
        cd <top-level-gcc-directory>
        canon=`config.guess`
        PATH=$prefix/$canon/bin:$PATH
        export PATH

(that part adds the host-specific tool directory to the beginning of the
PATH).  Next, I did:

        ./configure --prefix=$prefix --exec-prefix=$prefix --with-gnu-as
        # wait for hours for this to complete

        if test -f $prefix/$canon/bin/gas ; then
                cp $prefix/$canon/bin/gas .
        elif test -f $prefix/$canon/bin/as ; then
                cp $prefix/$canon/bin/as .
        elif test -f $prefix/bin/gas ; then
                cp $prefix/bin/gas .
        elif test -f $prefix/bin/as ; then
                cp $prefix/bin/as .
        fi

followed by whatever make target you use (e.g. bootstrap-lean).

These instructions may need some tweaking (or wholesale reworking) for
use with recent gcc.

Good luck!


>/var/tmp//ccOj6z3Y.s: Assembler messages:
>/var/tmp//ccOj6z3Y.s:11590: Error: Field out of range [-262144..262143] 
>(328392).
>/var/tmp//ccOj6z3Y.s:13129: Error: Field out of range [-262144..262143] 
>(324048).
>/var/tmp//ccOj6z3Y.s:23594: Error: Field out of range [-262144..262143] 
>(300448).

gcc generated some assembly that the native HP-UX as didn't like.  :-)

Tim
-- 
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164




reply via email to

[Prev in Thread] Current Thread [Next in Thread]