News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

TDM-GCC 4.2.2 for MinGW

Started by TDragon, October 12, 2007, 05:30:47 AM

Previous topic - Next topic

TDragon

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
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

stahta01

Thank You for the Work.
I am downloading it now.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

XayC

I was waiting for it, thanks TDragon!

XayC

alchemist

Hello,

How did you build your version?
- cygwin?
- msys?
- canadian cross-build from linux?
- other?
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]

TDragon

Quote from: alchemist on October 13, 2007, 05:09:10 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 if you're interested in the build scripts and patches I used.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Biplab

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
Be a part of the solution, not a part of the problem.

TDragon

Quote from: Biplab on October 13, 2007, 08:24:35 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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

alchemist

Quote from: TDragon on October 13, 2007, 07:50:04 PM
Quote from: alchemist on October 13, 2007, 05:09:10 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 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. ;)
Kind Regards,
Xavier Miller.
[url="http://xaviermiller.be"]http://xaviermiller.be[/url]

TDragon

Quote from: alchemist on October 14, 2007, 03:26:40 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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Biplab

Quote from: TDragon on October 13, 2007, 10:18:53 PM
Quote from: Biplab on October 13, 2007, 08:24:35 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.

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. :)
Be a part of the solution, not a part of the problem.

neokt8

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?

TDragon

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 describes how to get things working in C::B.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)