This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
Re: Crocc GDB for powerpc-eabi
- To: crossgcc@cygnus.com
- Subject: Re: Crocc GDB for powerpc-eabi
- From: Randy Devol <randyd@rahul.net>
- Date: Tue, 18 May 1999 07:53:34 -0700
- Reply-To: crossgcc@cygnus.com
The most important line out of all that is
>/usr/include/ioctl-types.h:37: redefinition of `struct termios'
I hope you understand that a structure cannot be defined in two different
ways during a single file compilation...
If you look around, you will find two definitions of the structure
"termios." The *second* definition will be in ioctl-types.h. The first
definition will be in some file included by emul_unix.c before
ioctl-types.h, probably ioctl.h. Your job is to figure out which one is
correct (or why two were included in the first place) and eliminate one. :-)
At 08:13 PM 5/17/99 , you wrote:
>
>Hi all.
>
>I hope someone can point my to my error here.
>I am compiling gdb for a powerpc-eabi target.
>Host is a i586 linux. gcc used for the compile is
>2.8.1
>
>The error I get is:
>
>gcc -c -g -O2 -DDEFAULT_INLINE=INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=
>LITTLE_ENDIAN -DWITH_SMP=5 -DHAVE_TERMIOS_STRUCTURE
>-DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO -I. -I../../../gdb-4.17/sim/ppc
>-I../../../gdb-4.17/sim/ppc/../../include
>-I../../bfd -I../../../gdb-4.17/sim/ppc/../../bfd
>-I../../gdb -I../../../gdb-4.17/sim/ppc/../../gdb
>-I../../../gdb-4.17/sim/ppc/../../gdb/config
>-I../../../gdb-4.17/sim/ppc/../../mmalloc
>../../../gdb-4.17/sim/ppc/emul_unix.c
>In file included from /usr/include/sys/ioctl.h:30,
> from /usr/include/sys/mount.h:27,
> from ../../../gdb-4.17/sim/ppc/emul_unix.c:113:
>/usr/include/ioctl-types.h:37: redefinition of `struct termios'
>make[2]: *** [emul_unix.o] Error 1
>make[2]: Leaving directory `/home/gmcfadden/ppc/build-gdb/sim/ppc'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory `/home/gmcfadden/ppc/build-gdb/sim'
>make: *** [all-sim] Error 2
>
>Does this error make any sense?
>
>Gord
>--
>gmcfadden@westsoft-systems.com Westsoft Systems Inc
>http://www.westsoft-systems.com 604 644 4180
>
>Real Time Programming and System Development
>
>_______________________________________________
>New CrossGCC FAQ: http://www.objsw.com/CrossGCC
>_______________________________________________
>To remove yourself from the crossgcc list, send
>mail to crossgcc-request@cygnus.com with the
>text 'unsubscribe' (without the quotes) in the
>body of the message.
-=O=- Randy
In "A Scanner Darkly," was Philip K. Dick foreshadowing Web commerce:
"Someday, he thought, it'll be mandatory that we all sell the McDonald's
hamburger as well as buy it; we'll sell it back and forth to each other
forever from our living rooms."
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.