From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24414 invoked by alias); 14 May 2008 11:30:24 -0000 Received: (qmail 24405 invoked by uid 22791); 14 May 2008 11:30:23 -0000 X-Spam-Check-By: sourceware.org Received: from cp-out8.libero.it (HELO cp-out8.libero.it) (212.52.84.108) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 May 2008 11:30:03 +0000 Received: from localhost (151.21.198.128) by cp-out8.libero.it (8.5.014) id 482A9D80000552B0 for gdb@sourceware.org; Wed, 14 May 2008 13:30:00 +0200 Received: from zino by localhost with local (Exim 4.69) (envelope-from ) id 1JwEzs-0005CV-N0 for gdb@sourceware.org; Wed, 14 May 2008 13:18:12 +0200 Date: Wed, 14 May 2008 11:30:00 -0000 From: Davide Viti To: gdb@sourceware.org Subject: error cross-compiling gdbserver Message-ID: <20080514111812.GA19455@slurpy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00106.txt.bz2 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 3972 Hi, while cross-compiling gdbserver I'm getting the following error: 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 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 --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIKsp0ax2slmJA7HoRAm0tAKCA3gz6fZYd5pz3hsbLMegZtzat/wCfQVvF +4qOVG0yinLV2j0eFC3kBLw= =OWYs -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--