[cfe-dev] Building clang 5 (for coroutines)

Kirit Sælensminde via cfe-dev cfe-dev at lists.llvm.org
Wed Jun 14 19:13:25 PDT 2017


On 14/06/17 23:41, Tim Northover wrote:
> make VERBOSE=1

I think this should be the relevant part (below). Note though that I'm 
not building in docker -- I'm building on my normal dev Ubuntu Zesty 
machine using the normal packaged compilers. Once I get a working build 
I intend to put it in docker so my colleagues can also use it as well.


make[2]: Entering directory 
'/home/kirit/Projects/language/clang-docker/llvm-build'
[ 63%] Linking CXX shared library ../../../lib/libc++.so
cd 
/home/kirit/Projects/language/clang-docker/llvm-build/projects/libcxx/lib 
&& /usr/bin/cmake -E cmake_link_script 
CMakeFiles/cxx_shared.dir/link.txt --verbose=1
/usr/bin/g++  -fPIC  -fPIC -fvisibility-inlines-hidden -Werror=date-time 
-std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual 
-Wno-missing-field-initializers -Wno-long-long -Wno-maybe-uninitialized 
-Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections 
-fdata-sections -O3  -fPIC -nodefaultlibs  -Wl,-z,defs -shared 
-Wl,-soname,libc++.so.1 -o ../../../lib/libc++.so.1.0 
CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/any.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/bind.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/chrono.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/condition_variable.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/debug.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/exception.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/functional.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/future.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/hash.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/ios.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/iostream.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/memory.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/mutex.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/new.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/optional.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/random.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/regex.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/shared_mutex.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/stdexcept.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/string.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/strstream.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/system_error.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/thread.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/typeinfo.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/utility.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/valarray.cpp.o 
CMakeFiles/cxx_objects.dir/__/src/variant.cpp.o -lpthread -lc -lm -lrt 
-lgcc_s
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function 
`std::__1::(anonymous 
namespace)::__throw_runtime_error(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&)':
locale.cpp:(.text.unlikely._ZNSt3__112_GLOBAL__N_1L21__throw_runtime_errorERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+0xf): 
undefined reference to `__cxa_allocate_exception'
locale.cpp:(.text.unlikely._ZNSt3__112_GLOBAL__N_1L21__throw_runtime_errorERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+0x33): 
undefined reference to `__cxa_throw'
locale.cpp:(.text.unlikely._ZNSt3__112_GLOBAL__N_1L21__throw_runtime_errorERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+0x3e): 
undefined reference to `__cxa_free_exception'
CMakeFiles/cxx_objects.dir/__/src/locale.cpp.o: In function 
`std::__1::ctype_byname<wchar_t>::do_widen(char) const':




More information about the cfe-dev mailing list