Solved

gcc Installation

Posted on 1997-03-27
2
396 Views
Last Modified: 2013-12-16
I'm attempting to install a version of gcc that was

                 recieved from:
                 http://hpux.csc.liv.ac.uk/hppd/hpux/Gnu/gcc-2.7.2.1/

                 We are running on hp ux 10.20, and have the bundled cc. The
                 make (make LANGUAGES=c) runs, but returns a condition code
                 1. Here is the last of the script log:

                 Removing unneeded directories:
                 rm -f include/syslimits.h
                 if [ -f include/limits.h ]; then \
                 mv include/limits.h include/syslimits.h; \
                 else \
                 cp ./gsyslimits.h include/syslimits.h; \
                 fi
                 chmod a+r include/syslimits.h
                 touch stmp-fixinc
                 if [ -d include ]; then true; else mkdir include; fi
                 if [ -d objc ]; then true; else mkdir objc; fi
                 thisdir1=`pwd`; \
                 srcdir1=`cd .; pwd`; \
                 cd objc; \
                 make -f ${srcdir1}/objc/Makefile copy-headers \
                 srcdir=${srcdir1} tooldir=/usr/local/hppa1.1-hp-hpux10.20
                 AR="ar" AR_FLAGS="rc" \
                 GCC_FOR_TARGET="${thisdir1}/xgcc -B${thisdir1}/" \
                 GCC_CFLAGS=" -DIN_GCC -g -I./include"
                 incinstalldir=${thisdir1}/include
                 rm -fr /home/snape9/gcc-2.7.2.2/include/objc
                 mkdir /home/snape9/gcc-2.7.2.2/include/objc
                 for file in hash.h list.h sarray.h objc.h objc-api.h NXConstStr.h
                 Object.h Protocol.h encoding.h typedstream.h; do \
                 realfile=/home/snape9/gcc-2.7.2.2/objc/${file}; \
                 cp ${realfile} /home/snape9/gcc-2.7.2.2/include/objc; \
                 chmod a+r /home/snape9/gcc-2.7.2.2/include/objc/${file}; \
                 done
                 touch objc-headers
                 objdir=`pwd`; \
                 cd .; \
                 for file in .. ./ginclude/stdarg.h ./ginclude/stddef.h
                 ./ginclude/varargs.h ./ginclude/va-alpha.h ./ginclude/va-h8300.h
                 ./ginclude/va-i860.h ./ginclude/va-i960.h ./ginclude/va-mips.h
                 ./ginclude/va-m88k.h ./ginclude/va-pa.h ./ginclude/va-pyr.h
                 ./ginclude/va-sparc.h ./ginclude/va-clipper.h ./ginclude/va-spur.h
                 ./ginclude/iso646.h ./ginclude/va-ppc.h ./ginclude/proto.h ; do \
                 if [ X$file != X.. ]; then \
                 realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
                 rm -f $objdir/include/$realfile; \
                 cp ginclude/$realfile $objdir/include; \
                 chmod a+r $objdir/include/$realfile; \
                 fi; \
                 done
                 rm -f include/limits.h
                 cp xlimits.h include/limits.h
                 chmod a+r include/limits.h
                 rm -f include/README
                 cp ./README-fixinc include/README
                 chmod a+r include/README
                 touch stmp-int-hdrs
                 ./xgcc -B./ -DIN_GCC -g -I./include -DNO_MEM
                 -DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c
                 In file included from ./enquire.c:390:
                 include/stdio.h:279: unterminated `#if' conditional
                 In file included from /usr/include/sys/newsig.h:43,
                     from include/sys/signal.h:17,
                     from /usr/include/signal.h:5,
                     from ./enquire.c:402:
                 include/machine/save_state.h:879: unterminated `#if' conditional
                 In file included from include/sys/signal.h:443,
                     from /usr/include/signal.h:5,
                     from ./enquire.c:402:
                 include/machine/save_state.h:879: unterminated `#if' conditional
                 In file included from /usr/include/signal.h:5,
                     from ./enquire.c:402:
                 include/sys/signal.h:459: unterminated `#if' conditional
                 *** Error exit code 1

                 Stop.
                 /home/snape9/gcc-2.7.2.2>exit

                 script done on Wed Mar 26 10:59:10 1997

                 Advise?

                 Thanks.
0
Comment
Question by:mitchspector
2 Comments
 
LVL 1

Expert Comment

by:OM
ID: 1811973
Could youm please send the complete set of commands
you type before 'make LANGUAGE=C' ?
0
 
LVL 2

Accepted Solution

by:
df020797 earned 100 total points
ID: 1811974
If you check out the UK HP porting site you refer to,you'll find tahat there is binaty distributions you can install. Once you 've done that you can retrieve a normal gcc source and compile it and install it.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now