| 156 | |
| 157 | **Important detail:** |
| 158 | This only happens with {{{cctools +llvm70}}} or {{{cctools +llvm80}}}: |
| 159 | {{{ |
| 160 | $ g++ -g -o t t.cpp |
| 161 | Assertion 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. |
| 162 | Stack dump: |
| 163 | 0. 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 |
| 164 | 0 libLLVM.dylib 0x000000010b6608eb llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40 |
| 165 | 1 libLLVM.dylib 0x000000010b660ce7 SignalHandler(int) + 188 |
| 166 | 2 libsystem_platform.dylib 0x00007fff7fad1b5d _sigtramp + 29 |
| 167 | 3 libsystem_platform.dylib 000000000000000000 _sigtramp + 2152916160 |
| 168 | 4 libsystem_c.dylib 0x00007fff7f9916a6 abort + 127 |
| 169 | 5 libsystem_c.dylib 0x00007fff7f95a20d basename_r + 0 |
| 170 | 6 libLLVM.dylib 0x000000010c2ed4a8 (anonymous namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr const*) + 762 |
| 171 | 7 libLLVM.dylib 0x000000010c2fac24 llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) + 96 |
| 172 | 8 libLLVM.dylib 0x000000010c3341c3 (anonymous namespace)::DarwinAsmParser::parseSectionSwitch(llvm::StringRef, llvm::StringRef, unsigned int, unsigned int, unsigned int) + 195 |
| 173 | 9 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 |
| 174 | 10 libLLVM.dylib 0x000000010c31e5fe (anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*) + 3740 |
| 175 | 11 libLLVM.dylib 0x000000010c319f75 (anonymous namespace)::AsmParser::Run(bool, bool) + 389 |
| 176 | 12 clang 0x00000001099f9cc8 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*) + 10800 |
| 177 | 13 clang 0x00000001099f4ced main + 7866 |
| 178 | 14 libdyld.dylib 0x00007fff7f8ec3d5 start + 1 |
| 179 | 15 libdyld.dylib 0x0000000000000014 start + 2154904640 |
| 180 | clang: error: unable to execute command: Abort trap: 6 |
| 181 | clang: error: clang integrated assembler command failed due to signal (use -v to see invocation) |
| 182 | clang version 8.0.0 (tags/RELEASE_800/final) |
| 183 | Target: x86_64-apple-darwin18.5.0 |
| 184 | Thread model: posix |
| 185 | InstalledDir: /opt/local/libexec/llvm-8.0/bin |
| 186 | clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. |
| 187 | clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. |
| 188 | $ port installed cctools |
| 189 | The following ports are currently installed: |
| 190 | cctools @921_1+llvm80 (active) |
| 191 | $ |
| 192 | }}} |
| 193 | |
| 194 | With {{{cctools +xcode}}} everything's kosher: |
| 195 | {{{ |
| 196 | $ port installed cctools |
| 197 | The 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 | |