The actual error seems to be:

 #0 0x00007fff8e95743c llvm::sys::PrintStackTrace(llvm::raw_ostream&) 
/<<PKGBUILDDIR>>/llvm/lib/Support/Unix/Signals.inc:533:13
 #1 0x00007fff8e9577a0 PrintStackTraceSignalHandler(void*) 
/<<PKGBUILDDIR>>/llvm/lib/Support/Unix/Signals.inc:593:3
 #2 0x00007fff8e954df8 llvm::sys::RunSignalHandlers() 
/<<PKGBUILDDIR>>/llvm/lib/Support/Signals.cpp:67:5
 #3 0x00007fff8e957b2c SignalHandler(int) 
/<<PKGBUILDDIR>>/llvm/lib/Support/Unix/Signals.inc:375:3
 #4 0x00007fff94d304d8 (linux-vdso64.so.1+0x4d8)
 #5 0x00007fff8e93f220 getLHSKind 
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/Twine.h:239:42
 #6 0x00007fff8e93f220 isNull 
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/Twine.h:189:14
 #7 0x00007fff8e93f220 concat 
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/Twine.h:490:9
 #8 0x00007fff8e93f220 llvm::operator+(llvm::Twine const&, llvm::Twine const&) 
/<<PKGBUILDDIR>>/llvm/include/llvm/ADT/Twine.h:518:16
 #9 0x00007fff8ee621e0 
llvm::TargetLoweringBase::computeRegisterProperties(llvm::TargetRegisterInfo const*) 
/<<PKGBUILDDIR>>/llvm/lib/CodeGen/TargetLoweringBase.cpp:1260:42
#10 0x00007fff909186cc llvm::PPCTargetLowering::PPCTargetLowering(llvm::PPCTargetMachine 
const&, llvm::PPCSubtarget const&) 
/<<PKGBUILDDIR>>/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1204:3
#11 0x00007fff90984ae0 llvm::PPCSubtarget::PPCSubtarget(llvm::Triple const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::PPCTargetMachine const&) /<<PKGBUILDDIR>>/llvm/lib/Target/PowerPC/PPCSubtarget.cpp:60:25
#12 0x00007fff90986448 make_unique<llvm::PPCSubtarget, const llvm::Triple &, 
std::__cxx11::basic_string<char> &, std::__cxx11::basic_string<char>, const llvm::PPCTargetMachine 
&> /<<PKGBUILDDIR>>/llvm/include/llvm/ADT/STLExtras.h:1406:33
#13 0x00007fff90986448 llvm::PPCTargetMachine::getSubtargetImpl(llvm::Function const&) 
const /<<PKGBUILDDIR>>/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:331:9
#14 0x00007fff90986654 PPCTTIImpl 
/<<PKGBUILDDIR>>/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h:40:59
#15 0x00007fff90986654 llvm::PPCTargetMachine::getTargetTransformInfo(llvm::Function 
const&) /<<PKGBUILDDIR>>/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:520:30
#16 0x00007fff8ff1ce3c operator() 
/<<PKGBUILDDIR>>/llvm/lib/Target/TargetMachine.cpp:283:48
#17 0x00007fff8ff1ce3c __invoke_impl<llvm::TargetTransformInfo, (lambda at 
/<<PKGBUILDDIR>>/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 0x00007fff8ff1ce3c __invoke_r<llvm::TargetTransformInfo, (lambda at 
/<<PKGBUILDDIR>>/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 0x00007fff8ff1ce3c std::_Function_handler<llvm::TargetTransformInfo (llvm::Function 
const&), llvm::TargetMachine::getTargetIRAnalysis()::$_0>::_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 0x00007fff8fa3b0bc operator() 
/usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/std_function.h:622:14
#21 0x00007fff8fa3b0bc run 
/<<PKGBUILDDIR>>/llvm/lib/Analysis/TargetTransformInfo.cpp:1340:10
#22 0x00007fff8fa3b0bc llvm::TargetTransformInfoWrapperPass::getTTI(llvm::Function const&) 
/<<PKGBUILDDIR>>/llvm/lib/Analysis/TargetTransformInfo.cpp:1371:14
#23 0x00007fff8f652254 (anonymous 
namespace)::CFGSimplifyPass::runOnFunction(llvm::Function&) 
/<<PKGBUILDDIR>>/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp:268:63
#24 0x00007fff8eaa6874 llvm::FPPassManager::runOnFunction(llvm::Function&) 
/<<PKGBUILDDIR>>/llvm/lib/IR/LegacyPassManager.cpp:1648:27
#25 0x00007fff8eaa5cbc llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) 
/<<PKGBUILDDIR>>/llvm/lib/IR/LegacyPassManager.cpp:1585:44
#26 0x00007fff8eaa5bdc llvm::legacy::FunctionPassManager::run(llvm::Function&) 
/<<PKGBUILDDIR>>/llvm/lib/IR/LegacyPassManager.cpp:1510:15
#27 0x00007fff9399c658 EmitAssembly 
/<<PKGBUILDDIR>>/clang/lib/CodeGen/BackendUtil.cpp:887:27
#28 0x00007fff9399c658 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_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) /<<PKGBUILDDIR>>/clang/lib/CodeGen/BackendUtil.cpp:1498:15
#29 0x00007fff93c1dfd0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) 
/<<PKGBUILDDIR>>/clang/lib/CodeGen/CodeGenAction.cpp:303:7
#30 0x00007fff92d17ad0 clang::ParseAST(clang::Sema&, bool, bool) 
/<<PKGBUILDDIR>>/clang/lib/Parse/ParseAST.cpp:171:13
#31 0x00007fff94312d28 clang::ASTFrontendAction::ExecuteAction() 
/<<PKGBUILDDIR>>/clang/lib/Frontend/FrontendAction.cpp:1041:3
#32 0x00007fff93c1cb84 clang::CodeGenAction::ExecuteAction() 
/<<PKGBUILDDIR>>/clang/lib/CodeGen/CodeGenAction.cpp:1059:28
#33 0x00007fff94312520 clang::FrontendAction::Execute() 
/<<PKGBUILDDIR>>/clang/lib/Frontend/FrontendAction.cpp:934:8
#34 0x00007fff942ca6d8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) 
/<<PKGBUILDDIR>>/clang/lib/Frontend/CompilerInstance.cpp:944:33
#35 0x00007fff9438fd80 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) 
/<<PKGBUILDDIR>>/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:291:25
#36 0x00000000100a1cdc cc1_main(llvm::ArrayRef<char const*>, char const*, void*) 
/<<PKGBUILDDIR>>/clang/tools/driver/cc1_main.cpp:249:15
#37 0x000000001009f6e0 ExecuteCC1Tool 
/<<PKGBUILDDIR>>/clang/tools/driver/driver.cpp:309:12
#38 0x000000001009f6e0 main 
/<<PKGBUILDDIR>>/clang/tools/driver/driver.cpp:381:12
#39 0x00007fff8d7b814c (/lib/powerpc64le-linux-gnu/libc.so.6+0x2814c)
#40 0x00007fff8d7b8330 __libc_start_main 
(/lib/powerpc64le-linux-gnu/libc.so.6+0x28330)
clang-9: error: unable to execute command: Segmentation fault
Stack dump:
0. Program arguments: /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/bin/clang-9 -cc1 -triple powerpc64le-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name FuzzerUtilPosix.cpp -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu ppc64le -mfloat-abi hard -target-abi elfv2 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /<<PKGBUILDDIR>>/build-llvm/FuzzerUtilPosix.gcno -resource-dir /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/lib/clang/9.0.1 -D _FORTIFY_SOURCE=2 -I Fuzzer -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/powerpc64le-linux-gnu/c++/10 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/powerpc64le-linux-gnu/c++/10 -internal-isystem /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/backward -internal-isystem /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/lib/clang/9.0.1/include/ppc_wrappers -internal-isystem /usr/local/include -internal-isystem /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/lib/clang/9.0.1/include -internal-externc-isystem /usr/include/powerpc64le-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wformat -Werror=format-security -Wdate-time -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /<<PKGBUILDDIR>>/build-llvm -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o FuzzerUtilPosix.o -x c++ /<<PKGBUILDDIR>>/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
1.      <eof> parser at end of file
2.      Per-function optimization
3.      Running pass 'Simplify the CFG' on function '@_ZN6fuzzer8SetTimerEi'

It is way less obvious with -10 & -11

10:
/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/bin/clang++ -c $CFLAGS -std=c++11 
/<<PKGBUILDDIR>>/compiler-rt/lib/fuzzer/*.cpp -IFuzzer; \
ar ruv libFuzzer.a Fuzzer*.o
-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>/build-llvm=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
Segmentation fault

11:
/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/bin/clang++ -c $CFLAGS -std=c++11 
/<<PKGBUILDDIR>>/compiler-rt/lib/fuzzer/*.cpp -IFuzzer; \
ar ruv libFuzzer.a Fuzzer*.o
-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>/build-llvm=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
realloc(): invalid old size
Aborted


Sylvestre


Le 16/10/2020 à 07:28, Stéphane Glondu a écrit :
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: /<<PKGBUILDDIR>>/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 
'/<<PKGBUILDDIR>>/libcxxabi/build/CMakeFiles/CMakeTmp'
     gmake[2]: *** [Makefile:140: cmTC_2f83f/fast] Error 2
     gmake[2]: Leaving directory 
'/<<PKGBUILDDIR>>/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 "/<<PKGBUILDDIR>>/libcxxabi/build/CMakeFiles/CMakeOutput.log".
See also "/<<PKGBUILDDIR>>/libcxxabi/build/CMakeFiles/CMakeError.log".
make[1]: *** [debian/rules:438: debian-libcxx-build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:282: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2


Cheers,


Reply via email to