[Bug 17910] New: test fails to build on FreeBSD w/ clang & libstdc++

Bug ID 17910
Summary test fails to build on FreeBSD w/ clang & libstdc++
Product lldb
Version unspecified
Hardware PC
OS FreeBSD
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter emaste@freebsd.org
Classification Unclassified

We include clang and libc++ in the FreeBSD 9.x base tree, but the default
standard c++ lib for both compilers is libstdc++, and a rather old version at
that.  This causes some tests that build with clang but without -stdlib=libc++
to fail to build - e.g.:

Building LLDB Driver (test_listener_event_process_state) from sources
driver.cpp listener_test.cpp test_listener_event_process_state.cpp

os command: [['/bin/sh', '-c', "gmake clean
LD_EXTRAS='-L/tank/emaste/src/llvm/tools/lldb/test/../../../build-nodebug/bin
-L/tank/emaste/src/llvm/build/lib -Wl,-rpath,/tank/emaste/src/llvm/build/lib
-llldb' EXE='test_listener_event_process_state' CFLAGS_EXTRAS='-std=c++11
-I/tank/emaste/src/llvm/tools/lldb/test/../include' CXX_SOURCES='driver.cpp
listener_test.cpp test_listener_event_process_state.cpp';gmake  ARCH=amd64
CC=/usr/bin/clang
LD_EXTRAS='-L/tank/emaste/src/llvm/tools/lldb/test/../../../build-nodebug/bin
-L/tank/emaste/src/llvm/build/lib -Wl,-rpath,/tank/emaste/src/llvm/build/lib
-llldb' EXE='test_listener_event_process_state' CFLAGS_EXTRAS='-std=c++11
-I/tank/emaste/src/llvm/tools/lldb/test/../include' CXX_SOURCES='driver.cpp
listener_test.cpp test_listener_event_process_state.cpp'"]]
with pid: 50512
stdout: rm -rf "test_listener_event_process_state" ""  driver.o listener_test.o
test_listener_event_process_state.o *.d.* *.d *.o *.pyc *.dSYM driver.d
listener_test.d test_listener_event_process_state.d   *.d.[0-9] *.d.[0-9][0-9]
*.d.[0-9][0-9][0-9] *.d.[0-9][0-9][0-9][0-9] *.d.[0-9][0-9][0-9][0-9][0-9]
/usr/bin/clang++ -g -O0 -mamd64  -std=c++11
-I/tank/emaste/src/llvm/tools/lldb/test/../include   -c -o
test_listener_event_process_state.o test_listener_event_process_state.cpp

stderr: clang++: warning: argument unused during compilation: '-mamd64'
test_listener_event_process_state.cpp:6:10: fatal error: 'atomic' file not
found
#include <atomic>
         ^
1 error generated.

emaste@freebsd.org changed bug 17910

What | Removed | Added |

  • | - | - |
    Status | NEW | RESOLVED |
    Resolution | — | FIXED |
    Assignee | lldb-dev@cs.uiuc.edu | emaste@freebsd.org |

Comment # 2 on bug 17910 from emaste@freebsd.org

[http://llvm.org/viewvc/llvm-project?view=revision&revision=200646](http://llvm.org/viewvc/llvm-project?view=revision&revision=200646)