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]

Re: building cross-compiler fails for c++


Adrian von Bidder wrote:
> 
> Hi!
> 
> Trying to build a c++ cross-compiler fails for me.
> 
> host: Linux x86 (SuSE 7.3)
> target: arm-uclinux

Ok, I have some more specific info: ld tries to link with a lot of files
that are not existing; these files do not exist if I only install plain
c (untarred from the gcc-core file). As soon as I use both core and g++,
build failes - see also my previous mail.

The offending command is:
==========
[avbidder@atlas libiberty]$
/tmp/avbidder-build-toolchain/build-gcc/gcc/xgcc
-B/tmp/avbidder-build-toolchain/build-gcc/gcc/
-B/home/avbidder/gcc-3/arm-uclinux/bin/
-B/home/avbidder/gcc-3/arm-uclinux/lib/ -isystem
/home/avbidder/gcc-3/arm-uclinux/include -g -O2 -o conftest conftest.c
-v
Reading specs from /tmp/avbidder-build-toolchain/build-gcc/gcc/specs
Configured with: ../gcc-3.0.2/configure --prefix=/home/avbidder/gcc-3
-target=arm-uclinux --with-cpu=arm7tdmi -enable-languages=c,c++
Thread model: single
gcc version 3.0.2
 /tmp/avbidder-build-toolchain/build-gcc/gcc/cc1 -lang-c -v -iprefix
/tmp/avbidder-build-toolchain/build-gcc/gcc/../lib/gcc-lib/arm-uclinux/3.0.2/
-isystem /tmp/avbidder-build-toolchain/build-gcc/gcc/include -isystem
/home/avbidder/gcc-3/arm-uclinux/bin/include -isystem
/home/avbidder/gcc-3/arm-uclinux/lib/include -D__GNUC__=3
-D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -Dunix -Dlinux -D__ELF__
-D__unix__ -D__linux__ -D__ELF__ -D__unix -D__linux -Asystem=unix
-Asystem=posix -Acpu=arm -Amachine=arm -D__CHAR_UNSIGNED__
-D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D__ARM_ARCH_4T__ -D__APCS_32__
-D__ARMEL__ -D__arm__ -isystem /home/avbidder/gcc-3/arm-uclinux/include
conftest.c -quiet -dumpbase conftest.c -g -O2 -version -o
/tmp/ccdRMvbu.s
ignoring nonexistent directory
"/home/avbidder/gcc-3/arm-uclinux/bin/include"
ignoring nonexistent directory
"/home/avbidder/gcc-3/arm-uclinux/lib/include"
ignoring nonexistent directory
"/home/avbidder/gcc-3/arm-uclinux/include"
GNU CPP version 3.0.2 (cpplib) (ARM/ELF ucLinux)
GNU C version 3.0.2 (arm-uclinux)
	compiled by GNU C version 3.0.2.
ignoring nonexistent directory
"/tmp/avbidder-build-toolchain/build-gcc/lib/gcc-lib/arm-uclinux/3.0.2/include"
ignoring nonexistent directory
"/tmp/avbidder-build-toolchain/build-gcc/lib/gcc-lib/arm-uclinux/3.0.2/../../../../arm-uclinux/sys-include"
ignoring nonexistent directory
"/tmp/avbidder-build-toolchain/build-gcc/lib/gcc-lib/arm-uclinux/3.0.2/../../../../arm-uclinux/include"
ignoring nonexistent directory
"/home/avbidder/gcc-3/arm-uclinux/sys-include"
ignoring nonexistent directory
"/home/avbidder/gcc-3/arm-uclinux/include"
#include "..." search starts here:
#include <...> search starts here:
 /tmp/avbidder-build-toolchain/build-gcc/gcc/include
 /home/avbidder/gcc-3/lib/gcc-lib/arm-uclinux/3.0.2/include
End of search list.
 /home/avbidder/gcc-3/arm-uclinux/bin/as -o /tmp/ccQCyPNT.o
/tmp/ccdRMvbu.s
 /tmp/avbidder-build-toolchain/build-gcc/gcc/collect2 -dynamic-linker
/lib/ld-linux.so.2 -X -m armelf_linux -p -o conftest crt1.o crti.o
/tmp/avbidder-build-toolchain/build-gcc/gcc/crtbegin.o
-L/tmp/avbidder-build-toolchain/build-gcc/gcc
-L/home/avbidder/gcc-3/arm-uclinux/bin
-L/home/avbidder/gcc-3/arm-uclinux/lib
-L/home/avbidder/gcc-3/lib/gcc-lib/arm-uclinux/3.0.2
-L/home/avbidder/gcc-3/lib/gcc-lib/arm-uclinux/3.0.2/../../../../arm-uclinux/lib
/tmp/ccQCyPNT.o -lgcc -lc -lgcc
/tmp/avbidder-build-toolchain/build-gcc/gcc/crtend.o crtn.o
/home/avbidder/gcc-3/arm-uclinux/bin/ld: cannot open crt1.o: No such
file or directory
collect2: ld returned 1 exit status
[avbidder@atlas libiberty]$ 
===========

greets
-- vbi


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