2025-07-21 12:40 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003899Spring engineBuildbotpublic2013-07-28 03:27
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target Version95.0Fixed in Version 
Summary0003899: fix buildbot / buildsetup issues
Descriptionhttps://github.com/spring/spring/commit/c0c8bfecb4ff2588841a23aa50aea81843142e26
Additional Information- headless doesn't work because it has problems with the sdl-stubs (undefined references to the glstubs) http://buildbot.springrts.com/builders/full-windows-test/builds/1167/steps/buildConfigNinja/logs/stdio i have no clue how to fix
- omp isn't available
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0003840resolvedabma Old instance of Spring remains after a Spring.Restart (windows only) 
+Relationships

-Notes

~0011082

cleanrock (reporter)

Looks like it only includes glstub.c in headlessStubs.
Perhaps its because the source list do not contain file suffixes.

~0011083

cleanrock (reporter)

Forget that, looks like it just did not need to build the other files.

~0011084

cleanrock (reporter)

GLAPI is most probably setup/selected incorrect in gl.h.

~0011085

abma (administrator)

Last edited: 2013-07-27 13:49

View 2 revisions

mingw64 gl.h:
WINGDIAPI void APIENTRY glEnable(GLenum cap);

vs mingw32 gl.h:
GLAPI void APIENTRY glEnable( GLenum cap );

not sure if this bug is in the current used mingw64:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55268 (report is about gcc 4.8.0, used is 4.7.3)

~0011086

abma (administrator)

pff, 4.8.1 doesn't compile: http://sourceforge.net/mailarchive/message.php?msg_id=31092447

~0011087

cleanrock (reporter)

I am pretty sure _imp__* means it will try to look for it in a DLL.
So WINGDIAPI is probably defined to be "__declspec(import)" when mingw64 gl.h includes <windows.h>, from gl.h :
#if !(defined(WINGDIAPI) && defined(WINAPI))
#include <windows.h>
#endif

Perhaps we can define those to what we want (empty?) when building headless.

~0011089

cleanrock (reporter)

To make a long story short:
define _GDI32_ when building headless (and dedicated?), it will set WINGDIAPI empty.
See http://sourceforge.net/p/mingw-w64/patches/41/

After a lot of problems i managed to cross-compile/link spring-headless with mingw-w64-gcc 4.8.1 on archlinux, i had to do some other changes but i hope those are archlinux specific, if not i will supply them.

~0011091

abma (administrator)

great, thanks!

i guess i can fix the rest of the linker errors...

~0011092

abma (administrator)

works: https://github.com/spring/spring/commit/a6bcd9734677eb3a680b0590f4755be67fa40393

now omp or threadpool should work...

jk, what about threadpool?

~0011093

abma (administrator)

mingw64 compiler has now omp support on the buildslave. i've updated to pthreads-win32-2.9.1 as well, so lets see if spring.restart works again...

thanks for the help guys!
+Notes

-Issue History
Date Modified Username Field Change
2013-07-27 05:22 abma New Issue
2013-07-27 10:25 cleanrock Note Added: 0011082
2013-07-27 10:36 cleanrock Note Added: 0011083
2013-07-27 11:11 cleanrock Note Added: 0011084
2013-07-27 13:09 abma Note Added: 0011085
2013-07-27 13:49 abma Note Edited: 0011085 View Revisions
2013-07-27 13:55 abma Note Added: 0011086
2013-07-27 14:49 cleanrock Note Added: 0011087
2013-07-27 21:29 cleanrock Note Added: 0011089
2013-07-28 01:04 abma Note Added: 0011091
2013-07-28 01:54 abma Assigned To => jK
2013-07-28 01:54 abma Status new => assigned
2013-07-28 01:55 abma Note Added: 0011092
2013-07-28 03:25 abma Relationship added related to 0003840
2013-07-28 03:27 abma Note Added: 0011093
2013-07-28 03:27 abma Status assigned => resolved
2013-07-28 03:27 abma Resolution open => fixed
2013-07-28 03:27 abma Assigned To jK => abma
+Issue History