Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 767769

Summary: media-gfx/inkscape-1.0.2 fails to build with gcc-11
Product: Gentoo Linux Reporter: Geoff Leach <gl>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal CC: dilfridge, gentoo, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build log

Description Geoff Leach 2021-01-28 15:35:37 UTC
Created attachment 684981 [details]
build log

inkscape-1.0.2 fails to build with gcc-11

/var/tmp/portage/media-gfx/inkscape-1.0.2/work/inkscape-1.0.2_2021-01-15_e86c870
879/src/extension/system.cpp:177:78: error: ‘this’ pointer null [-Werror=nonnull
]
  177 |             gchar const *ext = dynamic_cast<Input *>(in_plug)->get_exten
sion();
      |                                                                         
     ^

I've tried setting -Wno-error=nonnull in CXXFLAGS and even though that option shows up in the compilation line still get an error rather than warning.

With clang-11 compiles and runs ok - just simple test of drawing a line.
Comment 1 Geoff Leach 2021-01-29 02:47:43 UTC
*** Bug 760114 has been marked as a duplicate of this bug. ***
Comment 3 Kobboi 2021-02-10 19:22:06 UTC
(In reply to Geoff Leach from comment #2)
> Fixed upstream
> 
> https://gitlab.com/speleo3/inkscape/-/commit/
> 7c1b8a1587b9c3b473a01b7fe7908102a251899d

Confirmed: the current 9999 ebuild does not exhibit this issue.
Comment 4 Geoff Leach 2021-03-11 00:04:38 UTC
fixed upstream and patch included in inkscape-1.0.2-r1