hello,
Im using the following script (adapted from the mingWiki):
#---------------------------------------------------------------------------------
# Source and Install directories
#---------------------------------------------------------------------------------
SRCDIR=../../gcc-3.4.0 # the sourcecode dir for gcc
# This must be specified in
the format shown here
# as one of the tools built
during the process will fail
# if absolute paths are
specified
# the example here assumes
that the gcc source directory
# is at the same level as
the script
prefix=c:/cross-gcc/arm-elf # installation directory
# This must be specified in
the format shown here
# or gcc won't be able to
find it's libraries and includes
# if you move the installation
#---------------------------------------------------------------------------------
# set the path for the installed binutils
#---------------------------------------------------------------------------------
export PATH=${PATH}:/c/cross-gcc/arm-elf/bin
#---------------------------------------------------------------------------------
# set the target and compiler flags
#---------------------------------------------------------------------------------
target=m68k-elf
export CFLAGS='-O2 -pipe'
export CXXFLAGS='-O2 -pipe'
export LDFLAGS='-s'
export DEBUG_FLAGS=''
#---------------------------------------------------------------------------------
# build and install just the c compiler
#---------------------------------------------------------------------------------
mkdir -p $target/gcc
cd $target/gcc
$SRCDIR/configure \
--enable-languages=c,c++ \
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
--disable-shared --disable-threads --disable-win32-registry
--disable-nls\
--target=$target \
--without-headers \
--prefix=$prefix -v\
2>&1 | tee gcc_configure.log
make all-gcc | tee make-c-only.log 2>&1
make install-gcc | tee install-c-only.log 2>&1
I keep getting the following errors whilst trying to build a gcc cross
compiler (m68k):
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c: In function `initialize':
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:316: error: `SIGQUIT'
undeclared (first use in this function)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:316: error: (Each undeclared
identifier is reported only once
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:316: error: for each function
it appears in.)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:323: error: `SIGALRM'
undeclared (first use in this function)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c: In function `internal_fix':
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:808: warning: implicit
declaration of function `pipe'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:816: warning: implicit
declaration of function `fork'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:845: warning: implicit
declaration of function `sleep'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:860: warning: implicit
declaration of function `fcntl'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:860: error: `F_DUPFD'
undeclared (first use in this function)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c: In function `process':
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:1388: warning: implicit
declaration of function `wait'
make[2]: *** [fixincl.o] Error 1
make[2]: Leaving directory `/c/gcc-source/m68k-elf/gcc/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/c/gcc-source/m68k-elf/gcc/gcc'
make: *** [install-gcc] Error 2
Could anyone suggest a workaround for these errors?
(I have altered mkfixinc.sh)
thanks
Andyc
Heber Ltd.
Registered Office: Belvedere Mill, Chalford, Stroud, Glos, GL6 8NT, England.
Registered England: 1744505
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php