Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: duncanka on February 12, 2006, 05:23:06 am

Title: Internal Compiler Error compiling SVN version
Post by: duncanka on February 12, 2006, 05:23:06 am
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:

Quote
Compiling: 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?
Title: Re: Internal Compiler Error compiling SVN version
Post by: 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 ?
Title: Re: Internal Compiler Error compiling SVN version
Post by: mandrav on February 12, 2006, 09:00:25 am
Have you tried a clean rebuild?
Title: Re: Internal Compiler Error compiling SVN version
Post by: tiwag on February 12, 2006, 09:10:37 am
is anyone actually using MinGW gcc 3.4.5 to build C::B ??

if so, please post your experiences with
Title: Re: Internal Compiler Error compiling SVN version
Post by: thomas on February 12, 2006, 12:56:15 pm
I use 3.4.5, and it works very well, except that it throws one or two extra warnings.
Title: Re: Internal Compiler Error compiling SVN version
Post by: duncanka on February 13, 2006, 03:04:58 am
Have you tried a clean rebuild?
Yes; it did not solve the problem.

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!
Title: Re: Internal Compiler Error compiling SVN version
Post by: 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?
Title: Re: Internal Compiler Error compiling SVN version
Post by: MortenMacFly on February 13, 2006, 08:20:05 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.
Title: Re: Internal Compiler Error compiling SVN version
Post by: thomas on February 13, 2006, 08:32:53 am
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
Title: Re: Internal Compiler Error compiling SVN version
Post by: tiwag on February 13, 2006, 09:30:08 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 !
Title: Re: Internal Compiler Error compiling SVN version
Post by: MortenMacFly on February 13, 2006, 09:43:48 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:
Title: Re: Internal Compiler Error compiling SVN version
Post by: Michael on February 13, 2006, 11:11:24 am
BTW: As of now there is also a new installer (MinGW 5.0.2).

Thanks for the useful info :).

Michael
Title: Re: Internal Compiler Error compiling SVN version
Post by: duncanka on February 13, 2006, 04:22:19 pm
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.