problems compiling..
I am having problems compiling gcc.. I am following the recipe but I get problems with include files not being found... I think the problem is because the include directive -I looks for include files in "include.h"'s and not <include.h>'s.. this is the error I get (after about 30 mins into the compiling of gcc on a pIII 450:
(the include files are there.... in /home/jeff/parisc/include... )
if anyone can point out something I am doing wrong much appreciated.. thanks.. Jeff
-----------------------------------------------------
/home/jeff/parisc/gcc-build/gcc/xgcc
-B/home/jeff/parisc/gcc-build/gcc/ -B/home/jeff/parisc//hppa1.1-linux/bin/ -c -g -O2 -I.
-I../../../gcc/libio ../../../gcc/libio/iogetline.c
-o pic/iogetline.o; \
else true; fi /home/jeff/parisc/gcc-build/gcc/xgcc -B/home/jeff/parisc/gcc-build/gcc/ -B/home/jeff/parisc//hppa1.1-linux/bin/ -c -g -O2 -I. -I../../../gcc/libio ../../../gcc/libio/iogetline.c In file included from ../../../gcc/libio/iogetline.c:26:../../../gcc/libio/libioP.h:30:19: errno.h: No such file or directory
In file included from ../../../gcc/libio/iolibio.h:1,
from ../../../gcc/libio/libioP.h:47,
from../../../gcc/libio/iogetline.c:26:../../../gcc/libio/libio.h:30:23: _G_config.h: No such file or directory ../../../gcc/libio/iogetline.c:27:20: string.h: No such file or directory
make[1]: *** [iogetline.o] Error 1
make[1]: Leaving directory `/home/jeff/parisc/gcc-build/hppa1.1-linux/libio'
make: *** [all-target-libio] Error 2 [jeff@localhost gcc-build]$
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/
Quoted 3 lines · Jeff Towarnicki
I am having problems compiling gcc.. I am following the recipe but I get problems with include files not being found...
Jeff,
I don't the recipe is up-to-date anymore.
(gosh...that happened pretty fast).
It should be updated this coming week sometime.
Either I or Matt Taggart will update it.
In the meantime, you can hack the appended shell script. (Should only need some initialization changes.) It worked for me 10 days ago (ie before OLS).
enjoy,
grant
Grant Grundler
Unix Development Lab
+1.408.447.7253
#!/bin/sh -x
#
# ~/bin/recipe.puffin
#
# build the xcompiler and glibc recipe # 5/2000 # willy, pb, taggart, grundler, others
# make sure we don't get anything from any existing $PREFIX/bin PATH=/usr/local/bin:/usr/bin:/bin
# Top level, "include" files also get tmp storage here. TOP=/linux/grundler
# Where checked-out CVS sources live
SRC=$TOP
# Where your build sub-dirs go
BUILD=$TOP/xc-build
# Where to put the final bits, needs to be owned by the
# current user(to avoid sudo games) PREFIX=/opt/puffin
# what we build by default TARGET=hppa-linux EXTRA_OPT=""
set -- getopt uwrRp: $*
while [ $# -gt 0 ]
do
case $1 in
-u) cd $TOP
cvs -z3 update -d binutils-2.10 gcc glibc
;;
-R) rm -fr $BUILD/build-gcc $BUILD/build-binutils
;;
-r) rm -rf $PREFIX/*
;;
-w) TARGET=hppa64-linux
BUILD=${BUILD}64
EXTRA_OPT="--enable-64-bit-bfd"
# PREFIX=${PREFIX}64 in case we need to start over alot
;;
-p) if [ -d $2 ]
then
PREFIX=$2
shift
else
echo "-p $2 is not a directory."
exit 2
fi
;;
--)
;;
*) set +x
echo "Invalid parameter: $1"
echo "Usage: recipe.puffin [ -w -u -r -p <prefix> ]"
echo " -w build 64-bit (hppa64-linux) instead of hppa-linux"
echo " -u update binutils-2.10 and gcc from CVS"
echo " -r delete existing file in install directory"
echo " -R delete existing build directories"
echo " -p <prefix> install destination (default: /opt/puffin)"
exit 1
;;
esac
shiftdone
INCLUDE=$PREFIX/$TARGET/include
# Requirements
# o $SRC has binutils-2.10 gcc checked out # o $PREFIX/include comes from pehc:~ftp/pub/parisc/src/include.tar.gz
# Copy include/asm and include/linux to $PREFIX/include
if [ ! -d $TOP/include ]
then
echo Please untar pehc:~ftp/pub/parisc/src/include.tar.gz in $TOP/include first! exit 1
fi
mkdir -p $INCLUDE
cp -r $TOP/include/* $INCLUDE
cp -r $SRC/linux-2.3/include/asm $INCLUDE
cp -r $SRC/linux-2.3/include/linux $INCLUDE
# make sure BUILD dirs exist mkdir -p $BUILD/build-gcc $BUILD/build-binutils
### binutils
cd $BUILD/build-binutils
$SRC/binutils-2.10/configure --target=$TARGET --prefix=$PREFIX --disable-nls \
$EXTRA_OPT
make
make install
# Prepend $PREFIX/bin to the path to get the right binutils PATH=$PREFIX/bin:$PATH
cd $BUILD/build-gcc
$SRC/gcc/configure --target=$TARGET --prefix=$PREFIX --disable-nls \ --without-libc --enable-languages=c
make LIBGCC2_INCLUDES=-I$INCLUDE
make install