Operating System - HP-UX
1844572 Members
2778 Online
110233 Solutions
New Discussion

Re: gcc installation Problem

 
SOLVED
Go to solution
Robinson W
Occasional Advisor

gcc installation Problem

Hi,
I tried installing gcc from source code on HP-UX 11.23(Itanium 2) but returned with errors during "gmake install". The errors are-

/home/robin/gcc-4.2/binutils/install-sh[278]: strip: not found.
gmake[5]: *** [install-binPROGRAMS] Error 1
gmake[4]: *** [install-am] Error 2
gmake[3]: *** [install-recursive] Error 1
gmake[2]: *** [install-binutils] Error 2
gmake[1]: *** [install] Error 2
gmake: [install_binutils] Error 2 (ignored)
*** This configuration is not supported in the following subdirectories:
target-libffi target-zlib target-libjava zlib target-boehm-gc
(Any other directories should still work fine.)
cat: Cannot open ../../gcc/gcc/BASE-VER: No such file or directory
configure: error: cannot execute: /usr/local/bin/as: check --with-as or env. var. DEFAULT_ASSEMBLER
gmake[3]: *** [configure-stage1-gcc] Error 1
gmake[2]: *** [stage1-bubble] Error 2
gmake[1]: *** [bootstrap] Error 2
gmake: [install_gcc] Error 2 (ignored)
/bin/sh[2]: strip: not found.
gmake: [install] Error 127 (ignored)
/bin/sh[2]: strip: not found.
gmake: [install] Error 127 (ignored)

I downloaded the source file from http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.2.3/
Kindly help me out. "man strip" is working. Do I need to have the latest patch of ANSI C.
Regards,
Robin.
10 REPLIES 10
Robert-Jan Goossens_1
Honored Contributor

Re: gcc installation Problem

Hi Robin,

Why not download and install the compiled depot version for 11.23?

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

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: gcc installation Problem

Shalom,

The developers fixed the problems you encountered when they built the aforementioned depots.

Why not give them a try.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: gcc installation Problem

Why not getting the depot from there?

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

Did you install all the built-time dependencies?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor
Solution

Re: gcc installation Problem

>strip: not found.

The only way this can fail is that you don't have /usr/bin or /usr/ccs/bin in your PATH.
Or you have /usr/bin and you have removed the tlinks.
Fabien GUTIERREZ
Frequent Advisor

Re: gcc installation Problem

sounds like your user do not have rights accesses ti install compiled gcc in the / tree
Robinson W
Occasional Advisor

Re: gcc installation Problem

Thanks for all ur valuable suggestions.
Previously I have installed the gcc from the depot format but this time I need to install it from the source code.
Dennis, I think the PATH I gave for strip was incorrect. I gave /usr/bin but not /usr/css/bin.
I will try with it and come back again.
I have installed all the dependencies.
Robinson W
Occasional Advisor

Re: gcc installation Problem

Thank you Dennis. The main problem with strip was with the PATH. But encountered one more problem. The gmake is returning an error.
I have searched the file named dummy-checksum.c but no trace of it. What should I do? What might be the possible reason for this? Can anyone help me pliz?
*********************************************
cc -c -DUSE_LIBUNWIND_EXCEPTIONS -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber ../../gcc/gcc/config/ia64/ia64-c.c
cc -c -DUSE_LIBUNWIND_EXCEPTIONS -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber ../../gcc/gcc/c-gimplify.c -o c-gimplify.o
cc -c -DUSE_LIBUNWIND_EXCEPTIONS -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber ../../gcc/gcc/tree-mudflap.c -o tree-mudflap.o
cc -c -DUSE_LIBUNWIND_EXCEPTIONS -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber ../../gcc/gcc/c-pretty-print.c -o c-pretty-print.o
cc -c -DUSE_LIBUNWIND_EXCEPTIONS -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber -I../libdecnumber ../../gcc/gcc/c-omp.c -o c-omp.o
gmake[4]: *** No rule to make target `dummy-checksum.c', needed by `dummy-checksum.o'. Stop.
gmake[4]: Leaving directory `/home/robin/gcc-4.2/gccobj/gcc'
gmake[3]: *** [all-stage1-gcc] Error 2
gmake[3]: Leaving directory `/home/robin/gcc-4.2/gccobj'
gmake[2]: *** [stage1-bubble] Error 2
gmake[2]: Leaving directory `/home/robin/gcc-4.2/gccobj'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/home/robin/gcc-4.2/gccobj'
gmake: [install_gcc] Error 2 (ignored)
/bin/rm -f /usr/local/*hp-hpux*/bin/strip /usr/local/bin/strip /usr/local/man/man1/strip.1
cd /usr/local/lib; \
strip libbfd.s? libopcodes.s? libstdc++.s? libssp.s? libgomp.s?
strip: libstdc++.s?: cannot open
strip: libssp.s?: cannot open
strip: libgomp.s?: cannot open
gmake: [install] Error 1 (ignored)
cd /usr/local/lib/hpux64; \
strip libgomp.so libssp.so libstdc++.so
strip: libgomp.so: cannot open
strip: libssp.so: cannot open
strip: libstdc++.so: cannot open
gmake: [install] Error 1 (ignored)
cd /usr/local/bin; \
/bin/rm -f *gcj* gjnih jcf-dump jv-scan
*********************************************
Dennis Handly
Acclaimed Contributor

Re: gcc installation Problem

>I have searched the file named dummy-checksum.c but no trace of it. What should I do? What might be the possible reason for this?

Well you could use touch(1) to create it.
Either there is a way to "make" that file or some installation directions missing?

>strip: libstdc++.s?: cannot open

It appears all of these strips can't find those files.
Robinson W
Occasional Advisor

Re: gcc installation Problem

Thanx everyone for giving such a good support especially Dennis. Its done now.
Robinson W
Occasional Advisor

Re: gcc installation Problem

thanx...