Operating System - HP-UX
1833818 Members
2521 Online
110063 Solutions
New Discussion

gcc problem. might be hpux related

 
SOLVED
Go to solution
Josh_13
Super Advisor

gcc problem. might be hpux related

becasue no one on the gcc.gnu.org mailing list seems to care, i decided to try here.

1st off, has anyone installed gcc3.0.1 on a hp9000 series d370 running 11i?

ok. that's the machine i'm trying to get the gcc301 onto. turns out i had to make gmake as if there was no make in the hpux 11i. it was found out in 11 that the hpux make is problematic and corrupts the making of gmake, which is needed for the gnubinutils and gcc.

i was able to create gmake without a problem. gnubinutils had a slight problem with an invalid path name that was easy to fix.
however, i keep getting errors with gcc.
it keeps giving me errors about missing files and directories. most of a number i have been able to reason were being sought for in the source directory instead of the target directory that they reside in.

has anyone else had these problems? do you have any hints on how to get it to work?
8 REPLIES 8
Uday_S_Ankolekar
Honored Contributor
Solution

Re: gcc problem. might be hpux related

Rob Galloway_1
Frequent Advisor

Re: gcc problem. might be hpux related

Without going into great detail I had a tough time getting gcc to work and my problems were resolved by the following steps:-

Making sure I had the latest gcc & binutils

Fixing pathing problems

/usr/lib & /usr/ccs/bin were two that I can remember

Also I recall the order of pathing was important (I think for make).

Its been a little while since I did this - hope it helps anyhow.

R.
Experience is a hard teacher. It tests first and teaches afterward.
Sebastien Masson
Valued Contributor

Re: gcc problem. might be hpux related

I got the same thing. To fix it, I download a gcc from the portal web site (http://hpux.ee.ualberta.ca/) and build GCC with it without bootstap.

Just be sure your build the last binutils, flex and bison.

Of course, GNU make is needed.
Josh_13
Super Advisor

Re: gcc problem. might be hpux related

thanx. all of these helped in some way. i think i'm going to dl the ready-made, hp-provided port. turned out i needed to add the /usr/ccs/bin path. it also helps make th e binutils work. before getting the hp one, i'm trying to restart the install from scratch since the lack of the ccs path may have inhibited the gnubinutils from working.

i hope that this helps others too.
thanx once again for the help, only because i wanna try to actually build it since there's a question about it working right otherwise does the link to the hp provided ports not become amagic answer, and the others aren't only becuase there might be something more after doing them/having done them. i decided that since it's been about a week since the post i'd give the points now to be sure that my appreciation was known.

-Josh
Josh_13
Super Advisor

Re: gcc problem. might be hpux related

Uday:

how does one get the swinstall to work right? i've tried every logical product name inthe example they give and it's teling me the product doesn't exist anywhere

-Josh

Re: gcc problem. might be hpux related

Josh,

you could use the HP.com provided gcc versions, available in 32 and 64 bit [unlike the HPPA ones], just make sure you read some of the other threads I posted to not get caught off-guard when using it and the linker in ccs.
Fallen into evermourn with these wings so torn, after your day, my dawn...
Josh_13
Super Advisor

Re: gcc problem. might be hpux related

i find it ironic that this got a answer after i posted the link as an answer to someone else. i used it to attempt to make a native on 11i and was then told that tye wanna go back to 10.20 since they don't know for a fact CiscoWorks2000 works on 11i. i'm actually haveing trouble getting that to install right now. i'll post the error when it's done the latest compiling. i've rerun it to post ont he gcc mailing list.

thanks for the 11i help though
Josh_13
Super Advisor

Re: gcc problem. might be hpux related

make[5]: Leaving directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libstdc++-v3'
make[4]: Leaving directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libstdc++-v3'
make[3]: Leaving directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libstdc++-v3'
make[2]: Leaving directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libstdc++-v3'
make[2]: Entering directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libf2c'
cd libI77; make CC='/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include' CFLAGS='-O2' CPPFLAGS='' AR='ar' RANLIB='true' PICFLAG='' RUNTESTFLAGS='' prefix='/usr/local' exec_prefix='/usr/local' libdir='/usr/local/lib' libsubdir='/usr/local/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.0.3' tooldir='/usr/local/hppa2.0-hp-hpux10.20' all
make[3]: Entering directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libf2c/libI77'
/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include -c -I. -I../../../../gcc-3.0.3/libf2c/libI77 -I.. -I../../../../gcc-3.0.3/libf2c/libI77/.. -DHAVE_CONFIG_H -O2 -o VersionI.o ../../../../gcc-3.0.3/libf2c/libI77/Version.c
/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I. -I../../../../gcc-3.0.3/libf2c/libI77 -I.. -I../../../../gcc-3.0.3/libf2c/libI77/.. -DHAVE_CONFIG_H -O2 ../../../../gcc-3.0.3/libf2c/libI77/backspace.c
/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I. -I../../../../gcc-3.0.3/libf2c/libI77 -I.. -I../../../../gcc-3.0.3/libf2c/libI77/.. -DHAVE_CONFIG_H -O2 ../../../../gcc-3.0.3/libf2c/libI77/close.c
/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I. -I../../../../gcc-3.0.3/libf2c/libI77 -I.. -I../../../../gcc-3.0.3/libf2c/libI77/.. -DHAVE_CONFIG_H -O2 ../../../../gcc-3.0.3/libf2c/libI77/dfe.c
/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I. -I../../../../gcc-3.0.3/libf2c/libI77 -I.. -I../../../../gcc-3.0.3/libf2c/libI77/.. -DHAVE_CONFIG_H -O2 ../../../../gcc-3.0.3/libf2c/libI77/dolio.c
/opt/gcc303/gcc/xgcc -B/opt/gcc303/gcc/ -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B/usr/local/hppa2.0-hp-hpux10.20/lib/ -isystem /usr/local/hppa2.0-hp-hpux10.20/include -c -DSkip_f2c_Undefs -DAllow_TYQUAD -I. -I../../../../gcc-3.0.3/libf2c/libI77 -I.. -I../../../../gcc-3.0.3/libf2c/libI77/.. -DHAVE_CONFIG_H -O2 ../../../../gcc-3.0.3/libf2c/libI77/due.c
CONFIG_FILES= CONFIG_HEADERS=config.h /bin/sh config.status
config.status[4]: ../binutils-2.11.2/configure: not found.
make[3]: *** [stamp-h] Error 127
make[3]: Leaving directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libf2c/libI77'
make[2]: *** [i77] Error 2
make[2]: Leaving directory `/opt/gcc303/hppa2.0-hp-hpux10.20/libf2c'
make[1]: *** [all-target-libf2c] Error 2
make[1]: Leaving directory `/opt/gcc303'
make: *** [bootstrap] Error 2
hal 32:


that's the current error.
i can't figure out where "config.status[4]: ../binutils-2.11.2/configure: not found." is being called from, so i'm not sure how to fix it