Article View: gnu.gcc.help
Article #42479Re: hp-ux -g support ?
From: Mumit Khan
Date: Wed, 06 Dec 1995 00:00
Date: Wed, 06 Dec 1995 00:00
66 lines
2791 bytes
2791 bytes
In article <BILL.95Dec5095049@valiant.gmrc.gecm.com>,
R.A.L Williams <bill@valiant.gmrc.gecm.com> wrote:
>In article <JS9SF.95Dec4135619@fnpx19.fnal.gov> js9sf@fnpx19.fnal.gov (Jiangeng Sun) writes:
>
>I got this to work under version ( of HP-UX by following the well concealed
>notes in INSTALL about building gas and using --with-gas when configuring.
>
>This works OK for version hp-ux 9.0x
>
>IT DOESN'T WORK FOR HP-UX 10.01 !! (sorry about the shouting but when
>you've rebuilt gcc as often as I have in the last few days you get a
>bit frustrated!).
Yes, it does! I've built gcc from 2.6.3 to 2.7.2 on our 9000/809 (aka K100)
running HP-UX 10.01 (no patches installed) w/out any problems whatsoever with
first binutils from jaguar.cs.utah.edu:/pub/pagnutools and then with 2.6.
gcc-2.7.0 had trouble with libg++-2.7.0a (building shared objects would croak
when compiling a few files in libio and librx, but worked with 2.6.3. And
there was a bug in ANSI string implementation), but other than that it worked
fine. gcc-2.7.[12] fixes that problem. What exactly is your problem?
This is what I do:
1. build binutils-2.6. NO NEED TO INSTALL yet.
% gnumake all-gas
2. build and install gcc
% cd gcc-2.7.2
% configure --with-gnu-as
% gnumake install-dir
% cp ../binutils-2.6/gas/as.new $prefix/lib/gcc-lib/$TARGET/$VERSION/as
where prefix is by default /usr/local/lib. TARGET in my case is
hppa1.1-hp-hpux10.01 and VERSION is 2.7.2. May differ in your case of
course.
% (gnumake CC=gcc LANGUAGES=c && gnumake stage1 && \
gnumake CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O" LDFLAGS=-s) >& \
make.log
% gnumake install
Note that I never bothered to install ANSI C on our 10.01 machine, and
so I'm using GCC as the bootstrap compiler.
3. build and install libg++-2.7.1
% cd libg++-2.7.1
% ./configure --enable-shared
% gnumake CC=gcc install
4. build and install gdb-4.15.1
% cd gdb-4.15.1
% configure
% gnumake install
Drop me a line if you have trouble with this.
GCC is even easier than building my own code on multiple platforms :-)
regards,
mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
Cc: gnu.gcc.help,
R.A.L Williams <bill@valiant.gmrc.gecm.com>
Technical Details
Message-ID:
<4a3b0d$1nd6@news.doit.wisc.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<JS9SF.95Dec4135619@fnpx19.fnal.gov> <BILL.95Dec5095049@valiant.gmrc.gecm.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,18d466700846f62b X-Google-Attributes: gid11318c,public From: khan@xraylith.wisc.edu (Mumit Khan) Subject: Re: hp-ux -g support ? Date: 1995/12/06 Message-ID: <4a3b0d$1nd6@news.doit.wisc.edu> X-Deja-AN: 121063381 references: <JS9SF.95Dec4135619@fnpx19.fnal.gov> <BILL.95Dec5095049@valiant.gmrc.gecm.com> organization: Center for X-ray Lithography, UW-Madison newsgroups: gnu.gcc.help