This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
can't create crtbegin.o: Invalid bfd target
- From: "Eric Fisher" <joefoxreal at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 27 Feb 2006 10:20:43 +0800
- Subject: can't create crtbegin.o: Invalid bfd target
Hello,
My port is originally aimed for mytarget-elf and has been able to built to use.
Now I want to use another target, mytarget-linux, just like mips-elf
and mips-linux.
Binutils is ok and has been installed, but when build gcc, there is
such a error,
/home/smj/build_gcc_linux/gcc/xgcc -B/home/smj/build_gcc_linux/gcc/ -B/home/smj/
local//mytarget-linux/bin/ -B/home/smj/local//mytarget-linux/lib/
-isystem /home/smj/local
//mytarget-linux/include -isystem
/home/smj/local//mytarget-linux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-protot
ypes -Wold-style-definition -isystem ./include -I. -I.
-I../../gcc-3.4.4-mytarget/g
cc -I../../gcc-3.4.4-mytarget/gcc/.
-I../../gcc-3.4.4-mytarget/gcc/../include -g0 -finhi
bit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-i
n-bss -fno-unit-at-a-time \
-Dinhibit_libc -c ../../gcc-3.4.4-mytarget/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ./tm.h:9,
from ../../gcc-3.4.4-mytarget/gcc/crtstuff.c:64:
../../gcc-3.4.4-mytarget/gcc/config/mytarget/mytarget.h:1824:1:
warning: multi-line comment
../../gcc-3.4.4-mytarget/gcc/config/mytarget/mytarget.h:1833:1:
warning: multi-line comment
Assembler messages:
FATAL: can't create crtbegin.o: Invalid bfd target
make[1]: *** [crtbegin.o] Error 1
Are there anyone can give me some suggestion? The configuration of gcc is,
../gcc-3.4.4-mytarget/configure --target=mytarget-lin
ux --prefix=/home/smj/local/
--with-as=/home/smj/local/bin/mytarget-linux-as --with-
ld=/home/smj/local/bin/mytarget-linux-ld
Kind regards,
Eric.