[MacPorts] #51478: clang-3.7 compiler bug

MacPorts noreply at macports.org
Sun Jun 19 00:30:23 PDT 2016


#51478: clang-3.7 compiler bug
------------------------+------------------------
  Reporter:  uri@…      |      Owner:  jeremyhu@…
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.3.4
Resolution:  wontfix    |   Keywords:
      Port:  clang-3.7  |
------------------------+------------------------

Comment (by uri@…):

 Well, I tested with Macports clang-3.8 - and the result is the same:

 {{{
 /opt/local/bin/clang++-mp-3.8 -maes -mpclmul -mrdrnd -msse2 -mssse3
 -msse4.2 -mtune=native -Os -Ofast -std=c++11 -ffunction-sections -fdata-
 sections -fPIC -march=native -pipe -c integer.cpp
 Assertion failed: (BB->getTerminator()->getNumSuccessors() == 1 && "Should
 have a single succ!"), function SplitEdge, file
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/llvm-3.8/work/release_38/lib/Transforms/Utils/BasicBlockUtils.cpp,
 line 261.
 0  libLLVM.dylib            0x0000000104f0ebb0
 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
 1  libLLVM.dylib            0x0000000104f0e509
 llvm::sys::RunSignalHandlers() + 44
 2  libLLVM.dylib            0x0000000104f0f011 SignalHandler(int) + 164
 3  libsystem_platform.dylib 0x00007fff9523b52a _sigtramp + 26
 4  libsystem_platform.dylib 0x00007fd763eb9780 _sigtramp + 3469206128
 5  libsystem_c.dylib        0x00007fff8ee696e7 abort + 129
 6  libsystem_c.dylib        0x00007fff8ee30df8 basename + 0
 7  libLLVM.dylib            0x000000010542d4e6
 llvm::SplitBlock(llvm::BasicBlock*, llvm::Instruction*,
 llvm::DominatorTree*, llvm::LoopInfo*) + 0
 8  libLLVM.dylib            0x0000000105585f94 (anonymous
 namespace)::JumpThreading::DuplicateCondBranchOnPHIIntoPred(llvm::BasicBlock*,
 llvm::SmallVectorImpl<llvm::BasicBlock*> const&) + 948
 9  libLLVM.dylib            0x0000000105582176 (anonymous
 namespace)::JumpThreading::ProcessBlock(llvm::BasicBlock*) + 7954
 10 libLLVM.dylib            0x000000010557fdda (anonymous
 namespace)::JumpThreading::runOnFunction(llvm::Function&) + 1218
 11 libLLVM.dylib            0x0000000105034965
 llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
 12 libLLVM.dylib            0x0000000105716f48 (anonymous
 namespace)::CGPassManager::runOnModule(llvm::Module&) + 1230
 13 libLLVM.dylib            0x0000000105034e4e
 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 630
 14 clang                    0x0000000103afb71e
 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
 const&, clang::TargetOptions const&, clang::LangOptions const&,
 llvm::StringRef, llvm::Module*, clang::BackendAction,
 llvm::raw_pwrite_stream*) + 7820
 15 clang                    0x0000000103c2e736
 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 520
 16 clang                    0x0000000103f24291
 clang::ParseAST(clang::Sema&, bool, bool) + 506
 17 clang                    0x0000000103d863bf
 clang::FrontendAction::Execute() + 73
 18 clang                    0x0000000103d5af4a
 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 758
 19 clang                    0x0000000103db3c82
 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3818
 20 clang                    0x0000000103a97d00
 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1394
 21 clang                    0x0000000103a96bff main + 8501
 22 libdyld.dylib            0x00007fff95acb5ad start + 1
 23 libdyld.dylib            0x0000000000000099 start + 1783843565
 Stack dump:
 0.      Program arguments: /opt/local/libexec/llvm-3.8/bin/clang -cc1
 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror
 =deprecated-objc-isa-usage -emit-obj -disable-free -main-file-name
 integer.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
 -mdisable-fp-elim -menable-no-infs -menable-no-nans -menable-unsafe-fp-
 math -fno-signed-zeros -freciprocal-math -ffp-contract=fast -ffast-math
 -masm-verbose -munwind-tables -target-cpu haswell -target-feature -sse4a
 -target-feature -avx512bw -target-feature +cx16 -target-feature -tbm
 -target-feature +xsave -target-feature -fma4 -target-feature -avx512vl
 -target-feature -prfchw -target-feature +bmi2 -target-feature -adx
 -target-feature -xsavec -target-feature +fsgsbase -target-feature +avx
 -target-feature -avx512cd -target-feature -avx512pf -target-feature +rtm
 -target-feature +popcnt -target-feature +fma -target-feature +bmi -target-
 feature -xsaves -target-feature +sse4.1 -target-feature +avx2 -target-
 feature -avx512er -target-feature +sse -target-feature +lzcnt -target-
 feature -avx512f -target-feature +f16c -target-feature +mmx -target-
 feature -pku -target-feature +cmov -target-feature -xop -target-feature
 -rdseed -target-feature +movbe -target-feature +hle -target-feature
 +xsaveopt -target-feature -sha -target-feature +sse3 -target-feature
 -avx512dq -target-feature +aes -target-feature +pclmul -target-feature
 +rdrnd -target-feature +sse2 -target-feature +ssse3 -target-feature
 +sse4.2 -target-linker-version 264.3.102 -dwarf-column-info -debugger-
 tuning=lldb -ffunction-sections -fdata-sections -coverage-file
 /Users/uri/src/cryptopp/integer.cpp -resource-dir
 /opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0 -stdlib=libc++ -Ofast
 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
 /Users/uri/src/cryptopp -ferror-limit 19 -fmessage-length 84 -stack-
 protector 1 -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-
 block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16
 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-
 slp -o integer.o -x c++ integer.cpp
 1.      <eof> parser at end of file
 2.      Per-module optimization passes
 3.      Running pass 'CallGraph Pass Manager' on module 'integer.cpp'.
 4.      Running pass 'Jump Threading' on function
 '@_ZN8CryptoPPrsERNSt3__113basic_istreamIcNS0_11char_traitsIcEEEERNS_7IntegerE'
 clang: error: unable to execute command: Abort trap: 6
 clang: error: clang frontend command failed due to signal (use -v to see
 invocation)
 clang version 3.8.0 (branches/release_38 262722)
 Target: x86_64-apple-darwin15.5.0
 Thread model: posix
 InstalledDir: /opt/local/libexec/llvm-3.8/bin
 clang: note: diagnostic msg: PLEASE submit a bug report to
 http://llvm.org/bugs/ and include the crash backtrace, preprocessed
 source, and associated run script.
 clang: note: diagnostic msg:
 ********************

 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 Preprocessed source(s) and associated run script(s) are located at:
 clang: note: diagnostic msg:
 /var/folders/pd/mxn5kp_55jg23x7jjd10gtwm0000gn/T/integer-040d12.cpp
 clang: note: diagnostic msg:
 /var/folders/pd/mxn5kp_55jg23x7jjd10gtwm0000gn/T/integer-040d12.sh
 clang: note: diagnostic msg:

 ********************
 }}}

 On a side-note, could you please explain how the version name/number of
 this port changes? I recall seeing clang-3.7 @3.7-rXXXX, which then
 changed to clang-3.7 @3.7.1_2. Now clang-3.8 is @3.8-r262722_1. At what
 point would it become @3.8.1_x?

-- 
Ticket URL: <https://trac.macports.org/ticket/51478#comment:9>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list