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
Joined: Wed Aug 19, 2009 5:45 am

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

Post by shametblame » Fri Jun 08, 2012 6:02 am

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

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

Post by shametblame » Mon Jun 11, 2012 2:17 pm

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

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

Post by Senk » Mon Jun 11, 2012 7:38 pm

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

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

Post by shametblame » Tue Jun 12, 2012 1:47 am

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

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

Post by shametblame » Thu Jun 21, 2012 2:08 pm

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: 617
Joined: Fri Oct 12, 2007 1:52 pm
Location: Munich, Germany
Contact:

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

Post by Maturion » Sun Aug 26, 2012 3:26 pm

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

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

Post by P@S@f » Fri Feb 20, 2015 5:35 pm

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

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

Post by emptythought » Wed Sep 30, 2015 1:55 pm

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: 5249
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Contact:

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

Post by BlueCrab » Wed Sep 30, 2015 5:03 pm

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