Cross Compiler for m68k series
Naveen Malik
maliknaveen@hotmail.com
Wed Apr 10 12:37:00 GMT 2002
Hello !
I want to make a cross compiler for M68K series that can be used for
embedded applications.
I have downloaded the source code of Binutils, gcc and newlib.
options used are
1. --host=i386-linux
2. --target=m68k-coff
3. --with-headers
4. --with-newlib
when I compile the binutils with the above mentioned options (1+2) the
result is OKAY.
but when I compile the gcc code with options 1+2+3+4 it makes headers but at
certain instance it bumps out of compilation process by showing the
error ----
----------------------------------------------------------
/home/foo/build-gcc/gcc/xgcc -B/home/foo/build-gcc/gcc/ -B/usr/local/m68k-co
ff/bin/ -c -DHAVE_CONFIG.H -g -0s -I -I../../../gcc-2.95.3/libiberty/../incl
ude ../../../gcc-2.95.3/libiberty/strerr.c : 461:
conflicting types for 'sys-errlist'
/usr/local/lib/gcc-lib/m68k-coff/2.95.3/../../../m68k-coff/sys-include/stdio
.h : 552 : previous declaration of 'sys-errlist'
make[1] : ***[strerror.h] Error 1
make[1] : leaving directory 'home/foo/build-gcc/m68k-coff/libiberty'
make : ***[all-target-libiberty] Error 2
----------------------------------------------------------
I am not using the --prefix option as well as --exec option.
Please help me to know that
1. whether I am using the right options or not.
2. if any other options are required for making the cross compiler to be
able to generate the stand alone code for embedded applications.
3. what does the above mentioned error signifies ... and how to resolve this
issue.
Regards
Naveen Malik
More information about the Gcc-help
mailing list