Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Davide Viti <zinosat@tiscali.it>
To: gdb@sourceware.org
Subject: error cross-compiling gdbserver
Date: Wed, 14 May 2008 11:30:00 -0000	[thread overview]
Message-ID: <20080514111812.GA19455@slurpy> (raw)

[-- 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 --]

             reply	other threads:[~2008-05-14 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-14 11:30 Davide Viti [this message]
2008-05-14 11:42 ` Daniel Jacobowitz
2008-05-14 12:16   ` Davide Viti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080514111812.GA19455@slurpy \
    --to=zinosat@tiscali.it \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox