Article View: gnu.gcc.help
Article #51350Installation Problems - directories
From: Robert Bergstrom
Date: Mon, 24 May 1993 17:42
Date: Mon, 24 May 1993 17:42
168 lines
8137 bytes
8137 bytes
----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 20
Using gcc-2.4.0 on a Sun Sparc IPX running SunOS 4.1.3.
When I configured the installation I specified the directory as
/image/gnuc/gcc-2.4.0 using the '--prefix' option. Every goes fine to the
stage 3 compiler. When I try using the
make install CC="./xgcc -B./" CFLAGS="-g -O" LANGUAGES="c c++"
command, I get the fatal error shown in the attached file. I am installing
this compiler in my own directories, and I do not want files under /usr/local.
What do I need to change to get the directory ./include created
under my directory /image/gnuc/gcc-2.4.0? Note the permission denied
error on line 17 of myoutput. The other directories are created in the right
place. (I hope)
Thanks for your patience and any help,
Rob Bergstrom
<rberg@gong.dal.ee.vt.edu>
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: myoutput
X-Sun-Content-Lines: 136
if [ -d /image/gnuc/gcc-2.4.0/lib ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/lib ; fi
if [ -d /image/gnuc/gcc-2.4.0/lib/gcc-lib ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/lib/gcc-lib ; fi
if [ -d /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3 ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3 ; fi
if [ -d /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0 ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0 ; fi
if [ -d /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/include ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/include ; fi
if [ -d /image/gnuc/gcc-2.4.0/bin ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/bin ; fi
if [ -d /usr/local/include ] ; then true ; else mkdir /usr/local/include ; fi
mkdir: /usr/local/include: Permission denied
*** Error code 1 (ignored)
if [ -f gcc-cross ] ; \
then \
if [ -d /image/gnuc/gcc-2.4.0/sparc-sun-sunos4.1.3 ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/sparc-sun-sunos4.1.3 ; fi ; \
if [ -d /usr/local/include ] ; then true ; else mkdir /usr/local/include ; fi ; \
else true; \
fi
parent=`echo /image/gnuc/gcc-2.4.0/man/man1|sed -e 's@/[^/]*$@@'`; \
if [ -d $parent ] ; then true ; else mkdir $parent ; fi
if [ -d /image/gnuc/gcc-2.4.0/man/man1 ] ; then true ; else mkdir /image/gnuc/gcc-2.4.0/man/man1 ; fi
for file in cc1 cc1plus cc1obj; do \
if [ -f $file ] ; then \
rm -f /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/$file; \
install -c $file /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/$file; \
else true; \
fi; \
done
for file in ld ..; do \
if [ x"$file" != x.. ]; then \
rm -f /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/$file; \
install -c $file /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/$file; \
else true; fi; \
done
if [ -f specs ] ; then \
rm -f /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/specs; \
install -c specs /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/specs; \
fi
if [ -f gcc-cross ] ; then \
rm -f /image/gnuc/gcc-2.4.0/bin/sparc-sun-sunos4.1.3-gcc; \
install -c gcc-cross /image/gnuc/gcc-2.4.0/bin/sparc-sun-sunos4.1.3-gcc; \
if [ -d /image/gnuc/gcc-2.4.0/sparc-sun-sunos4.1.3/bin/. ] ; then \
rm -f /image/gnuc/gcc-2.4.0/sparc-sun-sunos4.1.3/bin/gcc; \
install -c gcc-cross /image/gnuc/gcc-2.4.0/sparc-sun-sunos4.1.3/bin/gcc; \
else true; fi; \
else \
rm -f /image/gnuc/gcc-2.4.0/bin/gcc; \
install -c xgcc /image/gnuc/gcc-2.4.0/bin/gcc; \
rm -f /image/gnuc/gcc-2.4.0/bin/sparc-sun-sunos4.1.3-gcc-1; \
ln /image/gnuc/gcc-2.4.0/bin/gcc /image/gnuc/gcc-2.4.0/bin/sparc-sun-sunos4.1.3-gcc-1; \
mv /image/gnuc/gcc-2.4.0/bin/sparc-sun-sunos4.1.3-gcc-1 /image/gnuc/gcc-2.4.0/bin/sparc-sun-sunos4.1.3-gcc; \
fi
if [ -f protoize ]; \
then \
rm -f /image/gnuc/gcc-2.4.0/bin/protoize; \
install -c protoize /image/gnuc/gcc-2.4.0/bin/protoize; \
rm -f /image/gnuc/gcc-2.4.0/bin/unprotoize; \
install -c unprotoize /image/gnuc/gcc-2.4.0/bin/unprotoize; \
rm -f /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/SYSCALLS.c.X; \
install -c SYSCALLS.c.X /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/SYSCALLS.c.X; \
chmod a-x /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/SYSCALLS.c.X; \
fi
if [ -f cc1plus ] ; then \
rm -f /image/gnuc/gcc-2.4.0/bin/c++ ; \
install -c ./c++ /image/gnuc/gcc-2.4.0/bin/c++ ; \
rm -f /image/gnuc/gcc-2.4.0/bin/g++ ; \
install -c ./g++ /image/gnuc/gcc-2.4.0/bin/g++ ; \
fi
rm -f /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/cpp
install -c cpp /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/cpp
rm -rf /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/include
mkdir /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/include
chmod a+rx /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/include
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=/image/gnuc/gcc-2.4.0/sparc-sun-sunos4.1.3 AR="ar" AR_FLAGS="rc" \
GCC_FOR_TARGET="${thisdir1}/xgcc -B${thisdir1}/" \
GCC_CFLAGS=" -DIN_GCC -g -O" incinstalldir=${thisdir1}/include
rm -fr /image/gnuc/gcc-2.4.0/include/objc
mkdir /image/gnuc/gcc-2.4.0/include/objc
for file in hash.h list.h sarray.h objc.h objc-api.h Object.h Protocol.h mutex.h typedstream.h; do \
realfile=/image/gnuc/gcc-2.4.0/objc/$file; \
cp $realfile /image/gnuc/gcc-2.4.0/include/objc; \
chmod a+r /image/gnuc/gcc-2.4.0/include/objc; \
done
objdir=`pwd`; \
cd .; \
for file in va-alpha.h va-i860.h va-i960.h va-mips.h va-m88k.h va-pa.h va-pyr.h va-sparc.h va-clipper.h va-spur.h proto.h ; do \
realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
rm -f $objdir/include/$realfile; \
cp $realfile $objdir/include; \
chmod a+r $objdir/include/$realfile; \
done
rm -f include/varargs.h
cp ./gvarargs.h include/varargs.h
chmod a+r include/varargs.h
rm -f include/stdarg.h
cp ./gstdarg.h include/stdarg.h
chmod a+r include/stdarg.h
rm -f include/stddef.h
cp ./gstddef.h include/stddef.h
chmod a+r include/stddef.h
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
if [ -f libgcc2.ready ] ; then \
true; \
else \
touch libgcc2.ready; \
fi
rm -f include/float.h
cp gfloat.h include/float.h
chmod a+r include/float.h
touch stmp-headers
cd include; tar cf - . | (cd /image/gnuc/gcc-2.4.0/lib/gcc-lib/sparc-sun-sunos4.1.3/2.4.0/include; tar xpBf - )
if [ -f /usr/local/include/assert.h ]; \
then \
if grep "__eprintf" /usr/local/include/assert.h >/dev/null; \
then \
rm -f /usr/local/include/assert.h; \
install -c ./assert.h /usr/local/include/assert.h; \
chmod a-x /usr/local/include/assert.h; \
else true; \
fi; \
else \
rm -f /usr/local/include/assert.h; \
install -c ./assert.h /usr/local/include/assert.h; \
chmod a-x /usr/local/include/assert.h; \
fi
install: /usr/local/include/assert.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `install-assert-h'
Technical Details
Message-ID:
<9305241734.AA17081@gong.dal.ee.vt.edu.dal.ee.vt.edu>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!math.ohio-state.edu!cis.ohio-state.edu!gong.dal.ee.vt.edu!rbergShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7f0a83011678c831,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-24 12:34:34 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!math.ohio-state.edu!cis.ohio-state.edu!gong.dal.ee.vt.edu!rberg From: rberg@gong.dal.ee.vt.edu (Robert Bergstrom) Newsgroups: gnu.gcc.help Subject: Installation Problems - directories Date: 24 May 1993 13:42:13 -0400 Organization: GNUs Not Usenet Lines: 168 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9305241734.AA17081@gong.dal.ee.vt.edu.dal.ee.vt.edu>