Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
shametblame
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 21
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Aug 19, 2009 5:45 am
Has thanked: 0
Been thanked: 0

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by shametblame »

Hi!

Any chance someone sets up a new DC DEV REV to run on Windows 7 for dummies like me?
With Codeblocks and a quick way to configure it?

That would be awesome!
shametblame
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 21
Joined: Wed Aug 19, 2009 5:45 am
Has thanked: 0
Been thanked: 0

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by shametblame »

Hello,

It looks like "mingw-get-inst-20120426.exe" (step one) doesn't download the packages properly...even big packages are downloaded much to fast.
So I have one question: what is supposed to be the size of MinGW in C:/MinGW.

Mine is +-254MB. Is it the correct size?
Senk
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 33
Joined: Wed Apr 04, 2012 1:58 pm
Location: Virginia
Has thanked: 0
Been thanked: 0
Contact:

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by Senk »

Mm... I haven't used MinGW in awhile. I know when I had it installed, it was around 120 MB or so, but that was about four or five years ago; so, I'm not sure. It may have gone up in size.
shametblame
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 21
Joined: Wed Aug 19, 2009 5:45 am
Has thanked: 0
Been thanked: 0

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by shametblame »

OK thanks.

You think that the tuto in page one of this topic is still valid? I mean not outdated and that is it possible to KallistiOS by following it?
shametblame
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 21
Joined: Wed Aug 19, 2009 5:45 am
Has thanked: 0
Been thanked: 0

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by shametblame »

Ah OK, there is obviously a mistake in the tuto on the first page:

"2.1) Go here and download these packages and extract them to a new folder called "gcc-4.5.2" created in the "dc-
chain" directory"


No, it should be:

""2.1) Go here and download these packages and extract them in the "dc-chain" directory."

After more than one hour, I still have an error...how surprising. I'll try again tomorrow and post it.
User avatar
Maturion
Moderator
Moderator
Posts: 619
Joined: Fri Oct 12, 2007 1:52 pm
Location: Munich, Germany
Has thanked: 0
Been thanked: 0
Contact:

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by Maturion »

I just followed the tutorial and I got the toolchain to compile fine. KOS compiled as well, but i don't get kos-ports to compile, when the compiler is trying to build libconio, I get the following error:

Image

What can I do?
P@S@f
DCEmu Newbie
DCEmu Newbie
Posts: 2
Joined: Sun Dec 02, 2012 12:19 pm
Has thanked: 0
Been thanked: 0

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by P@S@f »

I'm sorry to bump so old topic, but my post is strongly related.

I want to ask how did you guys were able to build GCC with NON-POSIX minGW?

Because all I get is error

Code: Select all

fatal error: sys/wait.h: No such file or directory
Obviously that means exactly that I'm trying to build POSIX program that minGW is not intended for.
User avatar
emptythought
DC Developer
DC Developer
Posts: 2015
Joined: Wed Jan 30, 2002 9:14 am
Location: UNITED STATES NRN
Has thanked: 0
Been thanked: 0
Contact:

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by emptythought »

P@S@f wrote:I want to ask how did you guys were able to build GCC with NON-POSIX minGW?
I used, and sorry for replying to an old topic, thread=single. I also found a bookmark of some instructions for a ancient version of GCC click.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Building a 4.5.2 toolchain for MINGW WIN32 (tutorial)

Post by BlueCrab »

Using --enable-threads=single will make the entire C++ library non thread-safe, which is inherently a very bad idea.

That said, the GCC patches included with KOS these days fix that problem by adding an --enable-threads=kos option. :wink:
Post Reply