Re: [Freeciv-Dev] building a city always loses connection with server

2009-01-14 Thread Madeline Book
On 1/14/09, Dominique Leuenberger  wrote:
 On 1/14/2009 at  4:41 PM, "Marko Lindqvist"  wrote:
>> 2009/1/14 Dominique Leuenberger :
>>> Good day everybody,
>>>
>>> I'm part of the team building RPMs for openSUSE. Today we got a report
>>> from
>> a user of freeciv that, whenever he creates a city in online mode, his
>>> client disconnects.
>>
>>  Which version of gcc? There used to be problem just like this caused
>> by gcc 4.2.1 & 4.2.2 miscompilation when optimization level -O2 is
>> used. Even if you are using 4.3.x gcc, you may want to test with lower
>> optimization level.
>>
>>  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33381
>
> Thank you very much for the reply.
> The user reported it against openSUSE 11.1, which means it is compiled with
> gcc 4.3

This was reported before; for even more information see our ticket:
http://bugs.freeciv.org/Ticket/Display.html?id=40610

Stock gcc 4.3 compiles freeciv fine even with -O2 (at least that is true on
my system). I suspect that certain distros have added patches to their
gcc which are now causing certain code to be miscompiled. -O1 fixes it,
but it is possible that disabling just the optimizations caused by the custom
patches would also fix the problem.


---
小さな手落ち、大きな結果。

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] building a city always loses connection with server

2009-01-14 Thread Dominique Leuenberger
>>> On 1/14/2009 at  4:41 PM, "Marko Lindqvist"  wrote: 
> 2009/1/14 Dominique Leuenberger :
>> Good day everybody,
>>
>> I'm part of the team building RPMs for openSUSE. Today we got a report from 
> a user of freeciv that, whenever he creates a city in online mode, his
>> client disconnects.
> 
>  Which version of gcc? There used to be problem just like this caused
> by gcc 4.2.1 & 4.2.2 miscompilation when optimization level -O2 is
> used. Even if you are using 4.3.x gcc, you may want to test with lower
> optimization level.
> 
>  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33381

Thank you very much for the reply.
The user reported it against openSUSE 11.1, which means it is compiled with gcc 
4.3

CFLAGS is set to 

CFLAGS='-march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall 
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables 
-fasynchronous-unwind-tables
-fno-strict-aliasing'

What Optimization would you recommend? -O1 or -O0? 

Then: is it fine with you if I copy your reply in our bugzilla tracking system? 

Dominique

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] building a city always loses connection with server

2009-01-14 Thread Marko Lindqvist
2009/1/14 Dominique Leuenberger:
>
> What Optimization would you recommend? -O1 or -O0?

 - O1 should be low enough.

> Then: is it fine with you if I copy your reply in our bugzilla tracking 
> system?

 Sure


 - ML

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] building a city always loses connection with server

2009-01-14 Thread Marko Lindqvist
2009/1/14 Dominique Leuenberger :
> Good day everybody,
>
> I'm part of the team building RPMs for openSUSE. Today we got a report from a 
> user of freeciv that, whenever he creates a city in online mode, his
> client disconnects.

 Which version of gcc? There used to be problem just like this caused
by gcc 4.2.1 & 4.2.2 miscompilation when optimization level -O2 is
used. Even if you are using 4.3.x gcc, you may want to test with lower
optimization level.

 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33381


 - ML

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev