This is the mail archive of the gdb@sourceware.org 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]
Other format: [Raw text]

Re: Build GDB 7.0 with Cygwin -mno-cygwin option.


On Wednesday 07 October 2009 17:58:18, Joel Brobecker wrote:
> We build GDB under the same conditions all the time without any problem.
> But our compiler is based on GCC 4.3.3, so you might want to try upgrading
> your compiler. ?Just a guess.

Joel tells me on IRC that he condition he refers to,
is the --build=... bit, not the use of -mno-cygwin.

On Wednesday 07 October 2009 17:30:02, Dmitry Smirnov wrote:
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:101: err
> or: redefinition of `struct timeval'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:611: err
> or: conflicting types for 'select'
> /usr/include/sys/select.h:31: error: previous declaration of 'select' was here
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:611: err
> or: conflicting types for 'select'
> /usr/include/sys/select.h:31: error: previous declaration of 'select' was here
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:614: err
> or: conflicting types for 'gethostname'

Cygwin's gcc is pulling Cygwin headers, while the build is assuming a mingw host.
Things are expected to break this way.  I would assume at least you'd need
--host,build=i686-pc-mingw32 _and_ CC="gcc -mno-cygwin".  A real mingw gcc
would be better.

-- 
Pedro Alves


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