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

Bug 760117

Summary: >=sys-devel/gcc-11: internal compiler error: during GIMPLE pass: wrestrict on media-video/vlc-3.0.11.1
Product: Gentoo Linux Reporter: Geoff Leach <gl>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=760114
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    

Description Geoff Leach 2020-12-16 07:27:58 UTC
I'm finding building vlc-3.0.11.1 with gcc-11 failing


> vlc-3.0.11.1 % gcc --version 
gcc (Gentoo 11.0.0_pre9999 p4, commit 8e59ff5541889817a160afda130bcbcdb70c4b90) 11.0.0 20201128 (experimental)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


From build log

during GIMPLE pass: wrestrict
video_chroma/copy.c: In function ‘CopyFromUswc’:
video_chroma/copy.c:141:13: internal compiler error: Segmentation fault
  141 | static void CopyFromUswc(uint8_t *dst, size_t dst_pitch,
      |             ^~~~~~~~~~~~
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-16 07:31:28 UTC
Please include the info from the wiki page I linked you if possible. There’s a lot but it’s needed.
Comment 2 Geoff Leach 2020-12-16 07:36:12 UTC
Yes, I've looked at that page before, and blanched :), but might be time to step it up!
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-16 07:41:50 UTC
Reproduced locally. I'll extract smaller example and attach to https://gcc.gnu.org/PR97750.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-16 08:59:11 UTC
(In reply to Sam James from comment #1)
> Please include the info from the wiki page I linked you if possible. There’s
> a lot but it’s needed.

Added as https://gcc.gnu.org/PR97750#c3
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-17 16:37:57 UTC
gcc was fixed upstream with https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=c25b504636fec7bf8f181a84af83a52757ba7e89

We'll also need to refresh gcc patchset to avoid patches conflicts.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-17 17:28:01 UTC
(In reply to Sergei Trofimovich from comment #5)
> We'll also need to refresh gcc patchset to avoid patches conflicts.

Should be sorted by https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=badb26541f1acfca59f4dab726694d41fa819c56