This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

re: help with gcc-3.3.2 for ARM


Aitor Garcia <carrierphasejitter@yahoo.com> wrote:
wrote:

I am having problems building gcc-3.3.2 for ARM. This is the toolchain versions I am using: binutils version=2.14; gcc version=3.3.2; newlib version=1.11.0;

and these are the instructions I have run:

mkdir build-binutils
cd build-binutils
../binutils-2.14/configure --target=arm-linux --prefix=/usr/local/arm --host=i686-pc-linux-gnu
export PATH=$PATH:/usr/local/arm/bin
cd ..
tar xvfz newlib-1.11.0.tar.gz
tar --bzip2 -xvf gcc-3.3.2.tar.bz2
mkdir build-gcc
cd build-gcc

../gcc-3.3.2/configure --target=arm-linux
--prefix=/usr/local/arm --host=i686-pc-linux-gnu
--with-newlib
--with-headers=../newlib-1.11.0/newlib/libc/include
...
../../gcc-3.3.2/gcc/unwind-pe.h:76: warning: implicit declaration of function `abort'

In file included from gthr-default.h:1,

from ../../gcc-3.3.2/gcc/gthr.h:98,

from ../../gcc-3.3.2/gcc/unwind-dw2.c:28:

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:40: error: parse
error before "__gthread_key_t"

You should try asking on the crossgcc or etux mailing lists; they're quite good at debugging this kind of stuff. Only problems I see are * your target should be arm-elf or something like that, not arm-linux * you might want to try adding --enable-threads=no to the gcc configure line.

FWIW, http://darkfader.net/toolbox/files/building%20GCC%20toolkit.txt
is a random google hit showing these two suggestions in action, I think.
- Dan




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