Operating System - HP-UX
1834434 Members
2661 Online
110067 Solutions
New Discussion

Re: Help me compiling gcc on hpux 11i

 
Venkatesh babu sira_1
Occasional Advisor

Help me compiling gcc on hpux 11i

All,
I want to compile gcc on hpux 11.11 system,
I tried to get depot's from that site & also from HP site ,but when i try to install other open (GNU)softwares ,i will get many errors.
How can i make gcc a working compiler.
I installed binutils depot ,but no help.
Thanks in advance for any input.
_VB
9 REPLIES 9
John Carr_2
Honored Contributor

Re: Help me compiling gcc on hpux 11i

John Carr_2
Honored Contributor
Venkatesh babu sira_1
Occasional Advisor

Re: Help me compiling gcc on hpux 11i

John,
I already installed gcc from this HP site,but still i am not able to compile other GNU stuff,any hint.
Thanks
-VB
Donald Kok
Respected Contributor

Re: Help me compiling gcc on hpux 11i

there has to be a variable CC. this has to point to the gcc program. For Instance

export CC=/opt/gcc/bin/gcc

good luck
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
Kevin O'Donovan
Regular Advisor

Re: Help me compiling gcc on hpux 11i

Hi,

there are a number of other GNU packages you need for GCC alright, including binutils, gettext, bison, flex, m4 and texinfo. That may not be an exhaustive list - as I'm sure you've already found for a GNU package you need, there are another 2 or 3 dependencies, which need another one or two packages etc. etc.

Once I've had those on though, I've only got GCC to compile using the "make bootstrap" option. It takes a bit longer but it gets there eventually. I haven't got it to compile using the HPUX cc compiler at all. This is on 11.00 but I guess it would be the same deal on 11i.

hope that helps,
Kevin.
Steve Steel
Honored Contributor

Re: Help me compiling gcc on hpux 11i

Hi


try

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/0,1703,547,00.html

gcc for hp-ux 11



description


the GNU compiler collection

This package provides all the tools needed to compile C and C++ programs on the HPPA or Itanium Processor Family platform. This download includes the binutils tools and gas as well as the GCC compilers and is based on binutils version 2.11 and GCC version 3.0.

There are separate compilers for building ILP32 and LP64 executables on HPPA. The ILP32 compiler is located in /usr/local/bin and the LP64 compiler is located in /usr/local/pa20_64/bin. The HPPA LP64 compiler will automatically generate LP64 code -- no special arguments need to be passed. For the Itanium Processor Family compiler, the command-line argument -mlp64 should be used to have the compiler generate LP64 code.


specifications


system requirements: gcc version: 3.0

size of package: 11i Version 1.5 34.6 MB (binary)
22.9 MB (source)

disk space: 11i Version 1.5 104.3 MB (binary)
22.8 MB (source)

gcc version: 3.0.2

size of package: 64-bit 11.0 & 11i 27.4 MB (binary)
24.1 MB (source)

32-bit 11.0 & 11i 22.1 MB (binary)
22.9 MB (source)

disk space: 64-bit 11.0 & 11i 69.5 MB (binary)
26.2 MB (source)

32-bit 11.0 & 11i 70.5 MB (binary)
26.2 MB (source)




Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Hartmut Lang
Trusted Contributor

Re: Help me compiling gcc on hpux 11i

Michael Tully
Honored Contributor

Re: Help me compiling gcc on hpux 11i

Hi,

This link assisted a question from a few days ago. I hope it solves yours....

http://gcc.gnu.org/ml/gcc/2002-03/msg00949.html

Cheers
~Michael~
Anyone for a Mutiny ?
Venkatesh babu sira_1
Occasional Advisor

Re: Help me compiling gcc on hpux 11i

Thanks all guys.
What i did was i did
configure --without-gnu-as --enable-languages=c
compiled & with this compiled binutils
then reconfigured gcc with
configure --with-gnu-as --enable-languages=c,c++
then with this i recompiled binutils(final)
But i downloaded other stuffs like flex,autoconf,automake,make ,from HP site put it in /usr/local/bin.
Now my compiler works like a rockstar.
Thanks all agian
-VB