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

Internal Compiler Error compiling SVN version

Started by duncanka, February 12, 2006, 05:23:06 AM

Previous topic - Next topic

duncanka

For several days, I've been unable to compile the SVN version of CodeBlocks.  I'm using MinGW 3.4.5.  After precompiling the SDK headers, I get the following error messages:

QuoteCompiling: src\appglobals.cpp
internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:131: MapViewOfFileEx: Attempt to access invalid address.
src\appglobals.cpp:1: fatal error: had to relocate PCH
compilation terminated.
This seems to be occurring in all the targets that use the precompiled SDK headers.
Suggestions, anyone?

tiwag

can you please test, if it works for you when using the MinGW gcc 3.4.4 ?

mandrav

Be patient!
This bug will be fixed soon...

tiwag

is anyone actually using MinGW gcc 3.4.5 to build C::B ??

if so, please post your experiences with

thomas

I use 3.4.5, and it works very well, except that it throws one or two extra warnings.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

duncanka

Quote from: mandrav on February 12, 2006, 09:00:25 AM
Have you tried a clean rebuild?
Yes; it did not solve the problem.

Quote from: tiwag on February 12, 2006, 08:17:17 AM
can you please test, if it works for you when using the MinGW gcc 3.4.4 ?
Well, lo and behold, it does indeed!  Strange...  Anyway, it is working now that I downgraded, and that's the important thing.  Thanks!

Ceniza

I got that problem trying to build Code::Blocks under Linux once but I'mn't sure yet if it has to do directly with RAM, HDD space or both (I gave it too few resources to that virtual machine).

If you try again with 3.4.5 could you share how many MiB of RAM it used before failing, and of course how many RAM you have?

MortenMacFly

Quote from: tiwag on February 12, 2006, 09:10:37 AM
is anyone actually using MinGW gcc 3.4.5 to build C::B ??
I am using it, too (the second release as of "20060117-1") and it works very well here, too.
Please notice that there was a second 3.4.5 relase shortly after the first one which might fix some bugs we are talking about here...?!
Morten.
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]

thomas

as :  72 kB - 4.3 MB  (mostly around 3 MB)
mingw-gcc+ : 1.5-2.5 MB
cc1plus :  5.2-226 MB (mostly around 60-80 MB)
ld :  46-296 MB
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

tiwag

Quote from: MortenMacFly on February 13, 2006, 08:20:05 AM
Please notice that there was a second 3.4.5 relase shortly after the first one which might fix some bugs ...

crazy, that they didn't change the version number - at least a suffix would have been nice in order to avoid confusion !

MortenMacFly

Quote from: tiwag on February 13, 2006, 09:30:08 AM
at least a suffix would have been nice in order to avoid confusion !
FYI: The suffix (the date) has changed.
BTW: As of now there is also a new installer (MinGW 5.0.2).
Morten.
...sorry for becoming slightly off-topic. :oops:
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]

Michael

Quote from: MortenMacFly on February 13, 2006, 09:43:48 AM
BTW: As of now there is also a new installer (MinGW 5.0.2).

Thanks for the useful info :).

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

duncanka

Quote from: Ceniza on February 13, 2006, 05:36:10 AM
I got that problem trying to build Code::Blocks under Linux once but I'mn't sure yet if it has to do directly with RAM, HDD space or both (I gave it too few resources to that virtual machine).

If you try again with 3.4.5 could you share how many MiB of RAM it used before failing, and of course how many RAM you have?
I have not tried again with 3.4.5, but I doubt that these were the problem - I have 768 MB of RAM and over 4 GB free on my hard drive.  Unfortunately, I'm using Windows 98, so I won't be able to see by-process memory information, even if I use 3.4.5 again.  I do seem to remember that even in mid-compile and with Firefox open, I still had 36% of my RAM free.