COIN-OR::LEMON - Graph Library

Opened 13 years ago

Closed 13 years ago

#429 closed defect (fixed)

graph_utils_test fails on Windows

Reported by: Alpar Juttner Owned by: Peter Kovacs
Priority: critical Milestone: LEMON 1.3 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

graph_utils_test fails on Windows with the following error message:

Linking CXX executable graph_utils_test.exe
        cd L:\projects\LEMON\hg\win\build\test
        "C:\Program Files\CMake 2.8\bin\cmake.exe" -E vs_link_exe C:\PROGRA~1\MI
CROS~1.0\VC\bin\cl.exe  /nologo @CMakeFiles\graph_utils_test.dir\objects1.rsp @C
:\DOCUME~1\JTTNER~1\LOCALS~1\Temp\nmCE.tmp
Visual Studio Incremental Link with embeded manifests
Create graph_utils_test.exe.resource.txt
RC Pass 1:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/bin/RC.Exe /fograph_utils_test.exe
.embed.manifest.res graph_utils_test.exe.resource.txt
LINK Pass 1:
C:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe /nologo @CMakeFiles\graph_utils_test.dir\ob
jects1.rsp /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /wd4250 /wd4355 /wd4503 /wd4
800 /wd4996 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 /Fegraph_utils_test.exe /FdL:\proje
cts\LEMON\hg\win\build\test\graph_utils_test.pdb -link /implib:graph_utils_test.
lib /version:0.0 /STACK:10000000 /machine:X86 /debug /INCREMENTAL:YES /subsystem
:console -LIBPATH:L:\projects\LEMON\hg\win\build\lemon ..\lemon\lemon.lib kernel
32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid
.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:graph_utils_test.exe.inte
rmediate.manifest graph_utils_test.exe.embed.manifest.res
graph_utils_test.cc.obj : fatal error LNK1279: invalid or corrupt file: file con
tains invalid .sxdata contributions
LINK Pass 1 failed. with 2
NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.8\bin\cmake.exe"' : return
 code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.

Attachments (2)

429-6bca1306a64c.patch (951 bytes) - added by Peter Kovacs 13 years ago.
429-4465585f2fd1.patch (982 bytes) - added by Peter Kovacs 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by Peter Kovacs

Status: newassigned

I checked this problem on Win7 with VS2010 express compiler. graph_util_test.cc seems to bo okay, but max_cardinality_test.cc failed to compile. I attached a patch that fixes this file. It can be compiled and run using GCC, but to tell the truth, I don't know why. :)

Changed 13 years ago by Peter Kovacs

Attachment: 429-6bca1306a64c.patch added

comment:2 Changed 13 years ago by Peter Kovacs

[6bca1306a64c] solves the Windows-specific problem in max_cardinality_search_test.cc. Applying this fix, all test can eb compiled and run correctly on windows with VS compiler.

Changed 13 years ago by Peter Kovacs

Attachment: 429-4465585f2fd1.patch added

comment:3 Changed 13 years ago by Peter Kovacs

[4465585f2fd1] is another patch that fixes VS warning of unsed local variable.

comment:4 Changed 13 years ago by Alpar Juttner

Resolution: fixed
Status: assignedclosed

Thanks for the patches. I cannot understand how I could obtain the original error message, but now it works for me with VS2008.

The first patch is applied to the main branch (with changed commit log) as [7f6eeffe3cd1]. The second one has been rebased as [b96574ff36ec] and merged to branches 1.1, 1.2, and default.

Note: See TracTickets for help on using tickets.