Build failed when upgrading Sdk from 23.04 to 24.04

I am trying to update ParaView to use newer Sdk 5.15-24.08 from 5.15-23.08.

I simply change 5.15-23.08 to 5.15-24.08.

app-id: org.paraview.ParaView
runtime: org.kde.Sdk
sdk: org.kde.Sdk
runtime-version: 5.15-24.08
base: io.qt.qtwebengine.BaseApp
base-version: 5.15-24.08
rename-icon: paraview
command: paraview
modules:
  - name: Paraview
    buildsystem: cmake-ninja
    builddir: true
    config-opts:
      - -DCMAKE_VERBOSE_MAKEFILE=ON
    sources:
      - type: archive
        url: https://www.paraview.org/files/v5.13/ParaView-v5.13.1.tar.gz
        sha256: 2225de08ec3cb7ccf06519f7b7d488ba6cd1691a4d26608b003b077539d5ba16

I got this error.

-- Enabled modules: VTK(166), ParaView(43 + 3)
-- Configuring done (56.5s)
-- Generating done (4.8s)
-- Build files have been written to: /run/build/Paraview/_flatpak_build
[27/14500] Linking CXX shared library lib/libvtkdoubleconversion-pv5.13.so.5.13
FAILED: lib/libvtkdoubleconversion-pv5.13.so.5.13
: && /usr/bin/c++ -fPIC -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -greco
rd-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-
pointer -g -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,-lc,-L/app/lib,-Wl,-z,relro,-z,now,-Wl,--as-needed -Wl,--depende
ncy-file=VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/link.d -shared -Wl,-soname,libvtkdoubl
econversion-pv5.13.so.1 -o lib/libvtkdoubleconversion-pv5.13.so.5.13 VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles
/doubleconversion.dir/double-conversion/bignum.cc.o VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion
.dir/double-conversion/bignum-dtoa.cc.o VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/double-
conversion/cached-powers.cc.o VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/double-conversion
/diy-fp.cc.o VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/double-conversion/double-conversio
n.cc.o VTK/ThirdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/double-conversion/fast-dtoa.cc.o VTK/Thi
rdParty/doubleconversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/double-conversion/fixed-dtoa.cc.o VTK/ThirdParty/doubl
econversion/vtkdoubleconversion/CMakeFiles/doubleconversion.dir/double-conversion/strtod.cc.o -Wl,-rpath,::::::: && :
/usr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: unrecognized option '-Wl'
/usr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: use the --help option for usage informati
on
collect2: error: ld returned 1 exit status
[38/14500] Building CXX object VTK/Common/Core/CMakeFiles/CommonCore.dir/vtkGenericDataArray.cxx.o
ninja: build stopped: subcommand failed.
Error: module Paraview: Child process exited with code 1

Don’t know if the issue is in ParaView or the new Sdk.
Thanks in advance.

That’s probably this bug: Build fails with cmake 3.31 (#22797) · Issues · ParaView / ParaView · GitLab

You’ll need a workaround, e.g. from Arch Linux: PKGBUILD · main · Arch Linux / Packaging / Packages / paraview · GitLab

This topic was automatically closed after 4 days. New replies are no longer allowed.