[BuildTools] Re: SYMPHONY Cygwin/cl

Kipp Martin Kipp.Martin at ChicagoGSB.edu
Sat Oct 27 15:13:10 EDT 2007


Hi Ted:

I think there is a problem when you are building amalgamation of 
libraries. Lou, in a great bit of detective work discovered that it has 
to do with the fact that cygwin SHOULD NOT use the MS sort.exe, but 
rather must use the cygwin sort. Hence the path is critical.   I will 
see if I can dig up his email before he replies.

Cheers


> There seems to be a problem with Cgl (as you would expect from the 
> errors you were seeing with SYMPHONY). I'm not sure why the problem is 
> manifesting itself in quite the way you are seeing. I am building 
> CoinAll with
> 
> ./configure --enable-doscompile=msvc
> 
> and the compilation fails when linking Cbc with the following error:
> 
> LINK : fatal error LNK1181: cannot open input file 
> 'C:/cygwin/home/ted/COIN/build-cl/Cgl/src/.libs/libCgl.lib'
> 
> In fact, the file referenced is not there for some reason. If I try to 
> make in the Cgl subdirectory, it says everything is up to date, but if I 
> do "make install" in the same subdirectory, this actually also fails:
> 
> /usr/bin/install: cannot stat `.libs/libCgl.lib': No such file or directory
> 
> This indicates something really is wrong with Cgl itself. I recall 
> wrestling with a problem like this in the past sometime, but don't 
> remember the details. I guess it has something to do with Cgl's unique 
> build structure as an amalgamation of individual sublibraries. I will 
> look at it a little more and see if I can figure anything out.
> 
> Cheers,
> 
> Ted
> 
> huanyuan sheng wrote:
>> Hi Ted,
>>
>> Really appreciate your prompt reply.
>>
>> It is kinda tricky to get coin projects run on cygwin/cl if you want 
>> to use CXX=cl options. As we discovered, first step is to set cygwin 
>> path in the following order (the example on my machine is attached to 
>> this email):
>> MSVC command directories, cygwin command directories,
>> Windows command directories.
>>
>> Hope this would help.
>>
>> Wayne
>>
>>
>>
>>
>> ----- Original Message ----- From: "Ted Ralphs" <tkralphs at Lehigh.EDU>
>> To: "huanyuan sheng" <h-sheng at northwestern.edu>
>> Sent: Saturday, October 27, 2007 12:12 PM
>> Subject: Re: SYMPHONY Cygwin/cl
>>
>>
>>> Hi Wayne,
>>>
>>> I'm not sure how you even got SYMPHONY to configure with CL under 
>>> CYGWIN. On my machine, it fails because it tries to use g77 to 
>>> compile a Fortran program and the output is a .o file instead of 
>>> .obj, which is what it's looking for. This doesn't happen for you? 
>>> What Fortran compile is configure finding?
>>>
>>> Can you try configuring without LD=link and see what happens?
>>>
>>> Cheers,
>>>
>>> Ted
>>> -- 
>>> Dr. Ted Ralphs
>>> Associate Professor
>>> Industrial and Systems Engineering
>>> Lehigh University
>>> (610)758-4784
>>> ted at lehigh dot edu
>>> www.lehigh.edu/~tkr2
>>>
>> .::/cygdrive/c/Program Files/Microsoft Visual Studio 
>> 8/Common7/IDE:/cygdrive/c/P
>> rogram Files/Microsoft Visual Studio 8/VC/bin:/cygdrive/c/Program 
>> Files/Microsof
>> t Visual Studio 8/Common7/Tools:/cygdrive/c/Program Files/Microsoft 
>> Visual Studi
>> o 8/SDK/v2.0/Bin:/cygdrive/c/Program Files/Microsoft Visual Studio 
>> 8/VC/vcpackag
>> es:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727:/InstRoot/bin:/usr/loc 
>>
>> al/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WIN 
>>
>> DOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/ATI 
>> Technologie
>> s/ATI Control Panel:/cygdrive/c/Program Files/Common Files/Roxio 
>> Shared/DLLShare
>> d/:/cygdrive/c/Program Files/QuickTime/QTSystem/:/cygdrive/c/Program 
>> Files/Micro
>> soft SQL Server/90/Tools/binn/:/cygdrive/c/Program Files/Microsoft 
>> Platform SDK
>> for Windows Server 2003 R2/Bin/:/cygdrive/c/Program Files/Microsoft 
>> Platform SDK
>> for Windows Server 2003 R2/Bin/WinNT/:/cygdrive/c/Program Files/SSH 
>> Communicati
>> ons Security/SSH Secure Shell:/cygdrive/c/Program Files/Microsoft 
>> Platform SDK f
>> or Windows Server 2003 R2/Bin/:/cygdrive/c/Program Files/Microsoft 
>> Platform SDK
>> for Windows Server 2003 R2/Bin/WinNT/:/cygdrive/d/SSH:/usr/lib/lapack
> 
> 


-- 
Kipp Martin
Professor of Operations Research
and Computing Technology
Graduate School of Business
University of Chicago
5807 South Woodlawn Avenue
Chicago, IL 60637
773-702-7456
kipp.martin at chicagogsb.edu
http://gsbkip.chicagogsb.edu
http://www.coin-or.org


More information about the BuildTools mailing list