2025-07-20 16:03 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003588Spring engineGeneralpublic2013-08-25 03:28
Reportercranphin 
Assigned Toabma 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version93.2 
Target VersionFixed in Version 
Summary0003588: Trying to build on windows gives error "CMake Error at cont/CMakeLists.txt:75 (message): pthreadGC2 not found!"
DescriptionI'm trying to build on windows to see if there's an easy way to solve 3587.
But I get the error "CMake Error at cont/CMakeLists.txt:75 (message): pthreadGC2 not found!".
I use Mingw/CMake following the instructions here:
http://springrts.com/wiki/Building_Spring_on_Windows
I've gotten mingwlibs from here, with the zip button:
https://github.com/spring/mingwlibs
I use this tarball:
http://sourceforge.net/projects/springrts/files/springrts/spring-93.1/spring_93.1_src.tar.gz/download

I think pthreadsGC2 was part of mingwlibs at some point, but was removed here:
https://github.com/spring/mingwlibs/commit/a3cf8c67a70421e2bd3ca101e2f10a9d2693ba0c

But I'm not sure if the problem is in mingwlibs, or in some configuration.

I'll attach the full CMake log.

TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon CMake.txt (7,368 bytes) 2013-03-16 17:52 -
    The C compiler identification is GNU
    The CXX compiler identification is GNU
    Check for working C compiler: C:/MinGW32/bin/gcc.exe
    Check for working C compiler: C:/MinGW32/bin/gcc.exe -- works
    Detecting C compiler ABI info
    Detecting C compiler ABI info - done
    Check for working CXX compiler: C:/MinGW32/bin/g++.exe
    Check for working CXX compiler: C:/MinGW32/bin/g++.exe -- works
    Detecting CXX compiler ABI info
    Detecting CXX compiler ABI info - done
    Boost version: 1.50.0
    Found the following Boost libraries:
      thread
      regex
      program_options
      system
      signals
    Boost version: 1.50.0
    Found the following Boost libraries:
      chrono
    Looking for include files CMAKE_HAVE_PTHREAD_H
    Looking for include files CMAKE_HAVE_PTHREAD_H - 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 
    Found DevIL: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/include/IL/il.h 
    Found DevIL-ILU: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/lib/libilu.a - E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/include/IL/ilu.h
    Found DevIL-ILUT: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/lib/libilut.a - E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/include/IL/ilut.h
    Found Windres: C:/MinGW32/bin/windres.exe 
    Found win32 libraries: -limagehlp;-lws2_32;-lwinmm;mingw32
    Checking to see if CXX compiler accepts flag -msse -mfpmath=sse
    Checking to see if CXX compiler accepts flag -msse -mfpmath=sse - yes
    Checking to see if CXX compiler accepts flag -mno-sse2
    Checking to see if CXX compiler accepts flag -mno-sse2 - yes
    Checking to see if CXX compiler accepts flag -mno-sse3
    Checking to see if CXX compiler accepts flag -mno-sse3 - yes
    Checking to see if CXX compiler accepts flag -mno-ssse3
    Checking to see if CXX compiler accepts flag -mno-ssse3 - yes
    Checking to see if CXX compiler accepts flag -mno-sse4.1
    Checking to see if CXX compiler accepts flag -mno-sse4.1 - yes
    Checking to see if CXX compiler accepts flag -mno-sse4.2
    Checking to see if CXX compiler accepts flag -mno-sse4.2 - yes
    Checking to see if CXX compiler accepts flag -mno-sse4
    Checking to see if CXX compiler accepts flag -mno-sse4 - yes
    Checking to see if CXX compiler accepts flag -mno-sse4a
    Checking to see if CXX compiler accepts flag -mno-sse4a - yes
    Checking to see if CXX compiler accepts flag -mno-avx
    Checking to see if CXX compiler accepts flag -mno-avx - yes
    Checking to see if CXX compiler accepts flag -mno-fma
    Checking to see if CXX compiler accepts flag -mno-fma - yes
    Checking to see if CXX compiler accepts flag -mno-fma4
    Checking to see if CXX compiler accepts flag -mno-fma4 - yes
    Checking to see if CXX compiler accepts flag -mno-xop
    Checking to see if CXX compiler accepts flag -mno-xop - yes
    Checking to see if CXX compiler accepts flag -mno-lwp
    Checking to see if CXX compiler accepts flag -mno-lwp - yes
    Checking to see if CXX compiler accepts flag -mno-avx2
    Checking to see if CXX compiler accepts flag -mno-avx2 - no
    compiler doesn't support: -mno-avx2
    Checking to see if CXX compiler accepts flag -mieee-fp
    Checking to see if CXX compiler accepts flag -mieee-fp - yes
    Checking to see if CXX compiler accepts flag -march=i686
    Checking to see if CXX compiler accepts flag -march=i686 - yes
    Building Spring for 32bit environment
    Try OpenMP C flag = [-fopenmp]
    Performing Test OpenMP_FLAG_DETECTED
    Performing Test OpenMP_FLAG_DETECTED - Success
    Try OpenMP CXX flag = [-fopenmp]
    Performing Test OpenMP_FLAG_DETECTED
    Performing Test OpenMP_FLAG_DETECTED - Success
    Found OpenMP: -fopenmp 
    using march=i686
    Enable IMAGE_FILE_LARGE_ADDRESS_AWARE (>2GB memory limit)
    Found ZLIB: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/zlib1.dll 
    Building Assimp with flags  -mwindows            -fopenmp -march=i686 -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -frounding-math -mieee-fp -pipe -fno-strict-aliasing   -mthreads
    Found GLEW: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/include (Required is at least version "1.5.1")
    Found AWK: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/bin/awk.exe 
    AWK version: GNU Awk 3.1.6
    Found AI Wrapper: CUtils (sources only wrapper)
    Found AI Interface: C-AIInterface 0.1
    Java version 1.7.0.15 configured successfully!
    Found Java: C:/Program Files (x86)/Java/jdk1.7.0_15/bin/java.exe (found version "1.7.0.15")
    Found Java: C:/Program Files (x86)/Java/jdk1.7.0_15/bin/java.exe 
    Found AI Interface: Java-AIInterface 0.1
    Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
    Found AI Wrapper: Cpp-AIWrapper
    Found AI Wrapper: JavaOO
    Found vecmath.jar: E:/Develop/spring_93.1_src/spring_93.1/AI/Wrappers/JavaOO/jlib/vecmath.jar
    Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
    Found AI Wrapper: LegacyCpp-AIWrapper
    Found AI Wrapper: LegacyCpp-Creg-AIWrapper
    Found Skirmish AI: AAI 0.9
    Found Skirmish AI: CppTestAI 0.1
    Found Skirmish AI: E323AI 3.25.0
    Found Skirmish AI: HughAI 0.1
    Found Skirmish AI: KAIK 0.13
    Found Skirmish AI: NullAI 0.1
    Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
    Found Skirmish AI: NullJavaAI 0.1 (config: default)
    Could NOT find Maven (missing:  MVN_BIN MVN_VERSION MVN_ATTRIBUTES_DEFAULT) 
    Found Skirmish AI: NullOOJavaAI 0.1 (config: default)
    Found Skirmish AI: RAI 0.601
    Found Skirmish AI: Shard dev
    Found PythonLibs: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/python25.dll 
    Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) 
    Python unitsync wrapper will NOT be created
    	 because python interpreter was not found
    	 because pybindgen was not found
    	 because pygccxml was not found
    Found CURL: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/lib/libcurl.a 
    Found GIT: C:/Program Files (x86)/Git/cmd/git.cmd 
    Command "C:/Program Files (x86)/Git/cmd/git.cmd;describe;--tags;--candidates;999;--match;*" in directory E:/Develop/spring_93.1_src/spring_93.1/tools/pr-downloader/src failed with output:
    "fatal: Not a git repository (or any of the parent directories): .git"
    Version 
    Could NOT find MINIZIP (missing:  MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) 
    Boost version: 1.50.0
    Found the following Boost libraries:
      unit_test_framework
    user-docs (html/text) will be installed to {INSTALL_PREFIX}/doc
    Found SevenZip: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/bin/7za.exe 
    CMake Error at cont/CMakeLists.txt:75 (message):
      pthreadGC2 not found!
    
    
    Found OpenAL: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/OpenAL32.dll 
    Looking for vorbis_bitrate_addblock in vorbis
    Looking for vorbis_bitrate_addblock in vorbis - not found
    Found OggVorbis: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/ogg.dll;E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/vorbis.dll;E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/vorbisfile.dll
    Found OpenGL: opengl32 
    WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
    Found Freetype: E:/Develop/spring_93.1_src/spring_93.1/mingwlibs/dll/freetype6.dll 
    WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
    Configuring incomplete, errors occurred!
    
    txt file icon CMake.txt (7,368 bytes) 2013-03-16 17:52 +

-Relationships
child of 0003925resolvedjK endless loop in test_ThreadPool & spring on win32 (first seen with ada052b7d3a52d765402685128ca7980ce7f3301) 
+Relationships

-Notes

~0010095

abma (administrator)

Last edited: 2013-03-17 03:26

View 2 revisions

its an mistake in the CMakeLists.txt, why do you want to compile 93.2 for windows?

~0010097

cranphin (reporter)

Last edited: 2013-03-17 11:11

View 2 revisions

I want to compile 93.2/93.1 (those two are the same for windows right? the latest version) for Windows, since I only have windows, and want to try to change some code for issue 3587 :)

So, what I want is just be able to compile the latest version, with some changes of my own, to see if it works or not :)

~0010105

abma (administrator)

just comment out everything between if(OPENMP_FOUND) and endif(OPENMP_FOUND) to get past this error message:
https://github.com/spring/spring/blob/develop/cont/CMakeLists.txt#L54

~0011260

jK (developer)

PLEASE revert the mingwlibs commit and ALWAYS search for pthreadGC2.dll

~0011280

abma (administrator)

"PLEASE revert the mingwlibs"
hu? readd pthreadGC2 to mingwlibs? which commit do you mean?

~0011281

jK (developer)

Last edited: 2013-08-11 17:19

View 2 revisions

https://github.com/spring/mingwlibs/commit/a3cf8c67a70421e2bd3ca101e2f10a9d2693ba0c
on the 2nd thought, the dll might be not enough :/
maybe needs to update wiki to how install pthreads (Behe added already such a comment)

~0011286

abma (administrator)

Last edited: 2013-08-12 02:17

View 2 revisions

for the buildbot the wiki is mostly up to date:

http://springrts.com/wiki/Buildbot:Gentoo

also, whats the problem atm here? why status feedback?

~0011287

abma (administrator)

Last edited: 2013-08-12 02:25

View 2 revisions

also as big fat note: atm compiling spring with pthreads / threadpool on windows is untested / won't work!

instructions are not up to date. to get it work disable threadpool / pthreads.

~0011288

abma (administrator)

before 0003925 isn't fixed it makes few sense to try to fix this bug.
+Notes

-Issue History
Date Modified Username Field Change
2013-03-16 17:52 cranphin New Issue
2013-03-16 17:52 cranphin File Added: CMake.txt
2013-03-17 03:25 abma Note Added: 0010095
2013-03-17 03:26 abma Note Edited: 0010095 View Revisions
2013-03-17 11:08 cranphin Note Added: 0010097
2013-03-17 11:11 cranphin Note Edited: 0010097 View Revisions
2013-03-17 17:39 abma Note Added: 0010105
2013-03-17 17:44 abma Changeset attached => spring develop 69a84fab
2013-03-17 17:44 abma Assigned To => abma
2013-03-17 17:44 abma Status new => resolved
2013-03-17 17:44 abma Resolution open => fixed
2013-08-10 15:59 jK Note Added: 0011260
2013-08-10 15:59 jK Status resolved => feedback
2013-08-10 15:59 jK Resolution fixed => reopened
2013-08-11 17:13 abma Note Added: 0011280
2013-08-11 17:17 jK Note Added: 0011281
2013-08-11 17:19 jK Note Edited: 0011281 View Revisions
2013-08-12 02:16 abma Note Added: 0011286
2013-08-12 02:17 abma Note Edited: 0011286 View Revisions
2013-08-12 02:25 abma Note Added: 0011287
2013-08-12 02:25 abma Note Edited: 0011287 View Revisions
2013-08-12 02:26 abma Relationship added child of 0003929
2013-08-12 02:26 abma Relationship added child of 0003925
2013-08-12 02:26 abma Relationship deleted child of 0003929
2013-08-12 02:27 abma Note Added: 0011288
2013-08-25 03:28 jK Status feedback => resolved
2013-08-25 03:28 jK Resolution reopened => fixed
+Issue History