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

> Could you report lua compile problem directly to lua project
> also? Is that problem somehow solved in system lua of your OS
> (assuming it ships with one)?

Has anybody been in contact with lua folks? This really should be fixed in
upstream and not only in our own copy (and over and over again every time we
update it)

I get similar error with clang on x86_64 Debian Wheezy with clang packet from
Sid (as there's not yet one in Wheezy). Full clang error output looks like:

  CC     ldebug.o
../../../../../src.patched/dependencies/lua-5.1/src/ldebug.c:620:21: error:
cast
      from 'char *' to 'TValue *' (aka 'struct lua_TValue *') increases
required
      alignment from 1 to 8 [-Werror,-Wcast-align]
    StkId errfunc = restorestack(L, L->errfunc);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
../../../../../src.patched/dependencies/lua-5.1/src/ldebug.c:21:
../../../../../src.patched/dependencies/lua-5.1/src/ldo.h:25:28: note:
instantiated from:
#define restorestack(L,n)       ((TValue *)((char *)L->stack + (n)))
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [ldebug.o] Error 1


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18481>

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


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

Reply via email to