Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834086 - media-video/aegisub-3.2.2_p20160518-r102 with luajit-2.1.0: vendor/luabins/src/luabins.c:57:30: error: array type has incomplete element type ‘struct luaL_reg’
Summary: media-video/aegisub-3.2.2_p20160518-r102 with luajit-2.1.0: vendor/luabins/sr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nick Sarnie
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-26 13:41 UTC by Kobboi
Modified: 2022-03-05 14:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tmp.rDbR9zEo9v (tmp.rDbR9zEo9v,12.06 KB, application/octet-stream)
2022-02-26 13:42 UTC, Kobboi
Details
tmp.gaNKz5q1CD (tmp.gaNKz5q1CD,8.00 KB, application/octet-stream)
2022-02-26 13:42 UTC, Kobboi
Details
Patch fixing the problem (aegisub-3.2.2_p20160518-luaL_Reg-not-luaL_reg.patch,996 bytes, patch)
2022-03-05 07:25 UTC, Petr Zima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-26 13:41:55 UTC
x86_64-pc-linux-gnu-gcc -MMD -MP -DNDEBUG -I/usr/include/luajit-2.1  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wextra -Wno-unused-parameter -std=gnu99 -Wno-unused-local-typedefs  -c -o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/save.o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/save.c
x86_64-pc-linux-gnu-gcc -MMD -MP -DNDEBUG -I/usr/include/luajit-2.1  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wextra -Wno-unused-parameter -std=gnu99 -Wno-unused-local-typedefs  -c -o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/savebuffer.o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/savebuffer.c
x86_64-pc-linux-gnu-gcc -MMD -MP -DNDEBUG -I/usr/include/luajit-2.1  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wextra -Wno-unused-parameter -std=gnu99 -Wno-unused-local-typedefs  -c -o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/write.o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/write.c
x86_64-pc-linux-gnu-g++ -MMD -MP -DNDEBUG -I/var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/ -I/var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/libaegisub/include  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -std=c++11 -Wno-unused-local-typedefs  -include acconf.h  -c -o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/tools/repack-thes-dict.o /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/tools/repack-thes-dict.cpp
/var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/luabins.c:57:30: error: array type has incomplete element type ‘struct luaL_reg’
   57 | static const struct luaL_reg R[] =
      |                              ^
/var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/luabins.c:57:30: warning: ‘R’ defined but not used [-Wunused-variable]
make: *** [Makefile.target:99: /var/tmp/portage/media-video/aegisub-3.2.2_p20160518-r102/work/aegisub-3.2.2_p20160518/vendor/luabins/src/luabins.o] Error 1
make: *** Waiting for unfinished jobs....


Reproducible: Always
Comment 1 Kobboi 2022-02-26 13:42:33 UTC
Created attachment 765881 [details]
tmp.rDbR9zEo9v

build.log.gz
Comment 2 Kobboi 2022-02-26 13:42:43 UTC
Created attachment 765882 [details]
tmp.gaNKz5q1CD

emerge-info.txt
Comment 3 Kobboi 2022-02-26 13:45:13 UTC
Compiled fine Feb 09.
Comment 4 Kobboi 2022-02-26 13:48:01 UTC
Compiles fine with luajit-2.0.5-r3
Does not compile with luajit-2.1.0_beta3_p20220127-r1
Comment 5 Kobboi 2022-02-26 14:09:21 UTC
(Sorry for messing up the attachments)
Comment 6 Jonas Stein gentoo-dev 2022-02-26 23:19:25 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. This includes
* the complete build.log as attachment and
* a paste of the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-26 23:28:54 UTC
(In reply to Jonas Stein from comment #6)
> Thank you for the report. We need to have all information at hand before
> ticket assignment. This includes
What's missing?
Comment 8 Petr Zima 2022-03-05 07:25:52 UTC
Created attachment 766268 [details, diff]
Patch fixing the problem

Confirming, same here. The attached patch fixes it, see:

https://github.com/Aegisub/Aegisub/issues/182
https://github.com/bmwiedemann/openSUSE/commit/546e711ad833ee5ea04e4325cdee2b6b8f0ff22d
Comment 9 Larry the Git Cow gentoo-dev 2022-03-05 14:32:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f943cce85e79f7cf011979d40a17444aa68e0450

commit f943cce85e79f7cf011979d40a17444aa68e0450
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2022-03-05 14:31:27 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2022-03-05 14:31:27 +0000

    media-video/aegisub: Fix build
    
    Closes: https://bugs.gentoo.org/834086
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 .../aegisub/aegisub-3.2.2_p20160518-r103.ebuild    | 159 +++++++++++++++++++++
 ...sub-3.2.2_p20160518-luaL_Reg-not-luaL_reg.patch |  35 +++++
 2 files changed, 194 insertions(+)