libzmq Cmake project builds with TDM w64 compiler but not c:\SysGCC\mingw64\

Sysprogs forums Forums VisualGDB libzmq Cmake project builds with TDM w64 compiler but not c:\SysGCC\mingw64\

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20945
    b.timofte
    Participant

    Dear all

    I took the project via command git clone https://github.com/zeromq/libzmq after i installed git for windows

    Then i used the Visual studio 2017 and CMAKE project import to import the cmake project . I selected the toolchain c:\SysGCC\mingw64\ and when i build it i go the error

     

    —— Build started: Project: WindowsProject1.vgdbcmake, Configuration: Debug VisualGDB ——
    Reconfiguring project due to missing Makefile…
    Detecting C compile features – done
    Check for working CXX compiler: C:/SysGCC/mingw64/bin/g++.exe
    Check for working CXX compiler: C:/SysGCC/mingw64/bin/g++.exe — works
    Detecting CXX compiler ABI info
    Detecting CXX compiler ABI info – done
    Detecting CXX compile features
    Detecting CXX compile features – done
    Performing Test COMPILER_SUPPORTS_CXX11
    Performing Test COMPILER_SUPPORTS_CXX11 – Success
    Performing Test COMPILER_SUPPORTS_C11
    Performing Test COMPILER_SUPPORTS_C11 – Success
    Using tweetnacl for CURVE security
    Looking for kqueue
    Looking for kqueue – not found
    Looking for epoll_create
    Looking for epoll_create – not found
    Looking for sys/types.h
    Looking for sys/types.h – found
    Looking for stdint.h
    Looking for stdint.h – found
    Looking for stddef.h
    Looking for stddef.h – found
    Check size of struct pollfd
    Check size of struct pollfd – failed
    Looking for pollset_create
    Looking for pollset_create – not found
    Looking for poll
    Looking for poll – not found
    Detected select polling method
    Detected ZMQ Version – 4.3.1
    Looking for include file ifaddrs.h
    Looking for include file ifaddrs.h – not found
    Looking for include file windows.h
    Looking for include file windows.h – found
    Looking for include file sys/uio.h
    Looking for include file sys/uio.h – not found
    Looking for include file sys/eventfd.h
    Looking for include file sys/eventfd.h – not found
    Looking for WSAStartup
    Looking for WSAStartup – found
    Looking for UuidCreateSequential
    Looking for UuidCreateSequential – found
    Looking for GetAdaptersAddresses
    Looking for GetAdaptersAddresses – found
    Looking for fopen in ws2
    Looking for fopen in ws2 – not found
    Looking for pthread.h
    Looking for pthread.h – found
    Looking for pthread_create
    Looking for pthread_create – not found
    Looking for pthread_create in pthreads
    Looking for pthread_create in pthreads – not found
    Looking for pthread_create in pthread
    Looking for pthread_create in pthread – found
    Found Threads: TRUE
    Looking for clock_gettime
    Looking for clock_gettime – not found
    Looking for fork
    Looking for fork – not found
    Looking for gethrtime
    Looking for gethrtime – not found
    Looking for mkdtemp
    Looking for mkdtemp – not found
    Looking for accept4
    Looking for accept4 – not found
    Performing Test HAVE_FLAG_-Wall
    Performing Test HAVE_FLAG_-Wall – Success
    Performing Test HAVE_FLAG_-Wextra
    Performing Test HAVE_FLAG_-Wextra – Success
    Performing Test HAVE_FLAG_-Wno-long-long
    Performing Test HAVE_FLAG_-Wno-long-long – Success
    Performing Test HAVE_FLAG_-Wno-uninitialized
    Performing Test HAVE_FLAG_-Wno-uninitialized – Success
    Performing Test HAVE_FLAG_-pedantic
    Performing Test HAVE_FLAG_-pedantic – Success
    Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
    Could NOT find AsciiDoc (missing: ASCIIDOC_EXECUTABLE)
    CMake Warning (dev) at tests/CMakeLists.txt:240 (message):
    Test ‘test_security_gssapi’ is not known to CTest.
    This warning is for project developers.  Use -Wno-dev to suppress it.

    Configuring done
    Generating done
    Code model queried in 231 msec
    Using tweetnacl for CURVE security
    Detected select polling method
    Detected ZMQ Version – 4.3.1
    Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
    Could NOT find AsciiDoc (missing: ASCIIDOC_EXECUTABLE)
    CMake Warning (dev) at tests/CMakeLists.txt:240 (message):
    Test ‘test_security_gssapi’ is not known to CTest.
    This warning is for project developers.  Use -Wno-dev to suppress it.

    Configuring done
    Generating done
    Code model queried in 218 msec
    VisualGDB: Run “C:\SysGCC\mingw64\bin\mingw32-make.exe ” in directory “C:\Users\timo\Source\Repos\WindowsProject1\WindowsProject1\..\..\..\..\Desktop\mathworks-SimulinkCoSimulationExample-148c418\libzmq/VisualGDB/Debug” on local computer
    Scanning dependencies of target libzmq
    [  0%] Building C object CMakeFiles/libzmq.dir/src/tweetnacl.c.obj
    [  1%] Building CXX object CMakeFiles/libzmq.dir/src/precompiled.cpp.obj
    In file included from c:\sysgcc\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/mprapi.h:10:0,
    from c:\sysgcc\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/iprtrmib.h:9,
    from c:\sysgcc\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/iphlpapi.h:13,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/windows.hpp:61,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.hpp:49,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.cpp:30:
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\ras.h(988,3): error :  ‘IsolationState’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\ras.h(989,3): error :  ‘ProbationTime’ does not name a type
    In file included from c:\sysgcc\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/iphlpapi.h:16:0,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/windows.hpp:61,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.hpp:49,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.cpp:30:
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(43,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(55,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(63,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(78,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(151,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(182,3): error :  ‘NDIS_MEDIUM’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(183,3): error :  ‘NDIS_PHYSICAL_MEDIUM’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(249,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(250,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(253,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(272,3): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(381,9): error :  ‘PSOCKADDR_IN6’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(383,9): error :  ‘PSOCKADDR_IN6’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(386,3): error :  ‘PSOCKADDR_IN6_PAIR’ has not been declared
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(453,9): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(454,9): error :  ‘SOCKADDR_INET’ does not name a type
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(457,3): error :  ‘SOCKADDR_INET’ has not been declared
    In file included from c:\sysgcc\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/iphlpapi.h:16:0,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/windows.hpp:61,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.hpp:49,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.cpp:30:
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\netioapi.h(584,9): error :  ‘SOCKADDR_INET’ does not name a type
    In file included from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/windows.hpp:61:0,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.hpp:49,
    from C:/Users/timo/Desktop/mathworks-SimulinkCoSimulationExample-148c418/libzmq/src/precompiled.cpp:30:
    c:\sysgcc\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\4.7.1\..\..\..\..\x86_64-w64-mingw32\include\iphlpapi.h(147,5): error :  ‘SOCKADDR_IN6’ does not name a type
    mingw32-make[2]: *** [CMakeFiles/libzmq.dir/src/precompiled.cpp.obj] Error 1
    mingw32-make[1]: *** [CMakeFiles/libzmq.dir/all] Error 2
    mingw32-make: *** [all] Error 2
    ————————————————————-
    Command exited with code 2
    Executable: C:\SysGCC\mingw64\bin\mingw32-make.exe
    Arguments:
    Directory: C:\Users\timo\Source\Repos\WindowsProject1\WindowsProject1\..\..\..\..\Desktop\mathworks-SimulinkCoSimulationExample-148c418\libzmq/VisualGDB/Debug
    VisualGDB: Error: Command-line action failed
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    Then i switched to TDM-GCC-64 compiler and it worked …

    —— Build started: Project: WindowsProject1.vgdbcmake, Configuration: Debug VisualGDB ——
    VisualGDB: Run “C:\TDM-GCC-64\bin\mingw32-make.exe  -j4 -i” in directory “C:\Users\timo\Source\Repos\WindowsProject1\WindowsProject1\..\..\..\..\Desktop\mathworks-SimulinkCoSimulationExample-148c418\libzmq/VisualGDB/Debug” on local computer
    Scanning dependencies of target unity
    [  0%] Building C object tests/CMakeFiles/unity.dir/__/external/unity/unity.c.obj
    [  1%] Linking C static library ../lib/libunity.a
    [  1%] Built target unity
    Scanning dependencies of target libzmq-static
    Scanning dependencies of target libzmq
    [  2%] Building C object CMakeFiles/libzmq-static.dir/src/tweetnacl.c.obj
    [  2%] Building C object CMakeFiles/libzmq.dir/src/tweetnacl.c.obj
    [  2%] Building CXX object CMakeFiles/libzmq-static.dir/src/precompiled.cpp.o

     

    ….

     

     

    [100%] Linking CXX executable ../bin/test_dgram.exe
    [100%] Built target test_scatter_gather
    [100%] Built target test_dgram
    [100%] Linking CXX executable ../bin/test_app_meta.exe
    [100%] Built target test_app_meta
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

     

    Whats the issue ?

    #20946
    support
    Keymaster

    Hi,

    It looks like your project relies on some functionality that is not present in our toolchain. The only known workaround to this would be to try downloading a toolchain from a different source (there are a few independent MinGW builds available online) or switching to Cygwin that is actively maintained, patched and is fully supported by VisualGDB.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.