Compile fails on latest MinGW

Compile fails on latest MinGW

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
MadrMan
Posts: 12
Joined: 17 Jan 2009, 20:13

Compile fails on latest MinGW

Post by MadrMan »

Hi all,

Currently the compile fails on the latest mingw (the one installed with the regular automated installer) due to the _tls_init bug the older boost version has, which spring uses.

https://github.com/MadrMan/spring/commi ... df56dae807

If someone merges my master branch into the spring master all should be well :-)

This has been fixed since boost 1.45.0 according to the boost trac, but as long as spring isn't updating to that this fix works aswell.

Boost issue: https://svn.boost.org/trac/boost/ticket/4258

Thanks.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Compile fails on latest MinGW

Post by lurker »

Spring doesn't come with boost or mingw, so why change it to fix a problem between them?

I will go try to compile newer boost for an attempted update of mingwlibs, but last time I tried thread refused to work as static.
MadrMan
Posts: 12
Joined: 17 Jan 2009, 20:13

Re: Compile fails on latest MinGW

Post by MadrMan »

Did your attempt to update mingwlibs ever get anywhere?

I agree that it doesn't make much sense to put a fix between a lib and a compiler in spring, but since it is still the recommended way to compile spring on windows it should atleast work.
It would be much better to have boost updated instead.

I suppose I could try updating boost myself if you can't get it to work.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Compile fails on latest MinGW

Post by lurker »

Oh, kind of got distracted, I'll get back to it. Right now I just work around the bug by shoving extern "C" void tss_cleanup_implemented() { } into Info.cpp.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Compile fails on latest MinGW

Post by abma »

there are mingwlibs for spring:

https://github.com/spring/mingwlibs
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Compile fails on latest MinGW

Post by lurker »

That is why I said 'update of'.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Compile fails on latest MinGW

Post by abma »

damn, sorry! jk and me talked today about updating the libs... if compiling works, they will be updated soon.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Compile fails on latest MinGW

Post by lurker »

Okay. Make sure you test thoroughly. Mingwlibs have at times given me strange issues with an output spring that worked on XP but not vista/7.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Compile fails on latest MinGW

Post by jK »

boostlibs updated:
https://github.com/spring/mingwlibs/commits/master

Spring compiles now again with unmodified TDM-GCC-dw2 :mrgreen:
Post Reply

Return to “Engine”