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]

Re: Trying to build gcc for HP-UX 10.20



mcote@mcii.fr wrote:
> Hello from France.

I want to test the gcc/g++ C++ compiler on HP-UX 10.20 and I'have a problem
to build it..

To build gcc i need gperf.
So i downloaded gperf.
But to build gperf, i need a C++ compiler !?

How can i do ?

Thanks in advance for any help.

Michel COTE.

If you are starting from an HPUX installation without a development system (only the "non-ANSI" C), the steps are somewhat lengthy, and it's been some time since I had such a system.  IIRC:
either patch your HPUX sed up to date or install gnu sed
build and install gnu make, and use that as your make from now on
install gnu m4, and set the enviroment variables which each gnu package requires to use this rather than the HPUX version
build a copy of gcc (without bootstrapping, no g++ yet)
build and install flex, or, possibly, remove lex library so configure doesn't get confused
build and install bison
build and install binutils

It may be that you can use the unified build process, where all these needed components are built in the same tree by one make.
Now you should have the tools for a normal build of gcc.  If you have admin rights and know which download sites to use to get versions compatible with your OS rev, it may be easier to grab pre-built binaries of binutils and gcc, even if you intend to rebuild them.

If you are testing gcc, you must build the recommended version of dejagnu.  If you wish to apply patches, you must install the gnu patch, and be sure to use that rather than the old HP version, and autoconf or automake and perl.


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