Issue 56693
Summary Clang: Test failures due to "LLVM ERROR: picking up libstdc++ headers is unimplemented on AIX"
Labels new issue
Assignees
Reporter marv
    I'm building clang with `-DCLANG_DEFAULT_CXX_STDLIB:STRING=libstdc++` and `-DCLANG_DEFAULT_RTLIB:STRING=libgcc` and get the following test failures:
```
  Clang :: Driver/cxa-atexit.cpp
  Clang :: Driver/ignore-xcoff-visibility.cpp
  Clang :: Driver/openbsd.cpp
  Clang :: Driver/ppc-crbits.cpp
  Clang :: Driver/ppc-isa-features.cpp
  Clang-Unit :: Interpreter/ExceptionTests/./ClangReplInterpreterExceptionTests/0/1
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/1/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/13/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/14/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/16/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/17/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/19/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/2/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/20/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/22/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/23/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/34/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/35/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/37/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/38/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/40/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/41/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/43/45
  Clang-Unit :: StaticAnalyzer/./StaticAnalysisTests/44/45
```
mostly due to clang/LLVM throwing the following error and bailing out:
```
LLVM ERROR: picking up libstdc++ headers is unimplemented on AIX
```
for example:
```
Command Output (stderr):
--
/var/tmp/paludis/build/dev-lang-clang-scm/work/llvm-project/clang/test/Driver/cxa-atexit.cpp:29:15: error: CHECK-AIX: expected string not found i
n input
// CHECK-AIX: "-fno-use-cxa-atexit"
              ^
<stdin>:1:1: note: scanning from here
clang version 15.0.0 (/var/cache/paludis/distfiles/scm/llvm-project b33aeee3e3766191ba7ffe2f7b60016ba1fddff2)
^
<stdin>:8:191: note: possible intended match here
0. Program arguments: /var/tmp/paludis/build/dev-lang-clang-scm/work/build/bin/clang -### -target powerpc-ibm-aix-xcoff -c /var/tmp/paludis/build
/dev-lang-clang-scm/work/llvm-project/clang/test/Driver/cxa-atexit.cpp -o /dev/null
                                                                                                                                                                                              ^

Input file: <stdin>
Check file: /var/tmp/paludis/build/dev-lang-clang-scm/work/llvm-project/clang/test/Driver/cxa-atexit.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: clang version 15.0.0 (/var/cache/paludis/distfiles/scm/llvm-project b33aeee3e3766191ba7ffe2f7b60016ba1fddff2)
check:29'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match fou
nd
            2: Target: powerpc-ibm-aix-xcoff
check:29'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            3: Thread model: posix
check:29'0     ~~~~~~~~~~~~~~~~~~~~
            4: InstalledDir: /var/tmp/paludis/build/dev-lang-clang-scm/work/build/bin
check:29'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            5: LLVM ERROR: picking up libstdc++ headers is unimplemented on AIX
check:29'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            6: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, [...]
```

What's the proper way to fix this? Should the tests even be executed when `clang` is configure to use `libstdc++` headers by default? Or should the tests make sure that `libc++` headers are picked up? Any help with this is appreciated
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to