Changes between Initial Version and Version 1 of Ticket #58442, comment 50


Ignore:
Timestamp:
May 10, 2019, 10:53:15 PM (5 years ago)
Author:
mouse07410 (Mouse)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58442, comment 50

    initial v1  
    154154
    155155In short, {{{-g}}} seems to be the trigger. And no matter what you set LLVM to, it will use Macports LLVM-7.0 because Macports GCC9 depends on Macports Clang-7.0 that uses Macports LLVM-7.0.
     156
     157**Important detail:**
     158This only happens with {{{cctools +llvm70}}} or {{{cctools +llvm80}}}:
     159{{{
     160$ g++ -g -o t t.cpp
     161Assertion failed: (!CreatedADWARFSection && "Creating regular section after DWARF"), function ChangeSection, file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-8.0/llvm-8.0/work/llvm-8.0.0.src/lib/MC/MCMachOStreamer.cpp, line 159.
     162Stack dump:
     1630.      Program arguments: /opt/local/libexec/llvm-8.0/bin/clang -cc1as -triple x86_64-apple-macosx10.14.0 -filetype obj -main-file-name cc80Nniq.s -target-cpu penryn -fdebug-compilation-dir /Users/ur20980/src/ntl-11.3.2/src -dwarf-debug-producer clang version 8.0.0 (tags/RELEASE_800/final) -dwarf-version=4 -mrelocation-model pic -o /var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T//ccvjQTJF.o /var/folders/c6/lnc_0m093ys8w16md_fm1mnxhtfnj8/T//cc80Nniq.s
     1640  libLLVM.dylib            0x000000010b6608eb llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
     1651  libLLVM.dylib            0x000000010b660ce7 SignalHandler(int) + 188
     1662  libsystem_platform.dylib 0x00007fff7fad1b5d _sigtramp + 29
     1673  libsystem_platform.dylib 000000000000000000 _sigtramp + 2152916160
     1684  libsystem_c.dylib        0x00007fff7f9916a6 abort + 127
     1695  libsystem_c.dylib        0x00007fff7f95a20d basename_r + 0
     1706  libLLVM.dylib            0x000000010c2ed4a8 (anonymous namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr const*) + 762
     1717  libLLVM.dylib            0x000000010c2fac24 llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) + 96
     1728  libLLVM.dylib            0x000000010c3341c3 (anonymous namespace)::DarwinAsmParser::parseSectionSwitch(llvm::StringRef, llvm::StringRef, unsigned int, unsigned int, unsigned int) + 195
     1739  libLLVM.dylib            0x000000010c3342d6 bool llvm::MCAsmParserExtension::HandleDirective<(anonymous namespace)::DarwinAsmParser, &((anonymous namespace)::DarwinAsmParser::parseSectionDirectiveConstructor(llvm::StringRef, llvm::SMLoc))>(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc) + 44
     17410 libLLVM.dylib            0x000000010c31e5fe (anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 3740
     17511 libLLVM.dylib            0x000000010c319f75 (anonymous namespace)::AsmParser::Run(bool, bool) + 389
     17612 clang                    0x00000001099f9cc8 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 10800
     17713 clang                    0x00000001099f4ced main + 7866
     17814 libdyld.dylib            0x00007fff7f8ec3d5 start + 1
     17915 libdyld.dylib            0x0000000000000014 start + 2154904640
     180clang: error: unable to execute command: Abort trap: 6
     181clang: error: clang integrated assembler command failed due to signal (use -v to see invocation)
     182clang version 8.0.0 (tags/RELEASE_800/final)
     183Target: x86_64-apple-darwin18.5.0
     184Thread model: posix
     185InstalledDir: /opt/local/libexec/llvm-8.0/bin
     186clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
     187clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
     188$ port installed cctools
     189The following ports are currently installed:
     190  cctools @921_1+llvm80 (active)
     191$
     192}}}
     193
     194With {{{cctools +xcode}}} everything's kosher:
     195{{{
     196$ port installed cctools
     197The following ports are currently installed:
     198  cctools @921_1+llvm80
     199  cctools @921_1+xcode (active)
     200$ g++ -g -o t t.cpp
     201$ ./t
     202$
     203}}}
     204