[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-11-27 Thread pepeto

Follow-up Comment #15, bug #15410 (project freeciv):

Is this problem persistent?


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-13 Thread pepeto

Follow-up Comment #9, bug #15410 (project freeciv):

Maybe could you indicate what doesn't compile on trunk?


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-13 Thread Jordi Negrevernis i Font

Follow-up Comment #10, bug #15410 (project freeciv):

 gcc -DHAVE_CONFIG_H -I. -I.. -I../utility -I./aicore
-DLOCALEDIR=\/usr/local/share/locale\
-DDEFAULT_DATA_PATH=\.:data:~/.freeciv/dev:/usr/local/share/freeciv\
-DDEFAULT_SAVES_PATH=\\
-DDEFAULT_SCENARIO_PATH=\.:data/scenario:~/.freeciv/scenarios:/usr/local/share/freeciv/scenario\
-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Werror -g -O2 -MT team.lo -MD -MP -MF .deps/team.Tpo -c team.c -o team.o
cc1: warnings being treated as errors
team.c: En la función ‘team_slot_rule_name’:
team.c:239: aviso: el paso del argumento 1 de
‘team_slot_create_default_name’ descarta los calificadores del tipo del
destino del puntero
make[4]: *** [team.lo] Error 1
make[4]: se sale del directorio `/home/jorneg/freeciv/trunk/freeciv/common'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio `/home/jorneg/freeciv/trunk/freeciv/common'
make[2]: *** [all] Error 2
make[2]: se sale del directorio `/home/jorneg/freeciv/trunk/freeciv/common'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/jorneg/freeciv/trunk/freeciv'
make: *** [all] Error 2
jor...@ubuntu:~/freeciv/trunk/freeciv$ 

Which means aprox: warning: passing argument 1 of
'team_slot_create_default_name' discards qualifiers from pointer target type


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-13 Thread pepeto

Follow-up Comment #11, bug #15410 (project freeciv):

That's precisely why there is a cast there... Dunno what's wrong there. Can
you try to add a cast to _(void *)_ before _tslot_? And run _LANG=C make_?


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-13 Thread Jordi Negrevernis i Font

Follow-up Comment #12, bug #15410 (project freeciv):

This seams like a bug of gcc...

I can only compile when i remove the const of the argument in the declaration
of the function.


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-13 Thread pepeto

Follow-up Comment #13, bug #15410 (project freeciv):

And what happen if you cast to _(void *)_?


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-13 Thread Jordi Negrevernis i Font

Follow-up Comment #14, bug #15410 (project freeciv):

It throws the same error...


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-12 Thread pepeto

Update of bug #15410 (project freeciv):

  Status:  Ready For Test = Need Info  

___

Follow-up Comment #7:

Does it still happen to you? If yes, in what branch (S2_2, trunk)?


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-09-12 Thread Jordi Negrevernis i Font

Follow-up Comment #8, bug #15410 (project freeciv):

S2_2 compiles ok. Trunk does not, but is for another reason.

You can close the item.

Thanks


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes and GCC 4.2.4

2010-03-28 Thread Jacob Nevins

Update of bug #15410 (project freeciv):

 Summary: Freeciv does not compile with --enable-debug=yes =
Freeciv does not compile with --enable-debug=yes and GCC 4.2.4


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes

2010-02-19 Thread Marko Lindqvist

Follow-up Comment #6, bug #15410 (project freeciv):

 I'd expect more warnings from a newer version, not fewer.

Often yes, but sometimes warning situation detection gets more fine grained
and warning is no longer outputted for completely safe constructs.
I have not checked if it's the case here. Anyway, dereferencing type-punned
pointer will break strict-aliasing rules happens far more with older gcc
versions (I notice it often when cross-compiling to windows, MinGW version of
gcc is 4.2.1) than newer.

___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes

2010-02-18 Thread pepeto

Follow-up Comment #3, bug #15410 (project freeciv):

This is quite annoying, what gcc version do you use?  Does anybody has
another solution to fix that problem?


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes

2010-02-18 Thread Jordi Negrevernis i Font

Follow-up Comment #4, bug #15410 (project freeciv):


jor...@ubuntu:~$ gcc --version
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
Copyright (C) 2007 Free Software Foundation, Inc.
Esto es software libre; vea el código para las condiciones de copia.  NO
hay
garantía; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROPÓSITO
EN
PARTICULAR


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes

2010-02-18 Thread Jacob Nevins

Follow-up Comment #5, bug #15410 (project freeciv):

Strange, I can't reproduce on Ubuntu Jaunty (9.04), which has a later version
of GCC (4.3.3-5ubuntu4). I'd expect more warnings from a newer version, not
fewer.

___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes

2010-02-17 Thread Jordi Negrevernis i Font

URL:
  http://gna.org/bugs/?15410

 Summary: Freeciv does not compile with --enable-debug=yes
 Project: Freeciv
Submitted by: jorneg
Submitted on: Thursday 02/18/10 at 00:07
Category: general
Severity: 2 - Minor
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: GNU/Linux
 Planned Release: 

___

Details:

mv -f .deps/sanitycheck.Tpo .deps/sanitycheck.Plo
/bin/bash ../libtool --preserve-dup-deps --tag=CC   --mode=compile gcc
-DHAVE_CONFIG_H -I. -I..  -I../utility -I./../common -I./../ai
-I../common/aicore -I./generator -I./scripting   
-DLOCALEDIR=\/usr/local/share/locale\
-DDEFAULT_DATA_PATH=\.:data:~/.freeciv:/usr/local/share/freeciv\  -Wall
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Werror -g -O2 -MT savegame.lo -MD -MP -MF .deps/savegame.Tpo -c -o
savegame.lo savegame.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I../utility -I./../common -I./../ai
-I../common/aicore -I./generator -I./scripting
-DLOCALEDIR=\/usr/local/share/locale\
-DDEFAULT_DATA_PATH=\.:data:~/.freeciv:/usr/local/share/freeciv\ -Wall
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Werror -g -O2 -MT savegame.lo -MD -MP -MF .deps/savegame.Tpo -c savegame.c
-o savegame.o
cc1: warnings being treated as errors
savegame.c: En la función ‘game_load_internal’:
savegame.c:4310: aviso: la dereferencia de punteros de tipo castigado
romperá las reglas de alias estricto
make[3]: *** [savegame.lo] Error 1
make[3]: se sale del directorio
`/home/jorneg/freeciv/S2_2/freeciv-2.2/server'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio
`/home/jorneg/freeciv/S2_2/freeciv-2.2/server'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/jorneg/freeciv/S2_2/freeciv-2.2'
make: *** [all] Error 2
jor...@ubuntu:~/freeciv/S2_2/freeciv-2.2$ 

When you try to compile with --enable-debug=yes the last S2_2 branch appears
and error...

The error is aprox: the dereference of casted pointer types would break the
strict alias rule...





___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #15410] Freeciv does not compile with --enable-debug=yes

2010-02-17 Thread pepeto

Update of bug #15410 (project freeciv):

  Status:None = Ready For Test 

___

Follow-up Comment #1:

The error is: dereferencing type-punned pointer will break strict-aliasing
rules; I don't get it personally.

Patches attached, could you test it?


(file #8158, file #8159)
___

Additional Item Attachment:

File name: trunk_savegame_compile_fix.diff Size:0 KB
File name: S2_2_savegame_compile_fix.diff Size:0 KB


___

Reply to this item at:

  http://gna.org/bugs/?15410

___
  Message posté via/par Gna!
  http://gna.org/


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