News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

FYI: GCC 4.5.0 on Mingw.org

Started by MortenMacFly, March 14, 2010, 08:33:08 PM

Previous topic - Next topic

reckless

sounds plausible seing as mingw64 eventually will run into this problem at some time also (damn more patching)  :lol:

idblew

#61
It will work on Windows 64-bit (tested and confirmed working), but not on Windows 32-bit unless you specify the /3GB swtich in BOOT.INI (untested)

mgpensar

Hi,

I was able to compile wxwidgets 2.8.11 with gcc-4.5.0, however, the minimal application crashes with 0xc00000005 error (app not properly initialized).
Windows XP professional service pack 3 on a Pentium 4 CPU 2.8GHz 1GB RAM.

Does anybody was able to get wx working with mingw gcc-4.5.0-1 release (2010-04-19 in source forge) ?
Should I try to use a version from the version control repository ? I do not see a 4.5.0-2 in the souceforge download site.

Any suggestion is very much welcome. Thanks !
Mau.

mgpensar at gmail.com

reckless

a few of us have uploaded versions of gcc-4.5.0 and binutils-0.20.1 with this fixed i have a version and loaden has one loadens is probably the easiest to get going with since mine uses a different runtime than mingw and relies on sysroots.


ptDev

Quote from: Loaden on August 02, 2010, 04:04:56 AM
4.5.1 released.
http://gcc.gnu.org/gcc-4.5/

From the change list:

Quote from: GCC4.5.1This is the list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 4.5.1 release. This list might not be complete (that is, it is possible that some PRs that have been fixed are not listed here).

All languages

GCC's new link-time optimizer (-flto) now also works on a few non-ELF targets:

Cygwin (*-cygwin*)
MinGW (*-mingw*)
Darwin on x86-64 (x86_64-apple-darwin*)
LTO is not enabled by default for these targets. To enable LTO, you should configure with the --enable-lto option.

nice :)

a14331990

#66
Successfully built (using my build of mingw gcc 4.5.0, gcc45-leo.7z, located at http://code.google.com/p/qp-gcc/downloads/list)
binutils 2.20.51.20100801
gcc 4.5.1
gdb-7.2.50.20100802
wxWidgets 2.8.10
boost 1.43
codeblocks r6435
on this afternoon. 8)
dll linking and LTO are all OK. :D
All patches utilized will be uploaded to somewhere soon.
Dear moderator of this forum, can I upload it here?  

MortenMacFly

Quote from: a14331990 on August 02, 2010, 05:23:27 PM
All patches utilized will be uploaded to somewhere soon.
Dear moderator of this forum, can I upload it here? 
If these are C::B patches, then yes. Otherwise: No. We don't have endless forums space you know. But you can surely use a filesharing homepage for this...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

reckless

also uploaded latest version on http://code.google.com/p/mingw-wine look for mingw-w32.exe (kgb self extracting archive. done due to site size limit issue).

will make a diff of my modifications to the mingw64 runtime (rather simple really just removes using mingw path/host/include and lib etc. and instead use gcc's include and lib paths).

binutils 2.20.51 from mingw.org includes the patches allready :)

gcc was patched with johns patches for tdm and the lto patch.

crt includes directx and ddk. note the ddk from mingw64 has some headers in other places than the ddk from mingw so you may have to doublecheck your code if you need the ddk.

skipped java in this build as its pretty broken atm on win32. left ada in as it might be handy and it works.

works very well so far :)

 

a14331990

#69
Quote from: MortenMacFly on August 02, 2010, 08:04:07 PM
Quote from: a14331990 on August 02, 2010, 05:23:27 PM
All patches utilized will be uploaded to somewhere soon.
Dear moderator of this forum, can I upload it here?  
If these are C::B patches, then yes. Otherwise: No. We don't have endless forums space you know. But you can surely use a filesharing homepage for this...
Thanks for reminding me.
   All patches have been already uploaded to qp-gcc's page and my page
http://code.google.com/p/qp-gcc/downloads/list
http://code.google.com/p/a1mingwgcc/downloads/list
Please help testing them.
    Binaries and Sources will also be uploaded to qp-gcc's page or my page soon
http://code.google.com/p/a1mingwgcc/
Best Regards.
a14331990 a.k.a Leo

Already uploaded 8)
http://code.google.com/p/a1mingwgcc/wiki/InstructionsForMinGWGCC451
http://code.google.com/p/a1mingwgcc/downloads/list
Please help testing them.

reckless

hmm spoke to soon wxwidgets cant be compiled as a monolithic dll again with 4.5.1 they changed the code so the patch to undo it can not be applied ouch.

looks like they tried to get smart about checking if inline was really needed commendable but its broken with wxwidgets  :lol:

stahta01

#71
What version of 7z was used on binutils-2.20.51.20100801-bin.7z? I could not unzip it.

From http://a1mingwgcc.googlecode.com/files/binutils-2.20.51.20100801-bin.7z

I was able to unzip gcc451-bin-leo.7z

Trying to download binutils a second time. Error-ed out the second time also.

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]

ollydbg

Quote from: stahta01 on August 08, 2010, 02:16:30 AM
What version of 7z was used on binutils-2.20.51.20100801-bin.7z? I could not unzip it.

From http://a1mingwgcc.googlecode.com/files/binutils-2.20.51.20100801-bin.7z

I was able to unzip gcc451-bin-leo.7z

Trying to download binutils a second time. Error-ed out the second time also.

Tim S.



Hi, I can unzip it correctly, I'm using 7-zip 9.15 beta version.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

a14331990

#73
Quote from: reckless on August 08, 2010, 12:32:55 AM
hmm spoke to soon wxwidgets cant be compiled as a monolithic dll again with 4.5.1 they changed the code so the patch to undo it can not be applied ouch.

looks like they tried to get smart about checking if inline was really needed commendable but its broken with wxwidgets  :lol:

The patch regarding "dllexport inline functions" issue is modified by me again.
You can download all patches applied in my build of MinGW GCC 4.5.1 at here:
http://code.google.com/p/a1mingwgcc/downloads/list
http://code.google.com/p/a1mingwgcc/downloads/detail?name=leo-current-patches%284.5.1%29.7z&can=2&q=
Note: If failed, please use the latest 7z beta to unzip.

a14331990

#74
If failed, please use the latest 7z beta to unzip.
Sorry for the inconvenience.
I'll mention this detail on my page.
Also repacked binutils using the stable 7z ( 7z 4.6.5).

Best Regards.
a14331990 a.ka. Leo