#1120438 rocfft: FTBFS on ppc64el: clang++-21: error: unable to execute command: Segmentation fault

Package:
src:rocfft
Source:
src:rocfft
Submitter:
Sebastian Ramacher
Date:
2026-02-11 10:09:01 UTC
Severity:
normal
Tags:
#1120438#5
Date:
2025-11-09 16:23:21 UTC
From:
To:
Source: rocfft
Version: 6.4.3-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-powerpc@lists.debian.org, sramacher@debian.org
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

Dear maintainer,

rocfft FTBFS on ppc64el:

[ 90%] Building CXX object clients/tests/CMakeFiles/rocfft-test.dir/multi_device_test.cpp.o
cd /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests && /usr/bin/hipcc -DFFTW_HAVE_SPRINT_PLAN -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I/include -I/build/reproducible-path/rocfft-6.4.3/library/include -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -gz -g -O2 -ffile-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -Xarch_host -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++17 -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -DFFTW_MULTITHREAD -x hip --offload-arch=gfx803 --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1010 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102 -DGTEST_HAS_PTHREAD=1 -MD -MT clients/tests/CMakeFiles/rocfft-test.dir/multi_device_test.cpp.o -MF CMakeFiles/rocfft-test.dir/multi_device_test.cpp.o.d -o CMakeFiles/rocfft-test.dir/multi_device_test.cpp.o -c /build/reproducible-path/rocfft-6.4.3/clients/tests/multi_device_test.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/lib/llvm-21/bin/clang -cc1 -triple powerpc64le-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa -O3 -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name bitwise_repro_test.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu ppc64le -mabi=ieeelongdouble -mfloat-abi hard -target-abi elfv2 -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb --compress-debug-sections=zlib -fdebug-compilation-dir=/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests -fdebug-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -fcoverage-compilation-dir=/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests -resource-dir /usr/lib/llvm-21/lib/clang/21 -dependency-file CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o.d -MT clients/tests/CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o -sys-header-deps -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/cuda_wrappers -idirafter /usr/include -include __clang_hip_runtime_wrapper.h -D FFTW_HAVE_SPRINT_PLAN -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -I /build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I /include -I /build/reproducible-path/rocfft-6.4.3/library/include -I /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -D _FORTIFY_SOURCE=2 -D NDEBUG -D FFTW_MULTITHREAD -D GTEST_HAS_PTHREAD=1 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/powerpc64le-linux-gnu/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15/backward -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/powerpc64le-linux-gnu/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15/backward -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/ppc_wrappers -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../powerpc64le-linux-gnu/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/ppc_wrappers -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../powerpc64le-linux-gnu/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fmacro-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -fcoverage-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -source-date-epoch 1762316027 -Wformat -Werror=format-security -Wdate-time -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -std=gnu++17 -fdeprecated-macro -ferror-limit 19 -stack-protector 2 -fhip-new-launch-api -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -fcuda-include-gpubinary /tmp/bitwise_repro_test-e0ded3.hipfb -cuid=b54320b58a6645e5 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o -x hip /build/reproducible-path/rocfft-6.4.3/clients/tests/bitwise_repro/bitwise_repro_test.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/build/reproducible-path/rocfft-6.4.3/clients/tests/bitwise_repro/bitwise_repro_test.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_Z9set_inputIDF16_mEvRSt6vectorI9hostbuf_tIvESaIS2_EE19fft_input_generator14fft_array_typeRKS0_ImSaImEESB_SB_RKT0_SE_mmRK20hipDeviceProp_tR0600SC_mSC_m'
 #0 0x00003fff8ddf3d98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4093d98)
 #1 0x00003fff8ddf4624 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4094624)
 #2 0x00003fff8ddf0b34 llvm::sys::RunSignalHandlers() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4090b34)
 #3 0x00003fff8ddf5344 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4095344)
 #4 0x00003fff96ff2494 (linux-vdso64.so.1+0x494)
 #5 0x00003fff8e90ebec llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc const&, llvm::EVT, llvm::SDValue, llvm::SDValue, llvm::SDNodeFlags) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4baebec)
 #6 0x00003fff8e7dd7e0 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4a7d7e0)
 #7 0x00003fff8e7dc2cc (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4a7c2cc)
 #8 0x00003fff8e815474 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4ab5474)
 #9 0x00003fff8e81a130 llvm::SelectionDAG::LegalizeTypes() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4aba130)
#10 0x00003fff8e9483c0 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be83c0)
#11 0x00003fff8e94824c llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true, llvm::BasicBlock>, false, true>, llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true, llvm::BasicBlock>, false, true>, bool&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be824c)
#12 0x00003fff8e947c90 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be7c90)
#13 0x00003fff8e945d20 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be5d20)
#14 0x00003fff9165b948 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x78fb948)
#15 0x00003fff8e943f04 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be3f04)
#16 0x00003fff8e353128 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x45f3128)
#17 0x00003fff8dfda988 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x427a988)
#18 0x00003fff8dfe208c llvm::FPPassManager::runOnModule(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x428208c)
#19 0x00003fff8dfdb3b0 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x427b3b0)
#20 0x00003fff8dfe25dc llvm::legacy::PassManager::run(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x42825dc)
#21 0x00003fff956c8614 clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2948614)
#22 0x00003fff95a4a634 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2cca634)
#23 0x00003fff94096550 clang::ParseAST(clang::Sema&, bool, bool) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x1316550)
#24 0x00003fff96396e1c clang::ASTFrontendAction::ExecuteAction() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x3616e1c)
#25 0x00003fff95a4f0fc clang::CodeGenAction::ExecuteAction() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2ccf0fc)
#26 0x00003fff963965e0 clang::FrontendAction::Execute() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x36165e0)
#27 0x00003fff962ffdc8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x357fdc8)
#28 0x00003fff9643ea84 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x36bea84)
#29 0x000000012bbc2bf0 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-21/bin/clang+0x22bf0)
#30 0x000000012bbbedf0 (/usr/lib/llvm-21/bin/clang+0x1edf0)
#31 0x000000012bbbdf38 clang_main(int, char**, llvm::ToolContext const&) (/usr/lib/llvm-21/bin/clang+0x1df38)
#32 0x000000012bbd012c main (/usr/lib/llvm-21/bin/clang+0x3012c)
#33 0x00003fff895e6f0c (/lib/powerpc64le-linux-gnu/libc.so.6+0x26f0c)
#34 0x00003fff895e714c __libc_start_main (/lib/powerpc64le-linux-gnu/libc.so.6+0x2714c)
clang++-21: error: unable to execute command: Segmentation fault
clang++-21: error: clang frontend command failed due to signal (use -v to see invocation)
Debian clang version 21.1.4 (5)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin
clang++-21: note: diagnostic msg: Error generating preprocessed source(s).
failed to execute:/usr/bin/clang++-21  --offload-arch=gfx803 --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1010 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102  -DFFTW_HAVE_SPRINT_PLAN -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I/include -I/build/reproducible-path/rocfft-6.4.3/library/include -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -gz -g -O2 -ffile-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -Xarch_host -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++17 -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -DFFTW_MULTITHREAD -x hip -DGTEST_HAS_PTHREAD=1 -MD -MT clients/tests/CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o -MF CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o.d -o "CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o" -c /build/reproducible-path/rocfft-6.4.3/clients/tests/bitwise_repro/bitwise_repro_test.cpp
make[3]: *** [clients/tests/CMakeFiles/rocfft-test.dir/build.make:110: clients/tests/CMakeFiles/rocfft-test.dir/bitwise_repro/bitwise_repro_test.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/lib/llvm-21/bin/clang -cc1 -triple powerpc64le-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa -O3 -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name gtest_main.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu ppc64le -mabi=ieeelongdouble -mfloat-abi hard -target-abi elfv2 -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb --compress-debug-sections=zlib -fdebug-compilation-dir=/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests -fdebug-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -fcoverage-compilation-dir=/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests -resource-dir /usr/lib/llvm-21/lib/clang/21 -dependency-file CMakeFiles/rocfft-test.dir/gtest_main.cpp.o.d -MT clients/tests/CMakeFiles/rocfft-test.dir/gtest_main.cpp.o -sys-header-deps -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/cuda_wrappers -idirafter /usr/include -include __clang_hip_runtime_wrapper.h -D FFTW_HAVE_SPRINT_PLAN -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -I /build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I /include -I /build/reproducible-path/rocfft-6.4.3/library/include -I /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -D _FORTIFY_SOURCE=2 -D NDEBUG -D FFTW_MULTITHREAD -D GTEST_HAS_PTHREAD=1 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/powerpc64le-linux-gnu/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15/backward -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/powerpc64le-linux-gnu/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15/backward -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/ppc_wrappers -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../powerpc64le-linux-gnu/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/ppc_wrappers -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../powerpc64le-linux-gnu/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fmacro-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -fcoverage-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -source-date-epoch 1762316027 -Wformat -Werror=format-security -Wdate-time -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -std=gnu++17 -fdeprecated-macro -ferror-limit 19 -stack-protector 2 -fhip-new-launch-api -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -fcuda-include-gpubinary /tmp/gtest_main-e5273b.hipfb -cuid=f73be451007bab1b -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/rocfft-test.dir/gtest_main.cpp.o -x hip /build/reproducible-path/rocfft-6.4.3/clients/tests/gtest_main.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/build/reproducible-path/rocfft-6.4.3/clients/tests/gtest_main.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_Z9set_inputIDF16_mEvRSt6vectorI9hostbuf_tIvESaIS2_EE19fft_input_generator14fft_array_typeRKS0_ImSaImEESB_SB_RKT0_SE_mmRK20hipDeviceProp_tR0600SC_mSC_m'
 #0 0x00003fffb14f3d98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4093d98)
 #1 0x00003fffb14f4624 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4094624)
 #2 0x00003fffb14f0b34 llvm::sys::RunSignalHandlers() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4090b34)
 #3 0x00003fffb14f5344 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4095344)
 #4 0x00003fffba6f2494 (linux-vdso64.so.1+0x494)
 #5 0x00003fffb200ebec llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc const&, llvm::EVT, llvm::SDValue, llvm::SDValue, llvm::SDNodeFlags) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4baebec)
 #6 0x00003fffb1edd7e0 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4a7d7e0)
 #7 0x00003fffb1edc2cc (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4a7c2cc)
 #8 0x00003fffb1f15474 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4ab5474)
 #9 0x00003fffb1f1a130 llvm::SelectionDAG::LegalizeTypes() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4aba130)
#10 0x00003fffb20483c0 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be83c0)
#11 0x00003fffb204824c llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true, llvm::BasicBlock>, false, true>, llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true, llvm::BasicBlock>, false, true>, bool&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be824c)
#12 0x00003fffb2047c90 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be7c90)
#13 0x00003fffb2045d20 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be5d20)
#14 0x00003fffb4d5b948 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x78fb948)
#15 0x00003fffb2043f04 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be3f04)
#16 0x00003fffb1a53128 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x45f3128)
#17 0x00003fffb16da988 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x427a988)
#18 0x00003fffb16e208c llvm::FPPassManager::runOnModule(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x428208c)
#19 0x00003fffb16db3b0 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x427b3b0)
#20 0x00003fffb16e25dc llvm::legacy::PassManager::run(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x42825dc)
#21 0x00003fffb8dc8614 clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2948614)
#22 0x00003fffb914a634 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2cca634)
#23 0x00003fffb7796550 clang::ParseAST(clang::Sema&, bool, bool) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x1316550)
#24 0x00003fffb9a96e1c clang::ASTFrontendAction::ExecuteAction() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x3616e1c)
#25 0x00003fffb914f0fc clang::CodeGenAction::ExecuteAction() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2ccf0fc)
#26 0x00003fffb9a965e0 clang::FrontendAction::Execute() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x36165e0)
#27 0x00003fffb99ffdc8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x357fdc8)
#28 0x00003fffb9b3ea84 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x36bea84)
#29 0x000000010afe2bf0 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-21/bin/clang+0x22bf0)
#30 0x000000010afdedf0 (/usr/lib/llvm-21/bin/clang+0x1edf0)
#31 0x000000010afddf38 clang_main(int, char**, llvm::ToolContext const&) (/usr/lib/llvm-21/bin/clang+0x1df38)
#32 0x000000010aff012c main (/usr/lib/llvm-21/bin/clang+0x3012c)
#33 0x00003fffacce6f0c (/lib/powerpc64le-linux-gnu/libc.so.6+0x26f0c)
#34 0x00003fffacce714c __libc_start_main (/lib/powerpc64le-linux-gnu/libc.so.6+0x2714c)
clang++-21: error: unable to execute command: Segmentation fault
clang++-21: error: clang frontend command failed due to signal (use -v to see invocation)
Debian clang version 21.1.4 (5)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/lib/llvm-21/bin/clang -cc1 -triple powerpc64le-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa -O3 -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name rocfft_accuracy_test.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu ppc64le -mabi=ieeelongdouble -mfloat-abi hard -target-abi elfv2 -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb --compress-debug-sections=zlib -fdebug-compilation-dir=/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests -fdebug-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -fcoverage-compilation-dir=/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/clients/tests -resource-dir /usr/lib/llvm-21/lib/clang/21 -dependency-file CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o.d -MT clients/tests/CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o -sys-header-deps -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/cuda_wrappers -idirafter /usr/include -include __clang_hip_runtime_wrapper.h -D FFTW_HAVE_SPRINT_PLAN -D USE_PROF_API=1 -D __HIP_PLATFORM_AMD__=1 -I /build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I /include -I /build/reproducible-path/rocfft-6.4.3/library/include -I /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I /build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -D _FORTIFY_SOURCE=2 -D NDEBUG -D FFTW_MULTITHREAD -D GTEST_HAS_PTHREAD=1 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/powerpc64le-linux-gnu/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15/backward -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/powerpc64le-linux-gnu/c++/15 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../include/c++/15/backward -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/ppc_wrappers -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../powerpc64le-linux-gnu/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /usr/lib/llvm-21/lib/clang/21/include/ppc_wrappers -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../../powerpc64le-linux-gnu/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fmacro-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -fcoverage-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -source-date-epoch 1762316027 -Wformat -Werror=format-security -Wdate-time -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -std=gnu++17 -fdeprecated-macro -ferror-limit 19 -stack-protector 2 -fhip-new-launch-api -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -fcuda-include-gpubinary /tmp/rocfft_accuracy_test-34f8d2.hipfb -cuid=8284a530a1d91fc6 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o -x hip /build/reproducible-path/rocfft-6.4.3/clients/tests/rocfft_accuracy_test.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/build/reproducible-path/rocfft-6.4.3/clients/tests/rocfft_accuracy_test.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_Z9set_inputIDF16_mEvRSt6vectorI9hostbuf_tIvESaIS2_EE19fft_input_generator14fft_array_typeRKS0_ImSaImEESB_SB_RKT0_SE_mmRK20hipDeviceProp_tR0600SC_mSC_m'
 #0 0x00003fffb0003d98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4093d98)
 #1 0x00003fffb0004624 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4094624)
 #2 0x00003fffb0000b34 llvm::sys::RunSignalHandlers() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4090b34)
 #3 0x00003fffb0005344 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4095344)
 #4 0x00003fffb9202494 (linux-vdso64.so.1+0x494)
 #5 0x00003fffb0b1ebec llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc const&, llvm::EVT, llvm::SDValue, llvm::SDValue, llvm::SDNodeFlags) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4baebec)
 #6 0x00003fffb09ed7e0 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4a7d7e0)
 #7 0x00003fffb09ec2cc (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4a7c2cc)
 #8 0x00003fffb0a25474 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4ab5474)
 #9 0x00003fffb0a2a130 llvm::SelectionDAG::LegalizeTypes() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4aba130)
#10 0x00003fffb0b583c0 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be83c0)
#11 0x00003fffb0b5824c llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true, llvm::BasicBlock>, false, true>, llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true, llvm::BasicBlock>, false, true>, bool&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be824c)
#12 0x00003fffb0b57c90 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be7c90)
#13 0x00003fffb0b55d20 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be5d20)
#14 0x00003fffb386b948 (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x78fb948)
#15 0x00003fffb0b53f04 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x4be3f04)
#16 0x00003fffb0563128 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x45f3128)
#17 0x00003fffb01ea988 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x427a988)
#18 0x00003fffb01f208c llvm::FPPassManager::runOnModule(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x428208c)
#19 0x00003fffb01eb3b0 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x427b3b0)
#20 0x00003fffb01f25dc llvm::legacy::PassManager::run(llvm::Module&) (/lib/powerpc64le-linux-gnu/libLLVM.so.21.1+0x42825dc)
#21 0x00003fffb78d8614 clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2948614)
#22 0x00003fffb7c5a634 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2cca634)
#23 0x00003fffb62a6550 clang::ParseAST(clang::Sema&, bool, bool) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x1316550)
#24 0x00003fffb85a6e1c clang::ASTFrontendAction::ExecuteAction() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x3616e1c)
#25 0x00003fffb7c5f0fc clang::CodeGenAction::ExecuteAction() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x2ccf0fc)
#26 0x00003fffb85a65e0 clang::FrontendAction::Execute() (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x36165e0)
#27 0x00003fffb850fdc8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x357fdc8)
#28 0x00003fffb864ea84 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib/powerpc64le-linux-gnu/libclang-cpp.so.21.1+0x36bea84)
#29 0x0000000101192bf0 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-21/bin/clang+0x22bf0)
#30 0x000000010118edf0 (/usr/lib/llvm-21/bin/clang+0x1edf0)
#31 0x000000010118df38 clang_main(int, char**, llvm::ToolContext const&) (/usr/lib/llvm-21/bin/clang+0x1df38)
#32 0x00000001011a012c main (/usr/lib/llvm-21/bin/clang+0x3012c)
#33 0x00003fffab7f6f0c (/lib/powerpc64le-linux-gnu/libc.so.6+0x26f0c)
#34 0x00003fffab7f714c __libc_start_main (/lib/powerpc64le-linux-gnu/libc.so.6+0x2714c)
clang++-21: error: unable to execute command: Segmentation fault
clang++-21: error: clang frontend command failed due to signal (use -v to see invocation)
Debian clang version 21.1.4 (5)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin
clang++-21: note: diagnostic msg: Error generating preprocessed source(s).
failed to execute:/usr/bin/clang++-21  --offload-arch=gfx803 --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1010 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102  -DFFTW_HAVE_SPRINT_PLAN -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I/include -I/build/reproducible-path/rocfft-6.4.3/library/include -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -gz -g -O2 -ffile-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -Xarch_host -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++17 -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -DFFTW_MULTITHREAD -x hip -DGTEST_HAS_PTHREAD=1 -MD -MT clients/tests/CMakeFiles/rocfft-test.dir/gtest_main.cpp.o -MF CMakeFiles/rocfft-test.dir/gtest_main.cpp.o.d -o "CMakeFiles/rocfft-test.dir/gtest_main.cpp.o" -c /build/reproducible-path/rocfft-6.4.3/clients/tests/gtest_main.cpp
make[3]: *** [clients/tests/CMakeFiles/rocfft-test.dir/build.make:82: clients/tests/CMakeFiles/rocfft-test.dir/gtest_main.cpp.o] Error 1
clang++-21: note: diagnostic msg: Error generating preprocessed source(s).
failed to execute:/usr/bin/clang++-21  --offload-arch=gfx803 --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1010 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102  -DFFTW_HAVE_SPRINT_PLAN -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/build/reproducible-path/rocfft-6.4.3/clients/tests/../../library/src/include -I/include -I/build/reproducible-path/rocfft-6.4.3/library/include -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include/rocfft -I/build/reproducible-path/rocfft-6.4.3/obj-powerpc64le-linux-gnu/include -gz -g -O2 -ffile-prefix-map=/build/reproducible-path/rocfft-6.4.3=. -Xarch_host -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++17 -Wall -Wno-unused-function -Wimplicit-fallthrough -Wunreachable-code -Wsign-compare -Wno-cpp -DFFTW_MULTITHREAD -x hip -DGTEST_HAS_PTHREAD=1 -MD -MT clients/tests/CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o -MF CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o.d -o "CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o" -c /build/reproducible-path/rocfft-6.4.3/clients/tests/rocfft_accuracy_test.cpp
make[3]: *** [clients/tests/CMakeFiles/rocfft-test.dir/build.make:96: clients/tests/CMakeFiles/rocfft-test.dir/rocfft_accuracy_test.cpp.o] Error 1

See
https://buildd.debian.org/status/fetch.php?pkg=rocfft&arch=ppc64el&ver=6.4.3-1&stamp=1762322780&raw=0
for more details.

Cheers

#1120438#10
Date:
2025-11-10 06:17:03 UTC
From:
To:


Hello,

I was able reproduce this issue on ppc64el.
I will look into this and update you soon.


Thanks,
Trupti.

#1120438#17
Date:
2025-12-19 10:23:36 UTC
From:
To:

Hello,

The failure is caused by unconditional HIP device compilation being
triggered during the build, even on ppc64el systems without ROCm GPU
support. This leads to compiler failures in the HIP/clang device path
and breaks the build at configure time.

This previously built because earlier versions did not enforce HIP
device compilation in the same way; recent changes in the build system
now attempt HIP device compilation unconditionally.

I have reported this issue upstream to the rocFFT
project(https://github.com/ROCm/rocFFT/issues/651) so it can be
addressed properly in the build system. I will update this bug once
there is feedback or a proposed fix from upstream.


Thanks,
Trupti

#1120438#22
Date:
2026-01-16 09:17:15 UTC
From:
To:
Hello,

The build failures of rocfft on ppc64el are caused by a crash in
clang/LLVM when compiling HIP code.
Specifically, compiling HIP client test sources triggers an internal
compiler error in the LLVM PowerPC backend during code generation.
This is an upstream toolchain issue and not a functional problem in
rocfft itself.

The compiler crash has been reported upstream and is tracked in the LLVM
issue tracker: https://github.com/llvm/llvm-project/issues/168727

I tested a targeted workaround on ppc64el by disabling HIP client tests,
while keeping the core rocfft library unchanged. With this change,
rocfft builds and installs successfully on ppc64el.

Given this, would it be acceptable to apply a targeted workaround that
disables HIP client tests on ppc64el, instead of removing the ppc64el
binaries at this stage?


Thanks,
Trupti

#1120438#27
Date:
2026-01-16 09:42:15 UTC
From:
To:
Hi Trupti,

It depends. For example, it's fairly typical to temporarily disable
individual tests, pending upstream resolution.

Could this be an option here? Is the internal compiler error triggered
only on some code paths that could be temporarily be disabled with a
patch, or is this an issue closer to the core?

Disabling all tests would need a good justification, but I'm not sure
it's present here. If the package's own tests fail to build, then I
don't see what good keeping the library would do, as anyone else
building their own code against it would (presumably) run into the same
error.

Another approach could be to force the use of an older LLVM. Cory's
comments on #1118435 [1] seem to suggest that this is possible, by
adding the older LLVM to Build-Depends and adapting d/rules to it.

Though a bit of work, that might actually be the simplest solution to
keeping ppc64el rocblas, hipblas and rocfft.

Best,
Christian

[1]: https://bugs.debian.org/1118435

#1120438#32
Date:
2026-01-16 10:07:26 UTC
From:
To:
prefer not to maintain ppc64el packages, because new issues might still
pop up and we're back to square one.

From experience, I myself tend to be very conservative about what
architectures to support.

Best,
Christian

#1120438#37
Date:
2026-01-16 14:46:07 UTC
From:
To:
In my experience, bugs triggered on one architecture have a high chance
of being present but silently hidden on other architectures, and thus
keeping a program running on widly different architectures is a net gain
for both code quality and robustness of a program.  So I tend to be
liberal with which architectures to list in the Architecture field in
d/control, and only limit it if the alternative is not sustainable.

I also try to ensure the build will test the generated binary before
calling the build a success, to reduce the risk of broken binaries
making it into the archive.  There is no advantage from a release
critical bug in a architecture where no-one can use the package anyway,
keeping the package out of the next stable release in Debian.

#1120438#42
Date:
2026-02-11 08:28:20 UTC
From:
To:
Yes, agree with you.

Thanks,
Trupti

#1120438#47
Date:
2026-02-11 10:08:18 UTC
From:
To:

Hello Christian,

Thank you for the suggestion, and apologies for the delayed response.
I went through Debian bug #1118435, and as suggested, I tried building
rocfft with an older LLVM version (LLVM 19).

With clang-19, the current segmentation fault no longer occurs; however,
it results in the following error:

6.4.3/library/src/device/generator/../kernels/../../../../shared/rocfft_complex.h:34:9:
error: _Float16 is not supported on this target 34 | typedef _Float16
rocfft_fp16; | ^ 1 error generated.


I tried to disable the code that triggers this error but I think I am
missing something

Thanks,
Trupti