Operating System - Linux
1753440 Members
4634 Online
108794 Solutions
New Discussion юеВ

GCC Compile Error on HP-UX 10.20

 
SOLVED
Go to solution
gineraso
Occasional Advisor

GCC Compile Error on HP-UX 10.20

I attempting to build GCC 3.4.6 on my HP 10.20 D Class server. I run make bootstrap in a sub-directory and I get this error:

Bootstrapping the compiler
Make: line 64: syntax error. Stop.
*** Error exit code 1

Is there a log I can look at for more information? Cany anyone assist me? Thank you.
14 REPLIES 14
H.Merijn Brand (procura
Honored Contributor
Solution

Re: GCC Compile Error on HP-UX 10.20

Why not get it prebuilt from my site?

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

http://mirrors.develooper.com/hpux/gcc-4.1.0-10.20.sd.bz

OK, it's not 3.4.6, but at least it is very recent, and it should suffice to help you build 3.4.6 with it.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
gineraso
Occasional Advisor

Re: GCC Compile Error on HP-UX 10.20

It looks like a depot. Can it be that easy??
H.Merijn Brand (procura
Honored Contributor

Re: GCC Compile Error on HP-UX 10.20

I hope so. At least I have *tried* to make it that easy.

# cd /tmp
# wget http://mirrors.develooper.com/hpux/gcc-4.1.0-10.20.sd.bz
# bzip2 -d gcc-4.1.0-10.20.sd.bz
# swinstall -s /tmp/gcc-4.1.0-10.20.sd gcc

# perl -pi -e 's,$,:/usr/local/pa11_32/bin,' /etc/PATH
# export PATH=$PATH":"/usr/local/pa11_32/bin

Done

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Steve Ellcey
Valued Contributor

Re: GCC Compile Error on HP-UX 10.20

If you do decide to go ahead and build GCC you need the GNU make. I think this is why you are getting the make error, because you are using the HP make instead of GNU make.
gineraso
Occasional Advisor

Re: GCC Compile Error on HP-UX 10.20

I was using the wrong make. Thank you. I now get this error using this command:

/gen1/lginer/gcc-3.4.6/configure --prefix=/gen1/usr/local --exec-prefix=/gen1/usr/local --libexecdir=/gen1/usr/local/libexec

make bootstrap-lean

cc1: /usr/libexec/gcc/hppa1.1-hp-hpux10.20/3.4.6/include: Not a directory
cc1: /usr/libexec/gcc/hppa1.1-hp-hpux10.20/include: Not a directory
collect2: gcc returned 1 exit status
make[3]: *** [libgcc_s.sl] Error 1
make[3]: Leaving directory `/gen1/gcc/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/gen1/gcc/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/gen1/gcc/gcc'
make: *** [bootstrap-lean] Error 2

I can't get the Makefile to override where libexec is installed. There is a file named /usr/libexec that I don't know if I can move/delete. Going nuts here...please help.

G
Steve Ellcey
Valued Contributor

Re: GCC Compile Error on HP-UX 10.20

I have never seen this problem. I generally compile with --prefix= but don't use --exec-prefix or --libexecdir. I would try leaving these two options out. The documentation in gcc/doc/install.texi indicates that these options should not normally be needed. Do you get the same error when you don't use these options?
Luis Giner
New Member

Re: GCC Compile Error on HP-UX 10.20

Yes. The reason I started adding those variables was that a file named /usr/libexec already exists. I was trying to see if it would install somewhere else. I'm not sure what libexec is so I can't just move or delete it.
Steve Ellcey
Valued Contributor

Re: GCC Compile Error on HP-UX 10.20

I am not sure why, using --prefix=/gen1/usr/local, you would get a complaint about /usr/libexec already existing.

If you use --prefix=/gen1/usr/local then everything should be put under /gen1/usr/local and nothing should get put into /usr/libexec. Does /gen1/usr/local have symlinks under it that point back to /usr/libexec? Can you change your prefix to some directory that is currently empty (or does not exist) and put GCC there instead of into /gen1/usr/local?
gineraso
Occasional Advisor

Re: GCC Compile Error on HP-UX 10.20

There's no links at all. I created a new directory /gen1/gnucc and running it there. Let's see what happens.