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 3.1 & MacOSX


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.


I have the following packages inside a commun folder (Gcc) in my workspace:
gcc-3.1
binutils-2.12.1
newlib-1.10.0

1. I build the binutils: result OK
mkdir -p builds/m68k/binutils-2.12.1

cd builds/m68k/binutils-2.12.1
../../../binutils-2.12.1/configure --target=m68k-rtems \
    --prefix=/usr/local/cross/m68k

make
make install

2. I added the path (according to the previous --prefix): result OK
setenv PATH 
~/bin/powerpc-apple-darwin:/Users/edo/bin:/usr/local/bin:/usr/bin:/bin:/usr/
local/sbin:/usr/sbin:/sbin:/usr/local/cross/m68k/bin

3. I build the compiler
cd gcc-3.1
ln -s ../newlib-1.10.0/newlib .
ln -s ../newlib-1.10.0/libgloss .
cd ..

cd builds/m68k
mkdir gcc-3.1
cd gcc-3.1
../../../gcc-3.1/configure --target=m68k-rtems \
    --prefix=/usr/local/cross/m68k --with-newlib \
    --with-gnu-as --with-gnu-ld

THESE STEPS TERMINATE CORRECTLY, BUT ...

make

... WORKS FOR A MOMENT AND IT TERMINATES UNSUCCESSFULLY WITH THE FOLLOWING
MESSAGE:

....
....
....

../../../../gcc-3.1/gcc/builtin-attrs.def:127: `ATTR_FORMAT_PRINTF_2_3'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:136: `ATTR_FORMAT_SCANF_1_2'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:137: `ATTR_FORMAT_SCANF_2_3'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:139: `ATTR_FORMAT_PRINTF_1_0'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:140: `ATTR_FORMAT_PRINTF_2_0'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:142: `ATTR_FORMAT_STRFTIME_3_0'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:150: `ATTR_FORMAT_PRINTF_3_4'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:151: `ATTR_FORMAT_PRINTF_3_0'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:152: `ATTR_FORMAT_SCANF_1_0'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:153: `ATTR_FORMAT_SCANF_2_0'
undeclared (first use in this function)
../../../../gcc-3.1/gcc/builtin-attrs.def:166: `ATTR_FORMAT_STRFMON_3_4'
undeclared (first use in this function)
make[1]: *** [c-common.o] Error 1
make: *** [all-gcc] Error 2


Any ideas to procede withou errors?

Regards Edo


------
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]