Operating System - HP-UX
1833017 Members
2130 Online
110048 Solutions
New Discussion

compiling gcc 3.3.3 on hpux 11.11

 
Rohan_7
Advisor

compiling gcc 3.3.3 on hpux 11.11

Hi,

I am trying to compile and install gcc 3.3.3 on HPUX 11.11.
I'm doing this because I want static library of gcc rather than the dynamic.
I have updated other required utils (e.g binutils, flext, bison etc).

I am compiling this with gcc 3.2.3.

The configure goes fine, but while doing make I get following error
---------------------------------------------
gmake[1]: Entering directory `/cpifs/rohan/gcc3.3.3/src/gcc-3.3.3/libiberty'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -I. -I./../include -W -Wall -Wtraditional -pedantic floatformat.c -o pic/floatformat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -I. -I./../include -W -Wall -Wtraditional -pedantic floatformat.c -o floatformat.o
floatformat.c:24: syntax error before "size_t"
floatformat.c:25: syntax error before "size_t"
gmake[1]: *** [floatformat.o] Error 1
---------------------------------------------

Any clues why this would be happening?
I see following during configure stage
"checking for mempcpy... no"
for configure in "libiberty" directory. Is this any way related?

Thanks in advance

Rohan
5 REPLIES 5
H.Merijn Brand (procura
Honored Contributor

Re: compiling gcc 3.3.3 on hpux 11.11

Yes, I have. It's all described on my site. I bet you are either using a gcc built on/for 11.00 to compile gcc on 11i or you are waaaay behind in 11i patches.

I suggest to either fetch a prebuilt static gcc for 11i (I think my build is static, because I build explicitely to disable dynamic) or use a 11i made gcc to rebuild gcc

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
Rohan_7
Advisor

Re: compiling gcc 3.3.3 on hpux 11.11

Hi Merijn

Thanks a lot for the response. Actually, I saw the link to your site in one of other postings on similary topic. But was not sure whether the gcc built with -disable-shared or not.

I guess the problem, I'm seeing is indeed because my gcc 3.2.3 was built for HP 11.00.
Its lib resides in /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2.3
Is the reasoning right?

Meanwhile, I'm trying to download gcc you supplied.

Thanks
Rohan
H.Merijn Brand (procura
Honored Contributor

Re: compiling gcc 3.3.3 on hpux 11.11

Yes. Sounds OK. FWIW I deduct you are going for a 32bit gcc.

I've had reports that gcc/64 might use --enable-shared by default, even if disabled, but I did not investigate further.

I don't want to ship dynamic builds, because it is a PITA to upgrade once you don't clean up well

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Rohan_7
Advisor

Re: compiling gcc 3.3.3 on hpux 11.11

Some more observation

I took the gcc use supplied, but its compiled without thread support. I require gcc with POSIX threads!
So now I am trying to build gcc 3.3.3 using the binutils and gcc provided by you - installed at non-standard path.
It went fine till I got assembler problem. It said something like
as: "/var/tmp/ccZCpQ0a.s", line 10: error 1052: Directive name not recognized - FILE
as: "/var/tmp/ccZCpQ0a.s", line 11: error 1052: Directive name not recognized - STABS

After referring to http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140645
and setting the env variable pointing to bin directory of your gcc installation, I could compile my GCC 3.3.3 with posix threads.

However, now when I compile other C programs with my compiled GCC, i have to set COMPILER_PATH, otherwise it gaves me same assembler problem.

Would properly installing binutils 2.14 would solve the problem? (i.e w/o compiling my GCC 3.3.3).

Thanks a lot
Rohan
H.Merijn Brand (procura
Honored Contributor

Re: compiling gcc 3.3.3 on hpux 11.11

I can't tell. All works perfectly here. Most depends - indeed - on the $PATH, and where it finds (g)make, as, gcc, and ld

Enjoy, Have FUN! H.Merijn [ who's affraid he cannot help here ]
Enjoy, Have FUN! H.Merijn