This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
gcc-4.3.0 and cross compilation for m68k targets
- From: "Mr. Franzi Edo." <edo dot franzi at ukos dot ch>
- To: crossgcc at sourceware dot org
- Date: Wed, 19 Mar 2008 20:51:49 +0100
- Subject: gcc-4.3.0 and cross compilation for m68k targets
Hi,
I am trying to build a toolchain for creating a cross C compiler for
m68k targets running on OSX (10.5.2). With the previous release of
gcc-4.2.3 everything is fine. So, can someone give me some help for
solving my problem?
So, the make of the gcc creation step stops after a while ...
Here is my toolchain and the error:
1st: I installed the gmp-4.2.2 and the mpfr-2.3.1 packages
BINUTILS_VER=2.18
GCC_VER=4.3.0
NEWLIB_VER=1.16.0
GDB_VER=6.7.1
TARGET_DIR=/Users/Shared
TARGET=m68k-elf
echo " - Create an alias of the library"
cd $TARGET_DIR/GCC/gcc-$GCC_VER
ln -s ../newlib-$NEWLIB_VER/newlib .
ln -s ../newlib-$NEWLIB_VER/libgloss .
export target=$TARGET
export prefix=$TARGET_DIR/cross/$TARGET
export i=$prefix/bin
echo " Build the tools"
mkdir -p $TARGET_DIR/builds/$TARGET/binutils-$BINUTILS_VER
cd $TARGET_DIR/builds/$TARGET/binutils-$BINUTILS_VER
../../../GCC/binutils-$BINUTILS_VER/configure --target=$target --
prefix=$prefix
make
make install
make clean
echo " - Build the compiler"
cd $TARGET_DIR/builds/$TARGET
mkdir gcc-$GCC_VER
cd gcc-$GCC_VER
../../../GCC/gcc-$GCC_VER/configure --target=$target --prefix=$prefix
--enable-languages=c --with-newlib --enable-newlib-io-long-long --with-
gnu-as --with-gnu-ld
make "CFLAGS = -DREENTRANT_SYSCALLS_PROVIDED"
....
....
here it fails with this error:
checking for m68k-elf-gcc... /Users/Shared/builds/m68k-elf/gcc-4.3.0/./
gcc/xgcc -B/Users/Shared/builds/m68k-elf/gcc-4.3.0/./gcc/ -nostdinc -B/
Users/Shared/builds/m68k-elf/gcc-4.3.0/m68k-elf/m51qe/newlib/ -
isystem /Users/Shared/builds/m68k-elf/gcc-4.3.0/m68k-elf/m51qe/newlib/
targ-include -isystem /Users/Shared/GCC/gcc-4.3.0/newlib/libc/include -
B/Users/Shared/builds/m68k-elf/gcc-4.3.0/m68k-elf/m51qe/libgloss/m68k -
L/Users/Shared/builds/m68k-elf/gcc-4.3.0/m68k-elf/m51qe/libgloss/
libnosys -L/Users/Shared/GCC/gcc-4.3.0/libgloss/m68k -B/Users/Shared/
cross/m68k-elf/m68k-elf/bin/ -B/Users/Shared/cross/m68k-elf/m68k-elf/
lib/ -isystem /Users/Shared/cross/m68k-elf/m68k-elf/include -isystem /
Users/Shared/cross/m68k-elf/m68k-elf/sys-include -mcpu=51qe
checking for suffix of object files... configure: error: cannot
compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2
Thank' you for your advises and help
Regards, Edo.
--
For unsubscribe information see http://sourceware.org/lists.html#faq