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

See the CrossGCC FAQ for lots more infromation.


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

building crossgcc for m68k-coff on WINNT


following is the script I am using:

WINNT(pentium III) cygwin, m68k-coff

Q: the configure part finished OK.
   make all install - fails

   error message - ./libtool : m68kcoff_vec, : command not found

                   ./libtool : versados_vec  : command not found

                   ./libtool : ieee_vec     : command not found

                   ./libtool : bfd_m68k_arch : command not found


   let me know if you can help.

   ronen.




#!/bin/sh
# Build a CrossGCC for newlib for embedded sistems
# Enrico Colombini <erix@mclink.it> October 2000
# It works on my RedHat 6.0 Linux box. I make no other claims.
#
# Thanks to Scott Howard for the CrossGCC FAQ, to Jo~ao Cadamuro
# and to many people on the CrossGCC list for the fixes, and to
# Marco Morocutti for cooperation and support


# = 1 = Before executing this, get the sources for:
#       binutils, gcc, newlib, gdb
#       and unpack them in the <src> directory (say /home/erix/crossrc)
#       (e.g. tar zxvf binutils-2_10_tar.gz)
#       thus creating four corresponding subdirectories

# = 2 = Adjust the lines below to configure for your system:
#
prefix=/home/users/ronenl/gcc-cross/m68k-prefix           # Destination 
directory
target=m68k-coff                                          # Target system
machine=pentiumpro                                        # equivalent to 
i686-pc-cygwin
binutilsdir=binutils-2.10                                 # Directories 
created by unpacking sources
gccdir=gcc-2.95.2
newlibdir=newlib-1.8.2
gdbdir=gdb-5.0

# - 3 - Execute this shell script from <src>: ./buildcross

# Create destination directory
mkdir -p $prefix

# Compile binutils
mkdir -p build$binutilsdir
cd build$binutilsdir
../$binutilsdir/configure --target=$target --prefix=$prefix --host=$machine 
-v
make all install
cd ..

# Add executables to path, they'll be needed later
PATH=$prefix/bin:$PATH
echo $PATH

# Add symbolic links to newlib into gcc source
cd $gccdir
ln -s ../$newlibdir/newlib newlib
ln -s ../$newlibdir/libgloss libgloss
cd ..

# Compile gcc
mkdir -p build$gccdir
cd build$gccdir
../$gccdir/configure --verbose --target=$target --prefix=$prefix 
--with-newlib --host=$machine --enable-languages=
make all install
cd ..

# Compile newlib
mkdir -p build$newlibdir
cd build$newlibdir
../$newlibdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..

# Compile gdb
mkdir -p build$gdbdir
cd build$gdbdir
../$gdbdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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


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