Summary: | app-text/ghostscript-gpl-10.0.0-r2 fails to compile (lto) ./obj/gconfig.h:442:1: error: type of ‘gs_nullpage_device’ does not match original declaration [-Werror=lto-type-mismatch] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kostadin Shishmanov <kostadinshishmanov> |
Component: | Current packages | Assignee: | Codec Project <codec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | printing |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.ghostscript.com/show_bug.cgi?id=701976 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | emerge --info and build.log compressed with xz |
Sounds like we need to filter-lto based on that bug you found upstream (thanks for spotting that) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f87b4fff4a298528282c1f56e856c8adf39762 commit 17f87b4fff4a298528282c1f56e856c8adf39762 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-09 21:21:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-09 21:26:57 +0000 app-text/ghostscript-gpl: filter LTO Unsupported upstream. Closes: https://bugs.gentoo.org/884841 Signed-off-by: Sam James <sam@gentoo.org> app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) Latest revbump has broken it again. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd5f2bec8ec26db219b647030c72d8c9c0381fe6 commit cd5f2bec8ec26db219b647030c72d8c9c0381fe6 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-18 07:09:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-18 07:09:52 +0000 app-text/ghostscript-gpl: drop 10.0.0-r4 Closes: https://bugs.gentoo.org/884841 Signed-off-by: Sam James <sam@gentoo.org> .../ghostscript-gpl-10.0.0-r4.ebuild | 187 --------------------- 1 file changed, 187 deletions(-) |
Created attachment 840991 [details] emerge --info and build.log compressed with xz app-text/ghostscript-gpl-10.0.0-r2 fails to compile with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing ./obj/gconfig.h:442:1: error: type of ‘gs_nullpage_device’ does not match original declaration [-Werror=lto-type-mismatch] 442 | device2_(gs_nullpage_device) | ^ ./base/gdevnfwd.c:1007:22: note: type ‘const struct gx_device_null’ should match type ‘const struct gx_device’ 1007 | const gx_device_null gs_nullpage_device = { | ^ ./base/gdevnfwd.c:1007:22: note: ‘gs_nullpage_device’ was previously declared here ./obj/gconfig.h:439:1: error: type of ‘gs_pdfocr8_device’ does not match original declaration [-Werror=lto-type-mismatch] 439 | device2_(gs_pdfocr8_device) | ^ There are a lot more errors, im just pasting two of them here.