Bug 2252525 - libplacebo-6.292.1-1.fc39.src.rpm rebuild fails
Summary: libplacebo-6.292.1-1.fc39.src.rpm rebuild fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libplacebo
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nicolas Chauvet (kwizart)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-02 07:17 UTC by Joseph D. Wagner
Modified: 2023-12-07 02:08 UTC (History)
1 user (show)

Fixed In Version: libplacebo-6.292.1-5.fc39
Clone Of:
Environment:
Last Closed: 2023-12-07 02:08:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joseph D. Wagner 2023-12-02 07:17:18 UTC
Attempting to rebuild with:
# rpmbuild --rebuild "libplacebo-6.292.1-1.fc39.src.rpm"

returns an error from the compiler (see below).

Possible missing build dependencies?

Reproducible: Always

Steps to Reproduce:
1. rpmbuild --rebuild "libplacebo-6.292.1-1.fc39.src.rpm"
Actual Results:  
FAILED: src/libplacebo.so.292.p/glsl_glslang.cc.o
g++ -Isrc/libplacebo.so.292.p -Isrc -I../src -Isrc/include -I../src/include -Isrc/opengl/include -I../src/opengl/include -Isrc/vulkan -Isrc/opengl/include/glad -fvisibility=hidden -fdi
agnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-s
ecurity -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-an
nobin-cc1 -m64 -march=znver2 -mtune=znver2 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -pthread -DP
L_HAVE_PTHREAD -DPTHREAD_HAS_SETCLOCK -MD -MQ src/libplacebo.so.292.p/glsl_glslang.cc.o -MF src/libplacebo.so.292.p/glsl_glslang.cc.o.d -o src/libplacebo.so.292.p/glsl_glslang.cc.o -c
../src/glsl/glslang.cc
In file included from /usr/include/glslang/Include/Types.h:47,
                 from /usr/include/glslang/Include/intermediate.h:57,
                 from /usr/include/glslang/MachineIndependent/localintermediate.h:42,
                 from /usr/include/glslang/SPIRV/SpvTools.h:50,
                 from /usr/include/glslang/SPIRV/GlslangToSpv.h:42,
                 from ../src/glsl/glslang.cc:28:
/usr/include/glslang/Include/SpirvIntrinsics.h:120:10: error: ‘variant’ in namespace ‘std’ does not name a template type
  120 |     std::variant<const TIntermConstantUnion*, const TType*> value;
      |          ^~~~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h:120:5: note: ‘std::variant’ is only available from C++17 onwards
  120 |     std::variant<const TIntermConstantUnion*, const TType*> value;
      |     ^~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In constructor ‘glslang::TSpirvTypeParameter::TSpirvTypeParameter(const glslang::TIntermConstantUnion*)’:
/usr/include/glslang/Include/SpirvIntrinsics.h:100:60: error: ‘value’ was not declared in this scope
  100 |     TSpirvTypeParameter(const TIntermConstantUnion* arg) { value = arg; }
      |                                                            ^~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In constructor ‘glslang::TSpirvTypeParameter::TSpirvTypeParameter(const glslang::TType*)’:
/usr/include/glslang/Include/SpirvIntrinsics.h:101:45: error: ‘value’ was not declared in this scope
  101 |     TSpirvTypeParameter(const TType* arg) { value = arg; }
      |                                             ^~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In member function ‘const glslang::TIntermConstantUnion* glslang::TSpirvTypeParameter::getAsConstant() const’:
/usr/include/glslang/Include/SpirvIntrinsics.h:105:13: error: ‘value’ was not declared in this scope
  105 |         if (value.index() == 0)
      |             ^~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In member function ‘const glslang::TType* glslang::TSpirvTypeParameter::getAsType() const’:
/usr/include/glslang/Include/SpirvIntrinsics.h:111:13: error: ‘value’ was not declared in this scope
  111 |         if (value.index() == 1)
      |             ^~~~~
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/joseph/rpmbuild/BUILD/libplacebo-6.292.1/redhat-linux-build -j 12 -v
error: Bad exit status from /var/tmp/rpm-tmp.vEfAJL (%build)


Expected Results:  
Successful rebuilt package.

Comment 1 Nicolas Chauvet (kwizart) 2023-12-02 10:18:14 UTC
Seems like the case, problably because of the glslang update from 11.9.0 to 13.1.1 that occurred recently.

Why do you need to rebuild libplacebo? is there any missing feature or bug that you are experiencing beyound this FTBFS issue ?

Comment 2 Fedora Update System 2023-12-02 10:59:06 UTC
FEDORA-2023-e278c5d101 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e278c5d101

Comment 3 Joseph D. Wagner 2023-12-02 22:31:00 UTC
> Why do you need to rebuild libplacebo?

I am experimenting with, and benchmarking, compiler optimizations for my specific platform.

Thanks for getting on this so quickly.

Comment 4 Fedora Update System 2023-12-03 02:44:57 UTC
FEDORA-2023-e278c5d101 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-e278c5d101`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e278c5d101

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-12-07 02:08:21 UTC
FEDORA-2023-e278c5d101 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.