1833178 Members
2571 Online
110051 Solutions
New Discussion

Re: gcc compilation

 
M.Thomas
Frequent Advisor

gcc compilation

We have Ansi c compiler available in HPUX 11.11,Please let us know the prerequiste for gcc 4.1.1 compilation
and let me know the compilation procedure.

Thanks & Regards
Thomas
4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor

Re: gcc compilation

I have described the process on my site, and have scripts available there to build gcc from scratch. Also I do have most recent GNU gcc builds available as depots for most HP-UX versions already.

http://mirrors.develooper.com/hpux/#Gcc

Note that the 64bit builds of gcc *build* OK, but if you use them for bigger projects (e.g. building perl) you will run into trouble. On 11.11 I strongly advice to stick with 3.4.6

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
M.Thomas
Frequent Advisor

Re: gcc compilation

Hi Merijn,

Thanks Merijn

Regarding the prerequiste, Please let me know what need to present prior i proceed with the gcc.

Regards,
Thomas
M.Thomas
Frequent Advisor

Re: gcc compilation

Hi Merijn,

When i issue cc command, i get following error / info. Is there any issue with cc

root:xxtcu70:/graphviz/obj> cc
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)

Regards,
Thomas
Dennis Handly
Acclaimed Contributor

Re: gcc compilation

>When i issue cc command
$ cc
/usr/ccs/bin/ld: Unsatisfied symbols:
main (Not referenced yet! Probably due to -u option)

The PA C compiler wants to link something so passes -u main to ld.

Why do you want to invoke the C compiler and provide nothing to do?