<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - -fdebug-types-section unusable on macos"
   href="https://bugs.llvm.org/show_bug.cgi?id=38190">38190</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-fdebug-types-section unusable on macos
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jdevlieghere@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>labath@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>labath4 ~/ll/build/opt $ bin/clang -fdebug-types-section -target
x86_64-pc-linux -x c++ - -o /dev/null -c -g <<<"struct A{}; void f(A a) { }"

labath4 ~/ll/build/opt $ bin/clang -target x86_64-apple-macosx -x c++ - -o
/dev/null -c -g <<<"struct A{}; void f(A a) { }"
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on
the command line to use the
      libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.

labath4 ~/ll/build/opt $ bin/clang -fdebug-types-section -target
x86_64-apple-macosx -x c++ - -o /dev/null -c -g <<<"struct A{}; void f(A a) {
}"
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on
the command line to use the
      libc++ standard library instead [-Wstdlibcxx-not-found]
Stack dump:
0.      Program arguments:
/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0 -cc1 -triple
x86_64-apple-macosx10.4.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name -
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -faligned-alloc-unavailable -target-cpu core2
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2
-debugger-tuning=lldb -mllvm -generate-type-units -coverage-notes-file
/dev/null.gcno -resource-dir
/usr/local/google/home/labath/ll/build/opt/lib/clang/7.0.0 -fdeprecated-macro
-fdebug-compilation-dir /usr/local/google/home/labath/ll/build/opt
-ferror-limit 19 -fmessage-length 105 -fblocks -fblocks-runtime-optional
-fencode-extended-block-signature -fregister-global-dtors-with-atexit
-fobjc-runtime=macosx-10.4.0 -fobjc-dispatch-method=non-legacy -fcxx-exceptions
-fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics
-o /dev/null -x c++ - 
1.      <eof> parser at end of file
2.      Code generation
#0 0x000000000166a994 PrintStackTraceSignalHandler(void*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x166a994)
#1 0x0000000001668ab0 llvm::sys::RunSignalHandlers()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1668ab0)
#2 0x000000000166ab42 SignalHandler(int)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x166ab42)
#3 0x00007fb27f9a50c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x0000000001438860 llvm::MCExpr::findAssociatedFragment() const
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1438860)
#5 0x0000000001c75674 llvm::AsmPrinter::emitDwarfSymbolReference(llvm::MCSymbol
const*, bool) const
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c75674)
#6 0x0000000001c99af2 llvm::DwarfUnit::emitCommonHeader(bool,
llvm::dwarf::UnitType)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c99af2)
#7 0x0000000001c99b7b llvm::DwarfTypeUnit::emitHeader(bool)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c99b7b)
#8 0x0000000001c90baa llvm::DwarfFile::emitUnit(llvm::DwarfUnit*, bool)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c90baa)
#9 0x0000000001c85410
llvm::DwarfDebug::addDwarfTypeUnitType(llvm::DwarfCompileUnit&,
llvm::StringRef, llvm::DIE&, llvm::DICompositeType const*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c85410)
#10 0x0000000001c94ef1 llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c94ef1)
#11 0x0000000001c94c2c llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType
const*, llvm::dwarf::Attribute)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c94c2c)
#12 0x0000000001cc397f
llvm::DwarfCompileUnit::applyVariableAttributes(llvm::DbgVariable const&,
llvm::DIE&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1cc397f)
#13 0x0000000001c7e33a llvm::DwarfDebug::finalizeModuleInfo()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c7e33a)
#14 0x0000000001c7e778 llvm::DwarfDebug::endModule()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c7e778)
#15 0x0000000001c6d518 llvm::AsmPrinter::doFinalization(llvm::Module&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c6d518)
#16 0x00000000012a5353 llvm::FPPassManager::doFinalization(llvm::Module&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x12a5353)
#17 0x00000000012a5774 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x12a5774)
#18 0x00000000017ddb55 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> >)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x17ddb55)
#19 0x0000000001ea2180
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1ea2180)
#20 0x00000000025c5e04 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x25c5e04)
#21 0x0000000001bafeaf clang::FrontendAction::Execute()
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1bafeaf)
#22 0x0000000001b729f8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1b729f8)
#23 0x0000000001c3d62d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x1c3d62d)
#24 0x000000000087c436 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x87c436)
#25 0x000000000087ac84 main
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x87ac84)
#26 0x00007fb27e5242b1 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x202b1)
#27 0x000000000087812a _start
(/usr/local/google/home/labath/ll/build/opt/bin/clang-5.0+0x87812a)
clang-5.0: error: unable to execute command: Segmentation fault
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0 (trunk 337260) (llvm/trunk 337262)
Target: x86_64-apple-macosx
Thread model: posix
InstalledDir: /usr/local/google/home/labath/ll/build/opt/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: Error generating preprocessed source(s) -
ignoring input from stdin.
clang-5.0: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>