not able to complie gcc 3.4.6!!!
I ran
(cd gcc-3.4.6 && patch -p0 < ${CHDK}/tools/patches/gcc-3.4-arm.diff)
mkdir gcc-3.4.6-arm-elf && cd gcc-3.4.6-arm-elf
../gcc-3.4.6/configure --srcdir=../gcc-3.4.6 --target=arm-elf \
--enable-multilib --enable-languages=c --enable-clocale=gnu \
--disable-libm --disable-libc --disable-threads \
--disable-nls --disable-libssp --disable-intl --disable-libiberty \
--with-newlib --prefix=${ARMELF}
(unset LIBRARY_PATH; unset CFLAGS; make -j 3 && make install)
and obtained:
In file included from /usr/include/fcntl.h:252:0,
from ../../gcc-3.4.6/gcc/system.h:214,
from ../../gcc-3.4.6/gcc/collect2.c:30:
In function ‘open’,
inlined from ‘collect_execute’ at ../../gcc-3.4.6/gcc/collect2.c:1537:20:
/usr/include/i386-linux-gnu/bits/fcntl2.h:51:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
No idea on how to proceed....