Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* error cross-compiling gdbserver
@ 2008-05-14 11:30 Davide Viti
  2008-05-14 11:42 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Davide Viti @ 2008-05-14 11:30 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 3972 bytes --]

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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-14 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-14 11:30 error cross-compiling gdbserver Davide Viti
2008-05-14 11:42 ` Daniel Jacobowitz
2008-05-14 12:16   ` Davide Viti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox