Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: TDragon on October 12, 2007, 05:30:47 am

Title: TDM-GCC 4.2.2 for MinGW
Post by: TDragon on October 12, 2007, 05:30:47 am
The official release of GCC 4.2.2 has happened, and following on its heels is TDM's usual unofficial GCC build for MinGW. Binary packages are available as drop-in replacements for the MinGW project's official gcc packages.

As always, I've tested to ensure that it successfully builds wxWidgets (2.8.4) and Code::Blocks SVN.

Full details at http://www.tdragon.net/recentgcc/ .

Note that you should only use this build if you need the features or bugfixes done since GCC 4.2.1. If you don't need them or aren't sure, you should instead use the official MinGW GCC 4.2.1 Technology Preview, or (most preferably) the official MinGW GCC 3.4.5 stable release.

Cheers,
John E. / TDM
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: stahta01 on October 12, 2007, 06:43:59 am
Thank You for the Work.
I am downloading it now.

Tim S
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: XayC on October 12, 2007, 04:37:06 pm
I was waiting for it, thanks TDragon!

XayC
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: alchemist on October 13, 2007, 05:09:10 pm
Hello,

How did you build your version?
- cygwin?
- msys?
- canadian cross-build from linux?
- other?
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: TDragon on October 13, 2007, 07:50:04 pm
- canadian cross-build from linux?
That one. :) I do a canadian cross from Ubuntu 7.04 on a VMWare virtual machine. It's actually faster than an mSYS build, which is kind of sad...

Grab the 4.2.2-tdm-1-src-base package from the TDM Sources section on the SF download page (http://sourceforge.net/project/showfiles.php?group_id=200665) if you're interested in the build scripts and patches I used.
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: Biplab on October 13, 2007, 08:24:35 pm
John E,

I've a question. I compiled the GCC-4.2.2 source in MSYS and later discovered that while compiling wx it gives LTHUNK() error. That bug has been fixed in GCC trunk (4.3. series) but not applied in 4.2.x series. Do you know of any reason behind this? :)

I'm feeling too lazy to manually patch the source and then recompile GCC. ;)

Best Regards,

Biplab
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: TDragon on October 13, 2007, 10:18:53 pm
That bug has been fixed in GCC trunk (4.3. series) but not applied in 4.2.x series. Do you know of any reason behind this? :)
Afraid not; it may have just dropped off the radar. The full bug report and discussion, plus the patch I use, is in GCC Bugzilla #27067 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27067).
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: alchemist on October 14, 2007, 03:26:40 pm
- canadian cross-build from linux?
That one. :) I do a canadian cross from Ubuntu 7.04 on a VMWare virtual machine. It's actually faster than an mSYS build, which is kind of sad...

Grab the 4.2.2-tdm-1-src-base package from the TDM Sources section on the SF download page (http://sourceforge.net/project/showfiles.php?group_id=200665) if you're interested in the build scripts and patches I used.

Thank you John for the information; so the canadian cross-build seems the proper channel to build MINGW gcc/binutils.
Let's hope someone will propose a mingw environment so that mingw could be compiled by itself. ;)
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: TDragon on October 14, 2007, 04:21:56 pm
Thank you John for the information; so the canadian cross-build seems the proper channel to build MINGW gcc/binutils.
Just the one that I chose. I believe Danny Smith, the former MinGW/GCC release manager, uses Cygwin.
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: Biplab on October 14, 2007, 04:54:20 pm
That bug has been fixed in GCC trunk (4.3. series) but not applied in 4.2.x series. Do you know of any reason behind this? :)
Afraid not; it may have just dropped off the radar. The full bug report and discussion, plus the patch I use, is in GCC Bugzilla #27067 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27067).

I read about this patch from your website. Actually I found that the patch differs slightly with the present GCC-4.2.2 source (precisely in gcc/config/i386/winnt.c file). So I just stopped patching and now I'm using your build. :)
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: neokt8 on November 23, 2007, 10:51:33 am
I've a problem using TDM-CCC-4.2.2 under vista.

what does that mean.

gcc: CreateProcess: No such file or directory

Can't I use TDM-GCC-4.2.2 under vista.

also I missing exeptions can't leave DLL's

what can I do?
Title: Re: TDM-GCC 4.2.2 for MinGW
Post by: TDragon on November 23, 2007, 04:56:25 pm
You can use the official MinGW release of GCC 4.2.1, or you can use the official MinGW release of GCC 3.4.5 with patched drivers. As far as I'm aware, you'll still have to jump through some hoops; this Wiki page (http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista) describes how to get things working in C::B.