This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

error cross-compiling gdbserver


Hi,
while cross-compiling gdbserver I'm getting the following error:

<log>
make[4]: Entering directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver/bfd/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver/bfd/po'
make[4]: Entering directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver/bfd'
rm -f bfd-tmp.h
cp bfd-in3.h bfd-tmp.h
/bin/sh ../../../gdb-6.8/bfd/../move-if-change bfd-tmp.h bfd.h
rm -f bfd-tmp.h
touch stmp-bfd-h
/bin/sh ./libtool --tag=CC --mode=compile arm-wrs-linux-gnueabi-arm-glibc_full-gcc -DHAVE_CONFIG_H -I. -I../../../gdb-6.8/bfd -I. -I. -I../../../gdb-6.8/bfd -I../../../gdb-6.8/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -mlittle-endian -mcpu=arm926ej-s -mthumb -c -o archive.lo ../../../gdb-6.8/bfd/archive.c
libtool: compile:  arm-wrs-linux-gnueabi-arm-glibc_full-gcc -DHAVE_CONFIG_H -I. -I../../../gdb-6.8/bfd -I. -I. -I../../../gdb-6.8/bfd -I../../../gdb-6.8/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -mlittle-endian -mcpu=arm926ej-s -mthumb -c ../../../gdb-6.8/bfd/archive.c -o archive.o
/bin/sh ./libtool --mode=compile arm-wrs-linux-gnueabi-arm-glibc_full-gcc -DHAVE_CONFIG_H -I. -I../../../gdb-6.8/bfd -I. -I. -I../../../gdb-6.8/bfd -I../../../gdb-6.8/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -mlittle-endian -mcpu=arm926ej-s -mthumb -c -DDEFAULT_VECTOR=bfd_elf32_littlearm_vec -DSELECT_VECS='&bfd_elf32_littlearm_vec,&bfd_elf32_bigarm_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_arm_arch' -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec ../../../gdb-6.8/bfd/archures.c
libtool: compile:  arm-wrs-linux-gnueabi-arm-glibc_full-gcc -DHAVE_CONFIG_H -I. -I../../../gdb-6.8/bfd -I. -I. -I../../../gdb-6.8/bfd -I../../../gdb-6.8/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -mlittle-endian -mcpu=arm926ej-s -mthumb -c -DDEFAULT_VECTOR=bfd_elf32_littlearm_vec "-DSELECT_VECS=&bfd_elf32_littlearm_vec,&bfd_elf32_bigarm_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec" "-DSELECT_ARCHITECTURES=&bfd_arm_arch" -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec ../../../gdb-6.8/bfd/archures.c -o archures.o
arm-wrs-linux-gnueabi-gcc.exe: no input files

'bfd_elf32_littlearm_vec' is not recognized as an internal or external command,

operable program or batch file.

'bfd_elf32_bigarm_vec' is not recognized as an internal or external command,

operable program or batch file.

'bfd_elf32_little_generic_vec' is not recognized as an internal or external command,

operable program or batch file.

'bfd_elf32_big_generic_vec' is not recognized as an internal or external command,

operable program or batch file.

'bfd_arm_arch' is not recognized as an internal or external command,

operable program or batch file.

make[4]: *** [archures.lo] Error 1
make[4]: Leaving directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/cygdrive/d/cygwin/home/edavvit/gdb/build/gdbserver'
make: *** [all] Error 2

</log>

I've verified on the commandline that the problem is in the command segments of this type
-DSELECT_ARCHITECTURES='&bfd_arm_arch' (removing those archures.c compiles fine)

since the first pass compilation of gdb with using the host gcc compiles it without errors,
I assume the problem is related to the (third party) crosscompiler; is there any way to workaround
the problem?

thanx in advance,
Davide

Attachment: signature.asc
Description: Digital signature


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