This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Dec 9 10:48, ééä (Wei-Ren Chen) wrote: > Hi All, > > I am trying to build gdbserver [1] on cygwin with mingw-gcc, since > I want to build native windows executable and cygwin-gcc doesn't > support "-mno-cygwin" any more. Here is how I do the config, > > $ cd gdb-7.8.1/gdb/gdbserver > $ CC=i686-pc-mingw32-gcc ./configure > > After `make`, I get the error message below, > > -------- > i686-pc-mingw32-gcc -g -O2 -I. -I. -I./../common -I./../regformats -I./.. -I./../../include -I./../gnulib/import > -Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body > -DGDBSERVER -c -o remote-utils.o -MT remote-utils.o -MMD -MP -MF .deps/remote-utils.Tpo remote-utils.c > remote-utils.c: In function 'handle_accept_event': > remote-utils.c:161:22: error: storage size of 'sockaddr' isn't known > -------- > > It seems that mingw-gcc fails to find struct sockaddr due to the > incorrect include search path. What am I missing here, or should > I fall back to use MingGW instead? You should try to use the mingw64-i686 cross compiler instead. Mingw32 is a dead duck. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
Attachment:
pgpqb30cpfXQt.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |