Operating System - HP-UX
1753448 Members
5014 Online
108794 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
Maribeth Romeo
Frequent Advisor

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

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

21 REPLIES 21
Geoff Wild
Honored Contributor
Solution

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.
H.Merijn Brand (procura
Honored Contributor

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
Geoff Wild
Honored Contributor

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.
Maribeth Romeo
Frequent Advisor

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.
H.Merijn Brand (procura
Honored Contributor

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
Maribeth Romeo
Frequent Advisor

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;
}
H.Merijn Brand (procura
Honored Contributor

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
Maribeth Romeo
Frequent Advisor

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.
H.Merijn Brand (procura
Honored Contributor

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