Operating System - HP-UX
1748232 Members
3520 Online
108759 Solutions
New Discussion юеВ

Re: building gcc3.0.3 64bit on hpux11.0

 
Niemeier
Occasional Contributor

building gcc3.0.3 64bit on hpux11.0

Hi,
I can't build the 64 bit version of gcc. The 32 bit version will build without any problems.
First I downloaded the 64 and 32 bit binary version from hp. Than the source distribution from gnu and compiled V303 32 bit with binary gnu version from hp. Than I'ld build the 64bit. confugured like this :
./configure --prefix=/opt/gnu/64bit --enable-shared --enable-threads=posix --with-gnu-as --enable-languages=c,c++ --host=hppa64-hp-hpux11.00

Are there any hpux patches necessary to build the gcc 64 bit compiler ?
DN
11 REPLIES 11
T. M. Louah
Esteemed Contributor

Re: building gcc3.0.3 64bit on hpux11.0

The following thread discusses a similar situation:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x291fcbaac6dcd5118ff40090279cd0f9,00.html

g'd luck
t++
Little learning is dangerous!
Niemeier
Occasional Contributor

Re: building gcc3.0.3 64bit on hpux11.0

Thanx for answer t++,
but it didn't solve my problem. I installed PHSS_24303 without changes. I think the problem is that the gcc 64bit needs libraries from HP ANSI C compiler. The configure script and bigger compilions with Informix DB tools the ld searches for :
/opt/langtools/lib/pa20_64/end.o
or
/opt/langtools/lib/libcomp.sl

and I don't have a dir like /opt/langtools

I think it's from ANSI C
TIA
Dirk
DN
Steve Steel
Honored Contributor

Re: building gcc3.0.3 64bit on hpux11.0

Hi

This is from ANSI/C

This is the product ID:

B3901BA B.11.01.20 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800)

The CD number depends
on the particular set you
have. (Mine had it on CD 3).
Ofcourse, you would need
the *License/codeword* to
view it on the swlist!!


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Niemeier
Occasional Contributor

Re: building gcc3.0.3 64bit on hpux11.0

Hi Steve,
but I will (should) not use HP's ANSI C compiler (because we didn't bought it). I'll use GNU gcc instead HP's compiler. The 32 bit version works fine without HP'ANSI C. And I think the 64 bit should work too.
TIA
Dirk
DN

Re: building gcc3.0.3 64bit on hpux11.0

Check the configure.log, you will find gcc was tested/invoked with -g. Debugging under HP-UX is done by means of /opt/langtools/lib[/pa20_64]/end.o. If you do the configure like this:

CFLAGS="-O -pipe" ./configure --[configure flags] you should be fine.

end.o is apparently supplied with the HP C compiler set.

Also see my reply to the ld/gcc thread a few minutes ago, since it details some fun stuff you might walk into wrt using gcc and /usr/ccs/bin/ld.
Fallen into evermourn with these wings so torn, after your day, my dawn...
Niemeier
Occasional Contributor

Re: building gcc3.0.3 64bit on hpux11.0

Hi,
there are some more points in configure script that cause the error. I could change the configuire script, but why are the necessary HP libraries for 32-bit are shiped with standard HP C compiler and not for the 64-bit compiler ? Isn't there a way to get them ? I used the gnu 32-bit compiler on HP for years and never had any problem. Isn't there a free HP package that install the necessarey (runtime) libraries ?
cu
Dirk
dirk.niemeier@stueken.de
DN
Nicolas Moulin_1
Occasional Advisor

Re: building gcc3.0.3 64bit on hpux11.0

Hi Dirk,

I have the same problem with gcc 3.2 64 bits on HP-UX11i.

Did find the solution to your problem (free package with missing libs)?

Best Regards,
Nicolas
H.Merijn Brand (procura
Honored Contributor

Re: building gcc3.0.3 64bit on hpux11.0

Precompiled gcc-3.2 64bit for HP-UX 11.00 available *with* build procedure description on my ITRC sites https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/

It also includes binutils-2.13 and gdb-5.2

When gcc-3.3 will be officially released, I'll update the site. The package will then include binutils-2.13.2.1 and gdb-5.3.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Nicolas Moulin_1
Occasional Advisor

Re: building gcc3.0.3 64bit on hpux11.0

Hi Procura,
Thanks for your answer. Meanwhile I have installed gcc 3.2 32-bits and it seems to have solved my problem.
(but got others, now I need to install flex and bison, it's a never ending story :))

Will check later for the 64bits version on your site.
Thanks & Regards,
Nicolas