Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884841 - 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]
Summary: app-text/ghostscript-gpl-10.0.0-r2 fails to compile (lto) ./obj/gconfig.h:442...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-12-08 13:49 UTC by Kostadin Shishmanov
Modified: 2022-12-18 07:10 UTC (History)
1 user (show)

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


Attachments
emerge --info and build.log compressed with xz (build.log.xz,92.71 KB, application/x-xz)
2022-12-08 13:49 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2022-12-08 13:49:51 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-08 14:54:58 UTC
Sounds like we need to filter-lto based on that bug you found upstream (thanks for spotting that)
Comment 2 Larry the Git Cow gentoo-dev 2022-12-09 21:27:36 UTC
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(-)
Comment 3 Kostadin Shishmanov 2022-12-16 08:53:39 UTC
Latest revbump has broken it again.
Comment 4 Larry the Git Cow gentoo-dev 2022-12-18 07:10:09 UTC
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(-)