[OS] CYGWIN error

Tony Kelman kelman at berkeley.edu
Tue Oct 7 05:48:20 EDT 2014


One other thing - for the sake of cross-compiling, the case statement on line 168 of OS/configure.ac should really be using $host, not $build.


From: Tony Kelman 
Sent: Tuesday, October 07, 2014 12:38 AM
To: Ted Ralphs 
Cc: OS at list.coin-or.org 
Subject: Re: CYGWIN error

Ted,

I was able to reproduce this even with Cygwin’s GCC 4.8.3, so it’s not specific to 4.9.0. I suspect the win32api headers have been updated in Cygwin since the last time OS was built successfully with Cygwin’s gcc.

I think the root of the issue might be https://projects.coin-or.org/OS/browser/trunk/OS/configure.ac?rev=4845#L172 - a few things in OS are keying off a WIN_ define, which is being set to 1 for cygwin. In the case of trying to use winsock, that includes using some win32 api’s, which apparently recently started causing a definition conflict with the posix api’s used by cygwin. I’m a little surprised it has worked for so long.

I think it should be safe to remove AC_DEFINE([WIN_],[1],[use if OS is Windows]) for cygwin, and use only the posix api’s as opposed to trying to mix and match. I’m trying that now, but figured I may as well CC the OS mailing list to get others’ opinions.

-Tony


From: Ted Ralphs 
Sent: Monday, October 06, 2014 1:48 PM
To: Tony Kelman 
Subject: CYGWIN error

Hi Tony,

In case you have a chance, here is the error I'm seeing on CYGWIN:

http://jenkins.coin-or.org:8080/job/all-t-x86_64-pc-cygwin-gcc4.8.1/198/console


Despite the job name, I believe it is using gcc 4.9.0. Renmaing jobs is a pain in the butt and also doesn't seem to work well in Jenkins.


Cheers,

Ted


-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/os/attachments/20141007/9cc78cb7/attachment.html>


More information about the OS mailing list