Operating System - HP-UX
1833758 Members
2780 Online
110063 Solutions
New Discussion

Compiling gcc 3.3.1 64 bit on HPUX 11.11

 
Ben Wern
Occasional Advisor

Compiling gcc 3.3.1 64 bit on HPUX 11.11

I'm trying to follow Merijn's instructions for compiling gcc (https://www.beepz.com/personal/merijn) - but when I run the configure statement, I get the following spit back:

>$ configure \
> --enable-languages=c,c++ \
> --prefix=/usr/local/pa20_64 --with-local-prefix=/usr/local/pa20_64 \
> --with-gnu-as --with-as=/usr/local/pa20_64/bin/as \
> --with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld \
> --disable-shared \
> --disable-nls \
> --host=hppa64-hp-hpux11.11
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava target-libf2c zlib fastjar target-libobjc
(Any other directories should still work fine.)
Created "Makefile" in /var/tmp/ovo/gcc-3.3.1 using "mh-frag"
gcc: installation problem, cannot exec `cc1': No such file or directory
*** The command 'gcc -mpa-risc-2-0 -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

CC is set to CC=gcc -mpa-risc-2-0, which by itself seems OK (returns the normal "no input files".)

Has anyone run across this sort of problem? Any suggestions?

Ben Wern
4 REPLIES 4
Mehdi_1
Regular Advisor

Re: Compiling gcc 3.3.1 64 bit on HPUX 11.11

Hi

Have you already installed "binutils" ??

If you have which versiuon is it??

Why are you using gnu linker ?

Also, What compiler are you using to build gcc?


Mehdi
Mark Grant
Honored Contributor

Re: Compiling gcc 3.3.1 64 bit on HPUX 11.11

This is just a wild shot in the dark but if I remember my GNU lore of old, you need a C compiler for an initial compile of gcc and then use gcc to compile the rest of it. If I am not just making this up then I would guess that CC should be set to an existing compiler, possibly "cc". Don't quote me on this either but it can't hurt to try it.
Never preceed any demonstration with anything more predictive than "watch this"
Ben Wern
Occasional Advisor

Re: Compiling gcc 3.3.1 64 bit on HPUX 11.11

Thanks for the replies; I am using a precompiled version of gcc from Merijn's web site attempting to recomile the latest gcc in 64 bit.

I also tried setting to compiler to use HP's cc.

I don't have binutils installed at present, unless Merijn's precomiled version comes with it.

Ben Wern
H.Merijn Brand (procura
Honored Contributor

Re: Compiling gcc 3.3.1 64 bit on HPUX 11.11

Yes it is.# /usr/local/pa20_64/bin/as --versionshould give you the infoEnjoy, have FUN!. H.Merijn Brand
Enjoy, Have FUN! H.Merijn