Bug#972317: FTBFS on ppc64el

2020-10-23 Thread Sylvestre Ledru

The actual error seems to be:

 #0 0x7fff8e95743c llvm::sys::PrintStackTrace(llvm::raw_ostream&) 
/<>/llvm/lib/Support/Unix/Signals.inc:533:13
 #1 0x7fff8e9577a0 PrintStackTraceSignalHandler(void*) 
/<>/llvm/lib/Support/Unix/Signals.inc:593:3
 #2 0x7fff8e954df8 llvm::sys::RunSignalHandlers() 
/<>/llvm/lib/Support/Signals.cpp:67:5
 #3 0x7fff8e957b2c SignalHandler(int) 
/<>/llvm/lib/Support/Unix/Signals.inc:375:3
 #4 0x7fff94d304d8 (linux-vdso64.so.1+0x4d8)
 #5 0x7fff8e93f220 getLHSKind 
/<>/llvm/include/llvm/ADT/Twine.h:239:42
 #6 0x7fff8e93f220 isNull 
/<>/llvm/include/llvm/ADT/Twine.h:189:14
 #7 0x7fff8e93f220 concat 
/<>/llvm/include/llvm/ADT/Twine.h:490:9
 #8 0x7fff8e93f220 llvm::operator+(llvm::Twine const&, llvm::Twine const&) 
/<>/llvm/include/llvm/ADT/Twine.h:518:16
 #9 0x7fff8ee621e0 
llvm::TargetLoweringBase::computeRegisterProperties(llvm::TargetRegisterInfo const*) 
/<>/llvm/lib/CodeGen/TargetLoweringBase.cpp:1260:42
#10 0x7fff909186cc llvm::PPCTargetLowering::PPCTargetLowering(llvm::PPCTargetMachine 
const&, llvm::PPCSubtarget const&) 
/<>/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1204:3
#11 0x7fff90984ae0 llvm::PPCSubtarget::PPCSubtarget(llvm::Triple const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, llvm::PPCTargetMachine const&) 
/<>/llvm/lib/Target/PowerPC/PPCSubtarget.cpp:60:25

#12 0x7fff90986448 make_unique &, std::__cxx11::basic_string, const llvm::PPCTargetMachine 
&> /<>/llvm/include/llvm/ADT/STLExtras.h:1406:33
#13 0x7fff90986448 llvm::PPCTargetMachine::getSubtargetImpl(llvm::Function const&) 
const /<>/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:331:9
#14 0x7fff90986654 PPCTTIImpl 
/<>/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h:40:59
#15 0x7fff90986654 llvm::PPCTargetMachine::getTargetTransformInfo(llvm::Function 
const&) /<>/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:520:30
#16 0x7fff8ff1ce3c operator() 
/<>/llvm/lib/Target/TargetMachine.cpp:283:48
#17 0x7fff8ff1ce3c __invoke_impl>/llvm/lib/Target/TargetMachine.cpp:283:7) &, const llvm::Function 
&> /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:60:14
#18 0x7fff8ff1ce3c __invoke_r>/llvm/lib/Target/TargetMachine.cpp:283:7) &, const llvm::Function 
&> /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:141:14
#19 0x7fff8ff1ce3c std::_Function_handler::_M_invoke(std::_Any_data 
const&, llvm::Function const&) 
/usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/std_function.h:291:9
#20 0x7fff8fa3b0bc operator() 
/usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/std_function.h:622:14
#21 0x7fff8fa3b0bc run 
/<>/llvm/lib/Analysis/TargetTransformInfo.cpp:1340:10
#22 0x7fff8fa3b0bc llvm::TargetTransformInfoWrapperPass::getTTI(llvm::Function const&) 
/<>/llvm/lib/Analysis/TargetTransformInfo.cpp:1371:14
#23 0x7fff8f652254 (anonymous 
namespace)::CFGSimplifyPass::runOnFunction(llvm::Function&) 
/<>/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp:268:63
#24 0x7fff8eaa6874 llvm::FPPassManager::runOnFunction(llvm::Function&) 
/<>/llvm/lib/IR/LegacyPassManager.cpp:1648:27
#25 0x7fff8eaa5cbc llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) 
/<>/llvm/lib/IR/LegacyPassManager.cpp:1585:44
#26 0x7fff8eaa5bdc llvm::legacy::FunctionPassManager::run(llvm::Function&) 
/<>/llvm/lib/IR/LegacyPassManager.cpp:1510:15
#27 0x7fff9399c658 EmitAssembly 
/<>/clang/lib/CodeGen/BackendUtil.cpp:887:27
#28 0x7fff9399c658 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptrstd::default_delete >) /<>/clang/lib/CodeGen/BackendUtil.cpp:1498:15

#29 0x7fff93c1dfd0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) 
/<>/clang/lib/CodeGen/CodeGenAction.cpp:303:7
#30 0x7fff92d17ad0 clang::ParseAST(clang::Sema&, bool, bool) 
/<>/clang/lib/Parse/ParseAST.cpp:171:13
#31 0x7fff94312d28 clang::ASTFrontendAction::ExecuteAction() 
/<>/clang/lib/Frontend/FrontendAction.cpp:1041:3
#32 0x7fff93c1cb84 clang::CodeGenAction::ExecuteAction() 
/<>/clang/lib/CodeGen/CodeGenAction.cpp:1059:28
#33 0x7fff94312520 clang::FrontendAction::Execute() 
/<>/clang/lib/Frontend/FrontendAction.cpp:934:8
#34 0x7fff942ca6d8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) 
/<>/clang/lib/Frontend/CompilerInstance.cpp:944:33
#35 0x7fff9438fd80 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) 
/<>/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:291:25
#36 0x100a1cdc cc1_main(llvm::ArrayRef, char const*, void*) 
/<>/clang/tools/driver/cc1_main.cpp:249:15
#37 0x1009f6e0 ExecuteCC1Tool 
/<>/clang/tools/driver/driver.cpp:309:12
#38 

Bug#972317: FTBFS on ppc64el

2020-10-15 Thread Stéphane Glondu
Package: src:llvm-toolchain-9
Version: 1:9.0.1-14
Severity: serious
Tags: ftbfs

Dear Maintainer,

Your package FTBFS on ppc64el:

  https://buildd.debian.org/status/package.php?p=llvm-toolchain-9

The rebuild was triggered by the update of OCaml from 4.08.1 to
4.11.1, but the error looks independent (I might be wrong).

The build log ends with:
> clang-9: error: unable to execute command: Segmentation fault
> clang-9: error: clang frontend command failed due to signal (use -v to 
> see invocation)
> clang version 9.0.1-14+b1 
> Target: powerpc64le-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /<>/build-llvm/tools/clang/stage2-bins/bin
> clang-9: note: diagnostic msg: PLEASE submit a bug report to 
> https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, 
> and associated run script.
> clang-9: note: diagnostic msg: 
> 
> 
> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> Preprocessed source(s) and associated run script(s) are located at:
> clang-9: note: diagnostic msg: /tmp/testCXXCompiler-2f55c9.cpp
> clang-9: note: diagnostic msg: /tmp/testCXXCompiler-2f55c9.sh
> clang-9: note: diagnostic msg: 
> 
> 
> gmake[3]: *** [CMakeFiles/cmTC_2f83f.dir/build.make:85: 
> CMakeFiles/cmTC_2f83f.dir/testCXXCompiler.cxx.o] Error 254
> gmake[3]: Leaving directory 
> '/<>/libcxxabi/build/CMakeFiles/CMakeTmp'
> gmake[2]: *** [Makefile:140: cmTC_2f83f/fast] Error 2
> gmake[2]: Leaving directory 
> '/<>/libcxxabi/build/CMakeFiles/CMakeTmp'
> 
> 
> 
>   
> 
>   CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>   CMakeLists.txt:21 (project)
> 
> 
> -- Configuring incomplete, errors occurred!
> See also "/<>/libcxxabi/build/CMakeFiles/CMakeOutput.log".
> See also "/<>/libcxxabi/build/CMakeFiles/CMakeError.log".
> make[1]: *** [debian/rules:438: debian-libcxx-build] Error 1
> make[1]: Leaving directory '/<>'
> make: *** [debian/rules:282: binary-arch] Error 2
> dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
> status 2


Cheers,

-- 
Stéphane

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled