Operating System - Linux
1829106 Members
2778 Online
109986 Solutions
New Discussion

Need gcc version for HP_UX 11 where thread-model = posix

 
Maribeth Romeo
Frequent Advisor

Need gcc version for HP_UX 11 where thread-model = posix

I am running gcc version 3.4.2. When I do a 'gcc -v' it tells me that my threading model is single. I have a mulit-threaded application. Do I need to upgrade to a version of gcc where thread-model = posix? If so, where can I find depots (not source code!!) that have this feature already turned on? Thanks. Please point me directly to the downloadable file(s) and not to a general website.

 

 

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

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

18 REPLIES 18
DCE
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Here is wher you can get the most recent version of gcc for hpux (as well as many other apps for the hpux environment)

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.4.3/
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

The link does not work. Can you check it and repost. Thanks. Also, do you know if this depot has --enable-threads=posix turned on?
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

This appears to be for HP-UX 11.11. I am running 11.00
DCE
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

going throught the on line man page at the site, ther is a -pthreads option for multithreading.

I was able to click on the link and get to the site. There is a mirror site available in the UK as well, but I do not have that link off hand.
DCE
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

There are three versions to download from the site: 11.11, 11,23 and a general HPUX version. I believe the last one will suit your needs
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Nope. It is also an 11.11 version. Looks like this website doesn't support before 11.11 anymore. Look at this:

http://hpux.cs.utah.edu/hppd/answers/5-4.html


DCE
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Found this site - it has 11.0 binaries as a link.

http://gcc.gnu.org/install/binaries.html
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

That's closer. Those are version 3.0.1 from 2001. Still not really what I need.
DCE
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Try this one

ftp://ftp.thewrittenword.com/packages/by-name/gcc-3.4.3/

You might have to dod refresh to connect - but does list an 11.00 3.4.3 gcc
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

These you have to pay for, which is not feasible until I know something will work.
Rajesh SB
Esteemed Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Hi,

You can try 3.4.3 version gcc at

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.4.3/

Regards,
Rajesh
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

This version is for 11.11, and I am running 11.00. They are not compatible.
Rajesh SB
Esteemed Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Hi,

In the bottom there is source code tarred/Gzipped file is provided in the same link. Using this you can compile for 11.0.

Regards,
Rajesh
Florian Heigl (new acc)
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

Maribeth:

Out of my experience, none of the C-compilers at the HP-UX porting archive are threaded ;)

There is a working gcc for 11.00 at the The Written Word, and it does NOT cost anything.
I've used it myself on my old 755 running 11.00

I don't have direct outgoing ftp access, so I can't point You directly to the file. (also You seem that unwilling to search for Yourself, I don't want to break the IT policies here Your to look it up for You.)
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

The written word also supplies a full CD set of Opensource software for HP-UX and other OS, which *is* supported and thus something You have to pay for.

If You buy the CDs and it wouldn't work on Your system, You can rest assured, probably someone will go to great lengths to fix it for You.
yesterday I stood at the edge. Today I'm one step ahead.
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

The 11.11 source code will not compile cleanly on an 11.00 machine. I will need to try to get binaries for this. I will try The Written Wors, as suggested.
Maribeth Romeo
Frequent Advisor

Re: Need gcc version for HP_UX 11 where thread-model = posix

The 11.11 source code will not compile cleanly on an 11.00 machine. I will need to try to get binaries for this. I will try The Written Word, as suggested.
Florian Heigl (new acc)
Honored Contributor

Re: Need gcc version for HP_UX 11 where thread-model = posix

ftp://packages/by-architecture/hppa1.1-hp-hpux11.00/gcc-3.4.3/gcc-3.4.3.depot.tar.Z

florian
yesterday I stood at the edge. Today I'm one step ahead.