This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-64 on HP-UX 11.00


> As I've seen on the gcc web site, HP-UX 11.00 has been promoted to primary
> target site. I've got no trouble building gcc in 32 bit mode, but building a
> 64bit gcc is still almost impossible.

Can you be more specific?  I think that once you get a good set of tools
installed you won't have any trouble building 64bit gcc.  This is not to
say that that there aren't lots of issues with hppa64 but I am not having
problems doing builds anymore.

> I've got
> 
>	The latest HP-UX 11.00 with the latest patches
> 	The latest C compiler (B.11.11.04 HP C/ANSI C Compiler)
> 	Several ports of gcc
> 		3.0.4/32
> 		3.0.1/64
> 		3.0.2/64
> 	binutils-2.11.90/64
> 	binutils-2.12/64

Here are my suggestions.  Use the latest binutils.  It has fixes that
affect hppa64.  Don't use 2.11.90.  Build it with the HP ANSI compiler
(ie, use "-Ae +DA2.0W" in your CFLAGS).  Gcc may miscompile the
linker causing it to dump core linking shared libraries.  Whether
this is still a problem, I'm not sure.

For gcc, use either the 3.1 branch or the unstable 3.2 trunk.  You
should be able to bootstrap it using CC="cc -Ae +DA2.0W" or with
a working version of gcc for hppa64.  Use the GNU binutils and specify
the locations for as and ld using --with-as and --with-ld.  Run
the testsuite to see if things are working.  There are some problems
with shared libraries so it's probably better not to specify
--enable-shared in your configure options.

These are the gcc configure options that I use:

--host=hppa64-hp-hpux11.11 --with-gnu-as --with-as=/opt/gnu64/bin/as --with-gnu-ld --with-ld=/opt/gnu64/bin/ld --disable-nls --prefix=/opt/gnu64

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]