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

Bug 732820

Summary: media-libs/mesa-20.1.3: fails to build with gcc-11
Product: Gentoo Linux Reporter: lekto
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log
emerge --info

Description lekto 2020-07-16 04:27:47 UTC
Created attachment 649398 [details]
build.log

../mesa-20.1.3/src/compiler/glsl/ast_function.cpp: In function ‘ir_rvalue* emit_inline_record_constructor(const glsl_type*, exec_list*, exec_list*, void*)’:
../mesa-20.1.3/src/compiler/glsl/ast_function.cpp:1883:67: error: ‘this’ pointer null [-Werror=nonnull]
 1883 |       ir_rvalue *const rhs = ((ir_instruction *) node)->as_rvalue();
      |                                                                   ^
In file included from ../mesa-20.1.3/src/compiler/glsl/glsl_symbol_table.h:31,
                 from ../mesa-20.1.3/src/compiler/glsl/ast_function.cpp:24:
../mesa-20.1.3/src/compiler/glsl/ir.h:148:21: note: in a call to non-static member function ‘ir_rvalue* ir_instruction::as_rvalue()’
  148 |    class ir_##TYPE *as_##TYPE()                         \
      |                     ^~~
../mesa-20.1.3/src/compiler/glsl/ir.h:159:4: note: in expansion of macro ‘AS_BASE’
  159 |    AS_BASE(rvalue)
      |    ^~~~~~~
Comment 1 lekto 2020-07-16 04:28:21 UTC
Created attachment 649400 [details]
emerge --info
Comment 2 Matt Turner gentoo-dev 2020-07-30 20:17:27 UTC
gcc-11 isn't planned to be released for nearly another year. Please submit patches to upstream projects if you're interested in ensuring they're compatible when the time comes.