This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross-Compiler gcc 4.0.1 & MacOSX Tiger 10.4.2


Gentlemen,
I would like to use gcc compilers to create a cross-compiler for 68k
targets. I have tried the following procedure without success. Can someone
help me?


Thanks
   Edo.

OSX 10.4.2
Darwin 8.2.0

I have the following packages inside a commun folder (Gcc) in my workspace:
gcc-4.0.1
binutils-2.16.1
newlib-1.13.0


Here is my tool chain

# - Put at the same level:
#   gcc-4.0.1 binutils-2.16.1 newlib-1.13.0 gdb-6.3
#
#   In my case
#   ~/Gcc/gcc-4.0.1
#   ~/Gcc/binutils-2.16.1
#   ~/Gcc/newlib-1.13.0
#   ~/Gcc/gdb-gdb-6.3

# - Create an alias of the library
cd ~/Gcc/gcc-4.0.1
ln -s ../newlib-1.13.0/newlib .
ln -s ../newlib-1.13.0/libgloss .

# - Launch "terminal" and "bash" and type
export target=m68k-elf
export prefix=~/cross/m68k
export i=$prefix/bin

# Build the tools
mkdir -p ~/builds/m68k/binutils-2.16.1
cd ~/builds/m68k/binutils-2.16.1
../../../Gcc/binutils-2.16.1/configure --target=$target --prefix= $prefix -v
make
make install


# - Build the compiler
cd ~/builds/m68k
mkdir gcc-4.0.1
cd gcc-4.0.1
../../../Gcc/gcc-4.0.1/configure --target=$target --prefix=$prefix -v --with-newlib --with-gnu-as --with-gnu-ld
make "CC=cc -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
make install


# - Build the gdb
cd ~/builds/m68k
mkdir gdb-6.3
cd gdb-6.3
../../../Gcc/gdb-6.3/configure --target=$target --prefix=$prefix -v -- with-newlib --with-gnu-as --with-gnu-ld
make
make install
make



- The creation of the binutil seems to be OK
- The make of the compiler
../../../Gcc/gcc-4.0.1/configure --target=$target --prefix= $prefix -v --with-newlib --with-gnu-as --with-gnu-ld
make "CC=cc -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"


FAILS!!!!!

....
make[2]: *** [libgcc/m68040/_fixunsdfsi.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [install-gcc] Error 2




------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]