cancel
Showing results for 
Search instead for 
Did you mean: 

CC comiler

 
Highlighted
Advisor

CC comiler

I am Using HP UX11V1(11.11) and in my system i have cc compiler only(not gcc). I would like to build 3rd party package for that i need gcc compiler with "-mpa-risc-1-1" option. How can i build same thing using cc.

In othere word my system is PA-RISC HP-UX 11i v1 i would like to build package on this using cc . How can i achive this.
8 REPLIES 8
Highlighted
Honored Contributor

Re: CC comiler

If you "need gcc compiler", then you need the
GCC C compiler. Whether you can build this
product with the HP C compiler might depend
on exactly what it is. It may also depend on
whether you have the (extra-cost) HP ANSI C
compiler or only the (lame) HP Bundled C
compiler.

Knowing only "3rd party package", it's hard
to say what you would need to do to prevent
the builder from trying to use that
"-mpa-risc-1-1" option.
Highlighted
Acclaimed Contributor

Re: CC comiler

>I would like to build 3rd party package for that i need gcc compiler with "-mpa-risc-1-1" option. How can i build same thing using cc.

Provided you have source that doesn't use any GNUisms, you can use +DAportable. And you would have to remove -mpa-risc-1-1 and any other gcc options from the makefiles.
Highlighted
Honored Contributor

Re: CC comiler

most stuff I've seen that "need" a gcc compiler are downloads from the Free Software Foundation. The generally come with a configuration script that will determine the compiler available and the correct options to use with same.

the next question I have is: Do you really have a c compiler, or do you have the "bundled" compiler used to build the kernel? The bundled compiler isn't really used for development. you could, of course, install gcc and related stuff.
Highlighted
Honored Contributor

Re: CC comiler

Just download and install/use gcc.

You can have more than one compiler.
I have HP ANSI C compiler, the HP Bundled C
and gcc. All on one box.

You can get an 11.11 depot here
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.2.3/

Dont forget the Build-time dependencies.

Highlighted
Honored Contributor

Re: CC comiler

ov course if you get the .depot file you wont have to worry about the Build-time dependencies
Highlighted
Honored Contributor

Re: CC comiler

Just would like to remind you all we have a great gcc builder among us.

http://mirrors.develooper.com/hpux/downloads.html

Gcc downloads in hpux depot format.

Best regards,
Robert-Jan
Highlighted
Honored Contributor

Re: CC comiler

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.2.3/

go this website as mentioned above
and download in to u windows
connect u unix server through ftp
bin
then put in your /usr/local directroy

gunzip the file
then u will get gcc........depot file name
then swinstall -s /usr/local/gcc....depot
Highlighted
Advisor

Re: CC comiler

Thanks Dude for Valuable suggestion

I did it with cc compiler