Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ? (704 Views)
Reply
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 1 of 22 (704 Views)
Accepted Solution

Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

[ Edited ]

I have been hunting for the binary depots for GCC 3.3.2. From what I understand, this is the latest release of GCC that I can use with my OS, HP-UX 11.00. The link that supposedly brings me to the download page is broken. Where can I get these binaries? Also, are there any special install instructions for installing the binaries? I cannot compile the source code for this release becuase I do not have an ANSI-compiler (just the bundled cc compiler). Thanks.

 

-------------------------------

P.S. This Thread has been moved from HP-UX --> General to HP-UX --> Languages & Scripting - Forum Moderator

Honored Contributor
Geoff Wild
Posts: 7,170
Registered: ‎06-04-2001
Message 2 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

http://www.hpux.ws/merijn/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 3 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

1. On my site, the binary distributions are not depot's, but compressed archives. Installation instructions are included on the site
2. The latest version of gcc that is released as stable is gcc-3.4.2 and works fine on HP-UX 11.00
3. GNU gcc is also already available in the 4.0.0 track, which I have running on AIX 5.2, but I would not advise you to do so on HP-UX :)

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Honored Contributor
Geoff Wild
Posts: 7,170
Registered: ‎06-04-2001
Message 4 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Ah - sorry Merijn explained it - for depots - 3.4.2 is on the porting centre:

http://hpux.ee.ualberta.ca/hppd/hpux/Gnu/gcc-3.4.2/


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 5 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Ok, now I'm confused by this. I got 3.3.2 because I was lead to believe that it was the latest version that would work with 3.3.2. It **seems** to work, but I am having lots of trouble using the varargs stuff. I get core dumps (bus errors, which to me indicates some type of alignment problem) when it encounters it. Is 3.4.2 truly compatible, and will it solve this problem? 3.4.2 seems to be a 64 bit implementation, and I have a 32 bit machine. Thanks for your expertise...I am in unchatered territory here and need all the help I can get.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 6 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

gcc builds are EITHER 32bit OR 64bit. They cannot generate code for the other side.

So if you need 32bit objects, get the 32bit version.

http://mirrors.develooper.com/hpux/gcc-3.4.2-32-11.00-hppa2.0.tbz

I don't have varargs problems here, and I use that compiler daily (for perl testing)

Maybe your include files are not completely up to date, or is your libc too old

Enjoy, Have FUN! H.Merijn [ who finds it a bit unfair that others get a bunny for the work he does ]
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 7 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Well, 3.2.2, 3.4.2, I still crash when I declare a function that uses varargs. I'm not sure if I need a patch or something, but this sure is a frustrating exercise. Anytime a function like the following is called, I crash with a bus error (which to me, means an alignment problem).

int dbgprintf (int oblig_arg, ...)
{
return 0;
}
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 8 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

a5:/tmp 104 > cat xx.c
#include
#include
#include

int dbgprintf (int oblig_arg, ...)
{
return 0;
} /* dbgprintf */

int debug (int i, char c, ...)
{
} /* debug */

int main (int argc, char *argv[])
{
printf ("%7d Hello world!\n", 7);

exit (0);
} /* main */
a5:/tmp 105 > cc -o xx xx.c
a5:/tmp 106 > ./xx
7 Hello world!
a5:/tmp 107 > gcc -o xx xx.c
a5:/tmp 108 > ./xx
7 Hello world!
a5:/tmp 109 > gcc --version
gcc (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

a5:/tmp 110 > ux
a5 HP-UX 11.00/64 U 9000/800/A500-7X/64 PA8700/750(2) pa-2.0 2048 Mb
a5:/tmp 111 >

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 9 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

What is this telling me? I don't really understand. dbgprintf is never called, nor is debug. Can you explain what you've done? Thanks.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 10 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

I read from your mail that you got core dumps on *compile*
So I proved here that this small example program compiled warning/error free on HP-UX 11.00 with both the HP C-ANSI-C compiler, and with gcc-3.4.2, and also ran fine

I'll try to call it ...

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 11 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

I see the confusion. No, it crashes when I try to run it.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 12 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

OK, now it's called:

a5:/tmp 104 > cat xx.c
#include
#include
#include

int dbgprintf (int oblig_arg, ...)
{
return 0;
} /* dbgprintf */

int debug (int i, char c, ...)
{
} /* debug */

int main (int argc, char *argv[])
{
printf ("%7d Hello world!\n", 7);

dbgprintf (0);
dbgprintf (1, "Two args");
dbgprintf (2, "Three args");

exit (0);
} /* main */
a5:/tmp 105 > cc -O -o xx xx.c
a5:/tmp 106 > ./xx
7 Hello world!
a5:/tmp 107 > gcc -O -o xx xx.c
a5:/tmp 108 > ./xx
7 Hello world!
a5:/tmp 109 >


No errors no warnings no coredumps no pain.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 13 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Ok, well, I guess I'm flying solo here. Obviously, I've got the wrong version of something, but I have no idea what it is. Are there any patches that must be applied to the OS for things to work correctly? This machine has about 7 or 8 patches applied, but I don't know what is really necessary on the machine. I am not an HPUX expert. I've just been assigned to port my SunOS/Linux code to this platform.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 14 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Did you use the same include files? In the same order?

Check your patch level:

a5:/u/usr/merijn 104 > swlist | grep -i -e gold -e extsw -e qpk -e hwe
HWE1100 B.11.00.0403.3 Hardware Enablement Patches for HP-UX 11.00, March 2004
QPK1100 B.11.00.64.4 Quality Pack for HP-UX 11.00, March 2004
a5:/u/usr/merijn 105 >

As you can see it shows the date of the patch (bundle)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 15 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

The only thing that I get when I run that command is:

QPK1100 B.11.00.58.5 Quality Pack for HP-UX 11.00, September 2002

Does this matter? Will I need to upgrade?
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 16 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Also, do I need to use -D_HPUX_SOURCE during compilation?
Honored Contributor
Slawomir Gora
Posts: 712
Registered: ‎07-29-2003
Message 17 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Hi,

the latest QPK and HWE is:
QPK1100 B.11.00.64.4 Quality Pack for HP-UX 11.00, March 2004
HWE1100 B.11.00.0403.3 Hardware Enablement Patches for HP-UX 11.00, March 2004

yours are a litle old version :)
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 18 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Maribeth, apparently it *does* matter.

Next to probably quite out of date include files, you might also have (shared) libraries that were fixed

If you can get hold of the March patch bundles, I'd advice to upgrade. Since HP-UX 11.00 is not in development anymore, March-2004 might be considered rather stable

I'd also advice you to asign points (like 0 is OK in the abandoned thread) if you want help in the future.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 19 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

Ok, I'm going to have our administator add this patch. Is this a cumulative patch or do I need to worry about applying other patches before this one? Also, I closed the other thread with 0 points...thanks for the advice.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 20 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

It's accumulative.

If you didn't add any harware since 2002, just do the QPK

Good Luck!

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Honored Contributor
H.Merijn Brand (procura
Posts: 6,189
Registered: ‎10-13-1997
Message 21 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

You indeed closed the other thread, but did you *submit* the 0 points? I'm still unasigned there

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Frequent Advisor
Maribeth Romeo
Posts: 43
Registered: ‎10-07-2004
Message 22 of 22 (704 Views)

Re: Where is GCC 3.3.2 (binaries) for HP-UX 11.00 ?

They're assigned now :)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.