Compiling error gcc-3.4.3
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Compiling error gcc-3.4.3
I'm getting a internal error compiling 0.8.7 with gcc-3.4.3, no useful error messages. Gentoo-sources 2.6.9. If I use portage it shows the error messages (something like internal error I'm not at home right now) but if I go into wesnoth/src and run make, gcc takes all CPU and most RAM and it took several minutes to exit X with ctrl+alt+backspace. I have tried lowering the optimation flags without any difference. It's a brand new ~x86 gentoo system.
Could it be wesnoth, portage, gcc or something else?
Could it be wesnoth, portage, gcc or something else?
Re: Compiling error gcc-3.4.3
If it's an internal compiler error, it's GCC. I don't know how modified Gentoo's GCC is; but if it is not, you should report this bug to the GCC project.KK_r wrote:internal error [...] Could it be wesnoth, portage, gcc or something else?
http://gcc.gnu.org/bugs.html
Though, if you have less than 256MB memory and are compiling with optimization, it may be a memory shortage.
-
- Posts: 79
- Joined: February 6th, 2004, 12:41 pm
- Location: Warszawa, Polska
I compiled 0.8.7 with GCC 3.4.2 and also had some error. I found it was because of -O3 optimization and only with one file (IIRC multiplayer.cpp, but it's easy to find out - just check at which file it errors ).
Maybe You have similar case?
I compiled just that one file without optimization, and rest of the sources with -O3.
Maybe You have similar case?
I compiled just that one file without optimization, and rest of the sources with -O3.
With gcc-3.4.2, I used with no ill effects. This does use so optimisation is disabled.
Code: Select all
./configure --localstatedir=/var --prefix=/usr --sysconfdir=/etc --enable-debug --enable-lite --enable-editor --enable-tools
Code: Select all
-O0
was it the same error? gcc stealing all computer power?ahwayakchih wrote:I compiled 0.8.7 with GCC 3.4.2 and also had some error. I found it was because of -O3 optimization and only with one file (IIRC multiplayer.cpp, but it's easy to find out - just check at which file it errors ).
Maybe You have similar case?
I compiled just that one file without optimization, and rest of the sources with -O3.
-
- Posts: 79
- Joined: February 6th, 2004, 12:41 pm
- Location: Warszawa, Polska
-
- Posts: 79
- Joined: February 6th, 2004, 12:41 pm
- Location: Warszawa, Polska
Wesnoth 0.8.8 the same
I compiled Wesnoth 0.8.8 using GCC 3.4.3. It also had problem with multiplayer.cpp and ICEd (internal compiler error). I tried compiling just that one file with different -O levels and it looks like -O1 works, but -O2 and -O3 throw ICE.KK_r wrote:couldn't get it to work with 3.4.2 but with 3.4.3 it works. Without optimzation though...
So i used -O1 for that one file only, and compiled rest with -O3. All seems to work fine
-
- Posts: 79
- Joined: February 6th, 2004, 12:41 pm
- Location: Warszawa, Polska
Strange, it stopped on multiplayer.cpp here. Ai.cpp was ok IIRC.KK_r wrote:same problem with 0.8.9 but it stops at ai.cpp
anyone know why this happens to wesnoth 'cause I havn't got any problems like this with any other app I've compiled. How do you get some useful information out of gcc?
As for useful information read GCC's how to report bugs. Though it will not give much information useful to common user/developer . But maybe if many people send reports they'll fix that (unless it's Wesnoth's code bug, which would be strange since it's only happening when compiling with more optimizations than -01).
-
- Posts: 79
- Joined: February 6th, 2004, 12:41 pm
- Location: Warszawa, Polska
0.8.11 builds fine on BeOS!
Just wanted to report 0.8.11 builds fine on BeOS .