This is the mail archive of the gcc-help@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] | |
In '$BUILD/libiberty' they should be, this libiberty is for the build/host platform!
On Jul 06, 2007, at 14:31, Brian Dessent wrote:
Laine Walker-Avina wrote:Yeah, you're right. All of the .o files in libiberty.a are i386-elf and not ARM.
stage1/xgcc -Bstage1/ -B/usr/arm-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \ build/genmodes.o build/errors.o ../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.
The '--prefix=/usr' is usual in a native GCC build. Used in a cross GCC build that means putting those
Here's the configure statement I used: ../src/configure -v --enable-languages=c,c++ --prefix=/usr
Where on earth it is trying to do this? Almost all the '.o's produced into the '$BUILD/gcc'Tried that and it is still building libiberty as i386 and trying to link it together with ARM files.^^^^^^^^^^^^^
--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.
$sysroot/lib $sysroot/usr/include $sysroot/usr/lib $sysroot/usr/X11R6/include $sysroot/usr/X11R6/lib
Any clue what would cause this?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |