View Issue Details

IDProjectCategoryView StatusLast Update
0003899Spring engineBuildbotpublic2013-07-28 03:27
Reporterabma Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Target Version95.0 
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

Relationships

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

Activities

cleanrock

2013-07-27 10:25

reporter   ~0011082

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

cleanrock

2013-07-27 10:36

reporter   ~0011083

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

cleanrock

2013-07-27 11:11

reporter   ~0011084

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

abma

2013-07-27 13:09

administrator   ~0011085

Last edited: 2013-07-27 13:49

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)

abma

2013-07-27 13:55

administrator   ~0011086

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

cleanrock

2013-07-27 14:49

reporter   ~0011087

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.

cleanrock

2013-07-27 21:29

reporter   ~0011089

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.

abma

2013-07-28 01:04

administrator   ~0011091

great, thanks!

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

abma

2013-07-28 01:55

administrator   ~0011092

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

now omp or threadpool should work...

jk, what about threadpool?

abma

2013-07-28 03:27

administrator   ~0011093

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!

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
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