Summary: | dev-lua/luaexpat-1.2.0-r1 with =dev-lang/lua-5.2*: src/lxplib.c:520:30: error: array type has incomplete element type | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Isaac ‘Will It Work’ Dansicker <isidansick> |
Component: | [OLD] Development | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex_y_xu, esigra, shuber |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 407091 | ||
Attachments: |
build.log
emerge --info The patch from the luaexpat repository |
Created attachment 367876 [details]
emerge --info
Please note using Hardened kernel with grsecurity disabled, and LTO and graphite disabled on package as well.
Please try again using reasonable CFLAGS. https://wiki.gentoo.org/wiki/Safe_CFLAGS Never mind, I can't read. This may be an upstream issue? This is fixed in the upstream repository. Unfortunately there's no release yet containing the fix. Created attachment 371142 [details] The patch from the luaexpat repository This is the patch from commit e981a82571cf of http://code.matthewwild.co.uk/lua-expat/rev/e981a82571cf, which fixes the failing compilation against lua-5.2. In the meanwhile, you can place it into /etc/portage/package.patches/dev-lua/luaexpat/, assuming you have set up package.patches accordingly. Version 1.3.3 builds fine against both 5.2 and 5.3. |
Created attachment 367874 [details] build.log Attempting to emerge luaexpat, starts to compile, fails on first object: src/lxplib.c:520:30: error: array type has incomplete element type static const struct luaL_reg lxp_meths[] = { ^ src/lxplib.c:533:30: error: array type has incomplete element type static const struct luaL_reg lxp_funcs[] = { ^ <builtin>: recipe for target 'src/lxplib.o' failed make: *** [src/lxplib.o] Error 1 emerge -pqv '=dev-lua/luaexpat-1.2.0-r1::gentoo' gives: [ebuild N ] dev-lua/luaexpat-1.2.0-r1