Fw: error in ppc-linux-nat.c - cross-compiling gdb 61. for powerpc -linux

Daniel Jacobowitz drow@false.org
Tue Apr 13 14:26:00 GMT 2004

On Tue, Apr 13, 2004 at 09:18:16AM -0500, Ashish Goyal wrote:
> Hi,
> My compilations fails in ppc-linux-nat.c . I am cross compiling gdb6.1 with
> gcc-3.3.1 on redhat linux 9.0.  Here are the commands I run.
> ./configure --host=powerpc-linux --target=powerpc-linux --without-sim
> make
>   Must remake target `ppc-linux-nat.o'.
> gcc -c -g -O2    -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"
> " -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../b
> fd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wret
> urn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wunin
> itialized -Wformat-nonliteral -Wunused-label -Wunused-function
> ppc-linux-nat.c

What are you trying to do?  You're using the system (x86) GCC and
--host=powerpc-linux means you want to build a PowerPC binary.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

More information about the Gdb mailing list