Important note about compiling with MINGW-auto-dl-installer

Discuss the future of Warzone 2100 with us.
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Important note about compiling with MINGW-auto-dl-installer

Post by bornemix »

Hi,

Using the MINGW automatic installer right now won't work,

sence it downloads GCC 3.4.5 which is too low for the libraries (included with warzone2100) that are supposed to be compiled.

The latest version which is available from the same sourceforge project is 4.4.0. Because of this, some of you will see errors of this sort:

Code: Select all

/warzone2100-downloader/bin/../lib/gcc/mingw32/3.4.5/../../.
./libGLC.a(libGLC_la-render.o):render.c:(.text+0x1d): undefined reference to `__
emutls_get_address'
If you want to use MINGW, you need to manually download the newest packages (gcc-core-4.4.0-mingw32-bin.tar.gz, also possibly gcc-c++-4.4.0-mingw32-bin.tar.gz)...

Although, there are probably more errors that need fixing if you want to successfully compile wz, but this is regarding MINGW itself.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Important note about compiling with MINGW-auto-dl-installer

Post by Zarel »

Alternatively, you could use an old version of the devpkg (which is what I've been doing - it seems to work quite well).

It's nice to know why never devpkgs don't work, though - thanks for the information!
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Important note about compiling with MINGW-auto-dl-instal

Post by Buginator »

Another note, if you update the compiler / binutils, then it will hose our crash reports, since binutils + libbfd need to match for our exception handler to work correctly.

Which means, I wouldn't use the newer mingw just yet.
and it ends here.
User avatar
bornemix
Code contributor
Code contributor
Posts: 56
Joined: 09 Mar 2010, 09:39

Re: Important note about compiling with MINGW-auto-dl-instal

Post by bornemix »

Hi Bug.

You say that we shouldn't use newer tools than is currently supported by the wz-source - which is fair enough.

BUT, sence mingw auto-install downloads whatever it wants, warzone doesn't currently compile.

You tell me: don't update the mingw just yet - but in that case, what SHOULD we use? :)

I'm currently downloading and using:

binutils-2.20.1-2-mingw32-bin.tar.gz
gcc-core-3.4.5-20060117-3.tar.gz
gcc-g++-3.4.5-20060117-3.tar.gz
make-3.81-20090914-mingw32-bin.tar.gz
mingwrt-3.18-mingw32-dev.tar.gz
mingwrt-3.18-mingw32-dll.tar.gz
w32api-3.14-mingw32-dev.tar.gz

Please give me the versions of your mingw downloads.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Important note about compiling with MINGW-auto-dl-instal

Post by cybersphinx »

Or use the newer mingw and compile a matching binutils/libbfd (though if you don't distribute your builds and don't need useful crashdumps yourself, you could just use the existing stuff, if it works).
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Important note about compiling with MINGW-auto-dl-instal

Post by Buginator »

bornemix wrote:Hi Bug.

You say that we shouldn't use newer tools than is currently supported by the wz-source - which is fair enough.

BUT, sence mingw auto-install downloads whatever it wants, warzone doesn't currently compile.

You tell me: don't update the mingw just yet - but in that case, what SHOULD we use? :)

I'm currently downloading and using:

binutils-2.20.1-2-mingw32-bin.tar.gz
gcc-core-3.4.5-20060117-3.tar.gz
gcc-g++-3.4.5-20060117-3.tar.gz
make-3.81-20090914-mingw32-bin.tar.gz
mingwrt-3.18-mingw32-dev.tar.gz
mingwrt-3.18-mingw32-dll.tar.gz
w32api-3.14-mingw32-dev.tar.gz

Please give me the versions of your mingw downloads.
I use mingw on debian, so, whatever packages is in their repo, that is the one I use... If I remember, I will dump out the versions the next time I am on that machine.
and it ends here.
BunkerBlaster
Trained
Trained
Posts: 268
Joined: 21 Feb 2010, 09:56

Re: Important note about compiling with MINGW-auto-dl-instal

Post by BunkerBlaster »

bornemix wrote:Please give me the versions of your mingw downloads.
Buginator wrote:I use mingw on debian, so, whatever packages is in their repo, that is the one I use... If I remember, I will dump out the versions the next time I am on that machine.
I would like to know also, whenever you have time.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Important note about compiling with MINGW-auto-dl-instal

Post by Buginator »

BunkerBlaster wrote:
Buginator wrote:I use mingw on debian, so, whatever packages is in their repo, that is the one I use... If I remember, I will dump out the versions the next time I am on that machine.
I would like to know also, whenever you have time.
Sorry, forgot.
My switch died on me, so my linux box is out of commission for a bit... just look in win32/libs and you will find what packages we need, and the versions we use.
and it ends here.
User avatar
BlueMaxima
Trained
Trained
Posts: 431
Joined: 05 Jun 2008, 09:20
Location: Sydney, Australia

Re: Important note about compiling with MINGW-auto-dl-instal

Post by BlueMaxima »

Can someone stick a step-by-step up? Cause I really wanna compile trunk :/
Bring back...ducks!
User avatar
Mysteryem
Global Moderator
Global Moderator
Posts: 728
Joined: 22 Sep 2008, 19:44
Location: UK

Re: Important note about compiling with MINGW-auto-dl-instal

Post by Mysteryem »

BlueMaxima wrote:Can someone stick a step-by-step up? Cause I really wanna compile trunk :/
Yeah, that would be very useful, I'm also unable to compile trunk now. :(
"...If pure awesomeness were bricks, this would be the Great Wall of China...
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: Important note about compiling with MINGW-auto-dl-instal

Post by JDW »

Mysteryem wrote:
BlueMaxima wrote:Can someone stick a step-by-step up? Cause I really wanna compile trunk :/
Yeah, that would be very useful, I'm also unable to compile trunk now. :(
Boy, I'm sure glad I use Linux. :wink:
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce
User avatar
BlueMaxima
Trained
Trained
Posts: 431
Joined: 05 Jun 2008, 09:20
Location: Sydney, Australia

Re: Important note about compiling with MINGW-auto-dl-instal

Post by BlueMaxima »

j0shdrunk0nwar wrote:Boy, I'm sure glad I use Linux. :wink:
I've got trunk going on it :P
Bring back...ducks!
User avatar
JDW
Regular
Regular
Posts: 1669
Joined: 18 May 2010, 20:44

Re: Important note about compiling with MINGW-auto-dl-instal

Post by JDW »

BlueMaxima wrote:
j0shdrunk0nwar wrote:Boy, I'm sure glad I use Linux. :wink:
I've got trunk going on it :P
Well, it's about time. :wink:
"Speak when you are angry and you will make the best speech you will ever regret."
-- Ambrose Bierce