This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross gcc build problem
- From: Brian Dessent <brian at dessent dot net>
- To: Laine Walker-Avina <lwalkera at ieee dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 06 Jul 2007 14:31:29 -0700
- Subject: Re: Cross gcc build problem
- References: <1183746611.24944.5.camel@Anor>
- Reply-to: gcc-help at gcc dot gnu dot org
Laine Walker-Avina wrote:
> ../build-arm-linux-gnu/libiberty/libiberty.a: could not read symbols:
> File in wrong format
The build infrastructure is confused about where to use target tools and
where to use build/host tools.
> Here's the configure statement I used:
> ../src/configure -v --enable-languages=c,c++ --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --enable-nls
> --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
> --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
> --enable-checking=release arm-linux-gnu
^^^^^^^^^^^^^
This is an ancient and obsolete way of writing --target=arm-linux-gnu.
I'm not sure if it's the cause of your problem or not, but you should
definitely spell out --target and not just give a target triplet as a
naked parameter.
Brian