#1142772 python-ocp: FTBFS on loong64: -- Check for working CXX compiler: /usr/bin/clang++ - broken

Package:
src:python-ocp
Source:
src:python-ocp
Submitter:
Sebastian Ramacher
Date:
2026-08-04 14:01:02 UTC
Severity:
normal
Tags:
#1142772#5
Date:
2026-07-25 13:55:12 UTC
From:
To:
Dear maintainer,

python-ocp FTBFS on loong64:

dh_auto_configure -- -DN_PROC=$(nproc)
	cd obj-loongarch64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=loongarch64-linux-gnu-pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang\+\+ -DPKG_CONFIG_EXECUTABLE=/usr/bin/loongarch64-linux-gnu-pkg-config -DPKGCONFIG_EXECUTABLE=/usr/bin/loongarch64-linux-gnu-pkg-config -DCMAKE_INSTALL_LIBDIR=lib/loongarch64-linux-gnu -DN_PROC=8 ..
-- The C compiler identification is Clang 21.1.8
-- The CXX compiler identification is Clang 21.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ - broken
CMake Error at /usr/share/cmake-4.3/Modules/CMakeTestCXXCompiler.cmake:73 (message):
  The C++ compiler

    "/usr/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1/obj-loongarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-1XlqjE'

    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_f5355/fast
    gmake[2]: Entering directory '/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1/obj-loongarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-1XlqjE'
    /usr/bin/gmake  -f CMakeFiles/cmTC_f5355.dir/build.make CMakeFiles/cmTC_f5355.dir/build
    gmake[3]: Entering directory '/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1/obj-loongarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-1XlqjE'
    Building CXX object CMakeFiles/cmTC_f5355.dir/testCXXCompiler.cxx.o
    /usr/bin/clang++   -g -O2 -ffile-prefix-map=/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -MD -MT CMakeFiles/cmTC_f5355.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_f5355.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_f5355.dir/testCXXCompiler.cxx.o -c "/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1/obj-loongarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-1XlqjE/testCXXCompiler.cxx"
    Linking CXX executable cmTC_f5355
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5355.dir/link.txt --verbose=1
    /usr/bin/loongarch64-linux-gnu-ld.bfd: cannot find -lstdc++: No such file or directory
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    /usr/bin/clang++ -g -O2 -ffile-prefix-map=/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Wl,-z,relro  CMakeFiles/cmTC_f5355.dir/testCXXCompiler.cxx.o -o cmTC_f5355
    gmake[3]: *** [CMakeFiles/cmTC_f5355.dir/build.make:103: cmTC_f5355] Error 1
    gmake[3]: Leaving directory '/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1/obj-loongarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-1XlqjE'
    gmake[2]: *** [Makefile:134: cmTC_f5355/fast] Error 2
    gmake[2]: Leaving directory '/build/reproducible-path/python-ocp-7.9.3.1+~cs7.9.3.1/obj-loongarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-1XlqjE'





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)