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 » 17 Jan 2011, 20:33

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.
0 x

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

Re: Compile fails on latest MinGW

Post by lurker » 17 Jan 2011, 20:47

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.
0 x

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

Re: Compile fails on latest MinGW

Post by MadrMan » 31 Jan 2011, 20:45

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.
0 x

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

Re: Compile fails on latest MinGW

Post by lurker » 03 Feb 2011, 18:59

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.
0 x

abma
Spring Developer
Posts: 3554
Joined: 01 Jun 2009, 00:08

Re: Compile fails on latest MinGW

Post by abma » 06 Feb 2011, 14:27

there are mingwlibs for spring:

https://github.com/spring/mingwlibs
0 x

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

Re: Compile fails on latest MinGW

Post by lurker » 06 Feb 2011, 16:09

That is why I said 'update of'.
0 x

abma
Spring Developer
Posts: 3554
Joined: 01 Jun 2009, 00:08

Re: Compile fails on latest MinGW

Post by abma » 14 Feb 2011, 02:20

damn, sorry! jk and me talked today about updating the libs... if compiling works, they will be updated soon.
0 x

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

Re: Compile fails on latest MinGW

Post by lurker » 16 Feb 2011, 15:36

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.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Compile fails on latest MinGW

Post by jK » 25 Feb 2011, 04:27

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

Spring compiles now again with unmodified TDM-GCC-dw2 :mrgreen:
0 x

Post Reply

Return to “Engine”