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

* Re: error cross-compiling gdbserver
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-05-14 11:42 UTC (permalink / raw)
  To: Davide Viti; +Cc: gdb

On Wed, May 14, 2008 at 01:18:12PM +0200, Davide Viti wrote:
> 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,

You have some sort of mismatch between your build tools and your
shell.  Possibly the version of shell being used by the current
version of make.  I know that the compiler you reference is a native
Windows application rather than a Cygwin one; if something else
involved is native Windows it may be handling the quotes and ampersand
differently than expected.

Fortunately this is not a problem.  Run gdb/gdbserver/configure
instead of the top level configure script if all you need for the
target is gdbserver.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: error cross-compiling gdbserver
  2008-05-14 11:42 ` Daniel Jacobowitz
@ 2008-05-14 12:16   ` Davide Viti
  0 siblings, 0 replies; 3+ messages in thread
From: Davide Viti @ 2008-05-14 12:16 UTC (permalink / raw)
  To: gdb

On Wed, May 14, 2008 at 07:42:18AM -0400, Daniel Jacobowitz wrote:
> On Wed, May 14, 2008 at 01:18:12PM +0200, Davide Viti wrote:
> > 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,
> 
> You have some sort of mismatch between your build tools and your
> shell.  Possibly the version of shell being used by the current
> version of make.  I know that the compiler you reference is a native
> Windows application rather than a Cygwin one; if something else
> involved is native Windows it may be handling the quotes and ampersand
> differently than expected.

yes, the compiler war probably built on mingw32 (that is what the specs file
seems to say) and I'm on cygwin; I quickly tried to install and use mingw
for building gdb{server} but I get some other errors not worth investigating
ATM.

> 
> Fortunately this is not a problem.  Run gdb/gdbserver/configure
> instead of the top level configure script if all you need for the
> target is gdbserver.

right, and it also works !
thanx a lot for your help, now it's time
to try it before getting back asking for more help:)

Davide


^ 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