libzmq icon indicating copy to clipboard operation
libzmq copied to clipboard

Clang build on Windows

Open sphaero opened this issue 3 years ago • 1 comments

Not so much of an issue but rather a missing feature. Building libzmq on Windows with Visual Studio's Clang compiler works fine. however the tests give some errors.

Environment

  • Windows 10
  • Visual Studio 2019 with Clang compiler
  • libzmq current master

Minimal test code / Steps to reproduce the issue

  1. cmake .. -G "Visual Studio 16 2019" -A x64 -T "ClangCL" -DCMAKE_C_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/Llvm/x64/bin/clang.exe" -DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/Llvm/x64/bin/clang++.exe" -DBUILD_STATIC=ON -DBUILD_SHARED=ON -DCMAKE_INSTALL_PREFIX=C:\builds
  2. cmake --build . --config Debug --target install
  3. ctest -C Debug -V
93% tests passed, 7 tests failed out of 97

Total Test time (real) = 241.50 sec

The following tests FAILED:
         42 - test_shutdown_stress (Timeout)
         64 - test_monitor (Failed)
         66 - test_reconnect_ivl (Failed)                                                                             
         71 - test_ipc_wildcard (Failed)
         72 - test_pair_ipc (Failed)
         73 - test_reqrep_ipc (Failed)
         74 - test_rebind_ipc (Failed)
Errors while running CTest

What's the actual result? (include assertion message & call stack if applicable)

I guess it fails on IPC?

test 42                                                                                                                                                                                                                                        
      Start 42: test_shutdown_stress                                                                                                                                                                                                           
                                                                                                                                                                                                                                               
42: Test command: C:\src\libzmq\build-clang\bin\Debug\test_shutdown_stress.exe                                                                                                                                                                 
42: Test timeout computed to be: 10                                                                                                                                                                                                            
42/97 Test #42: test_shutdown_stress .............***Timeout   9.98 sec                                                                                                                                                                        
test 43                                                                                                                                                                                                                                        
      Start 43: test_timeo                                                                                                                                                                                                                     
test 64                                                                                                                                                                                                                                        
      Start 64: test_monitor                                                                                                                                                                                                                   
                                                                                                                                                                                                                                               
64: Test command: C:\src\libzmq\build-clang\bin\Debug\test_monitor.exe                                                                                                                                                                         
64: Test timeout computed to be: 10                                                                                                                                                                                                            64: WARNING: Forced closure of 4 sockets, this is an implementation error unless the test case failed                                                                                                                                          
64: WARNING: Forced closure of 4 sockets, this is an implementation error unless the test case failed                                                                                                                                          
64: WARNING: Forced closure of 2 sockets, this is an implementation error unless the test case failed                                                                                                                                          
64: C:\src\libzmq\tests\test_monitor.cpp:444:test_monitor_invalid_protocol_fails:PASS                                                                                                                                                          
64: C:\src\libzmq\tests\test_monitor.cpp:445:test_monitor_basic:PASS                                                                                                                                                                           
64: C:\src\libzmq\tests\test_monitor.cpp:450:test_monitor_versioned_invalid_socket_type:PASS                                                                                                                                                   
64: C:\src\libzmq\tests\test_monitor.cpp:451:test_monitor_versioned_basic_tcp_ipv4:PASS                                                                                                                                                        
64: C:\src\libzmq\tests\test_monitor.cpp:452:test_monitor_versioned_basic_tcp_ipv6:PASS                                                                                                                                                        
64: C:\src\libzmq\tests\test_monitor.cpp:255:test_monitor_versioned_basic_ipc:FAIL: zmq_bind (socket_, bind_address_) failed, errno = 11 (Resource temporarily unavailable)                                                                    
64: C:\src\libzmq\tests\test_monitor.cpp:295:test_monitor_versioned_basic_tipc:IGNORE: tipc is not available                                                                                                                                   
64: C:\src\libzmq\tests\test_monitor.cpp:456:test_monitor_versioned_stats_tcp_ipv4:PASS                                                                                                                                                        
64: C:\src\libzmq\tests\test_monitor.cpp:457:test_monitor_versioned_stats_tcp_ipv6:PASS                                                                                                                                                        
64: C:\src\libzmq\tests\test_monitor.cpp:255:test_monitor_versioned_stats_ipc:FAIL: zmq_bind (socket_, bind_address_) failed, errno = 102 (Unknown error)                                                                                      
64:                                                                                                                                                                                                                                            
64: -----------------------                                                                                                                                                                                                                    
64: 10 Tests 2 Failures 1 Ignored                                                                                                                                                                                                              
64: FAIL                                                                                                                                                                                                                                       
64/97 Test #64: test_monitor .....................***Failed    4.59 sec                                                                                                                                                                        
test 66                                                                                                                                                                                                                                        
      Start 66: test_reconnect_ivl

66: Test command: C:\src\libzmq\build-clang\bin\Debug\test_reconnect_ivl.exe
66: Test timeout computed to be: 15
66: WARNING: Forced closure of 1 sockets, this is an implementation error unless the test case failed
66: C:\src\libzmq\tests\test_reconnect_ivl.cpp:68:test_reconnect_ivl_ipc:FAIL: zmq_bind (sb, my_endpoint) failed, errno = 102 (Unknown error)
66: C:\src\libzmq\tests\test_reconnect_ivl.cpp:107:test_reconnect_ivl_tcp_ipv4:PASS
66: C:\src\libzmq\tests\test_reconnect_ivl.cpp:108:test_reconnect_ivl_tcp_ipv6:PASS
66:
66: -----------------------
66: 3 Tests 1 Failures 0 Ignored
66: FAIL
66/97 Test #66: test_reconnect_ivl ...............***Failed    5.55 sec
test 71
      Start 71: test_ipc_wildcard                                                                                                                                                                                                             

71: Test command: C:\src\libzmq\build-clang\bin\Debug\test_ipc_wildcard.exe
71: Test timeout computed to be: 10
71: WARNING: Forced closure of 1 sockets, this is an implementation error unless the test case failed
71: C:\src\libzmq\tests\test_ipc_wildcard.cpp:255:test_ipc_wildcard:FAIL: zmq_bind (socket_, bind_address_) failed, errno = 102 (Unknown error)
71:
71: -----------------------
71: 1 Tests 1 Failures 0 Ignored
71: FAIL
71/97 Test #71: test_ipc_wildcard ................***Failed    0.11 sec
test 72
      Start 72: test_pair_ipc

72: Test command: C:\src\libzmq\build-clang\bin\Debug\test_pair_ipc.exe
72: Test timeout computed to be: 10
72: WARNING: Forced closure of 1 sockets, this is an implementation error unless the test case failed
72: C:\src\libzmq\tests\test_pair_ipc.cpp:255:test_roundtrip:FAIL: zmq_bind (socket_, bind_address_) failed, errno = 102 (Unknown error)
72: C:\src\libzmq\tests\test_pair_ipc.cpp:79:test_endpoint_too_long:PASS
72:
72: -----------------------
72: 2 Tests 1 Failures 0 Ignored
72: FAIL
72/97 Test #72: test_pair_ipc ....................***Failed    0.20 sec
test 73
      Start 73: test_reqrep_ipc

73: Test command: C:\src\libzmq\build-clang\bin\Debug\test_reqrep_ipc.exe
73: Test timeout computed to be: 10
73: WARNING: Forced closure of 1 sockets, this is an implementation error unless the test case failed
73: WARNING: Forced closure of 1 sockets, this is an implementation error unless the test case failed
73: C:\src\libzmq\tests\test_reqrep_ipc.cpp:255:test_simple:FAIL: zmq_bind (socket_, bind_address_) failed, errno = 102 (Unknown error)
73: C:\src\libzmq\tests\test_reqrep_ipc.cpp:255:test_leak:FAIL: zmq_bind (socket_, bind_address_) failed, errno = 102 (Unknown error)
73:
73: -----------------------
73: 2 Tests 2 Failures 0 Ignored
73: FAIL
73/97 Test #73: test_reqrep_ipc ..................***Failed    0.17 sec
test 74
      Start 74: test_rebind_ipc

74: Test command: C:\src\libzmq\build-clang\bin\Debug\test_rebind_ipc.exe
74: Test timeout computed to be: 10
74: WARNING: Forced closure of 2 sockets, this is an implementation error unless the test case failed
74: C:\src\libzmq\tests\test_rebind_ipc.cpp:43:test_rebind_ipc:FAIL: zmq_bind (sb0, my_endpoint) failed, errno = 102 (Unknown error)
74:
74: -----------------------
74: 1 Tests 1 Failures 0 Ignored
74: FAIL
74/97 Test #74: test_rebind_ipc ..................***Failed    0.12 sec

What's the expected result?

Not sure what to expect but I think it's almost there. One would expect it to run fine?

sphaero avatar Oct 31 '20 19:10 sphaero

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 18:04 stale[bot]