This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem compiling gdb and insight under cygwin


Hi,

Help needed...
Compile fails for gdb-5.0 as well as insight-5.0 (same error) when I try to
compile under cygwin (CYGWIN_NT-5.0 1.1.8(0.34/3/2) . Compiler is gcc
2.95.3-2. I was building the powerpc cross-compiler. I followed the
instructions as described on
http://sources.redhat.com/ecos/tools/win-powerpc-eabi.html. (I was able to
successfully build the same thing on a Linux system).

The configure command used was:
mkdir -p /tmp/build/gdb
cd /tmp/build/gdb
/src/gdb/insight-5.0/configure --target=powerpc-eabi \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      -v 2>&1 | tee configure.out

The configure command used was:
make -w all install CC='gcc -mwin32' 2>&1 | tee make.out

I also tried:
1. building gdb-5.0.
2. Prefixing configure with CC="gcc -mwin32" (i.e., CC="gcc -mwin32"
configure...)

The (error) message from compile that failed is listed below:

gcc -mwin32 -c -g -O2 -DDEFAULT_INLINE=INLINE_LOCALS     -WITH_HOST_BYTE_ORD
ER=
LITTLE_ENDIAN -DWITH_SMP=5              -DHAVE_TERMIOS_STRUCTURE -DHAVE_TERM
IOS_
CLINE -DHAVE_DEVZERO     -I. -I/src/gdb/gdb-5.0/sim/ppc -I/src/gdb/gdb-5.0/s
im/p
pc/../../include -I../../bfd -I/src/gdb/gdb-5.0/sim/ppc/../../bfd -I../../gd
b -I
/src/gdb/gdb-5.0/sim/ppc/../../gdb  -I/src/gdb/gdb-5.0/sim/ppc/../../gdb/con
fig
-I/src/gdb/gdb-5.0/sim/ppc/../../mmalloc
/src/gdb/gdb-5.0/sim/ppc/sim_calls.c
In file included from /src/gdb/gdb-5.0/sim/ppc/sim_calls.c:43:
/src/gdb/gdb-5.0/sim/ppc/../../gdb/defs.h:60: conflicting types for
`strsignal'
/usr/include/string.h:70: previous declaration of `strsignal'
make[2]: *** [sim_calls.o] Error 1
make[2]: Leaving directory `/tmp/build/gdb/sim/ppc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/build/gdb/sim'
make: *** [all-sim] Error 2
make: Leaving directory `/tmp/build/gdb'


I noted there were previous mails on this subject however none were helpful
in resolving my problem. All help appreciated. Thanks.

Sixtus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]