<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Regression(r246402): Can't build with libc++ and LLVM_ENABLE_THREADS=OFF"
href="https://llvm.org/bugs/show_bug.cgi?id=24825">24825</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression(r246402): Can't build with libc++ and LLVM_ENABLE_THREADS=OFF
</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>All
</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>Support Libraries
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The build fails like so:
[729/2067] Building CXX object
lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ParallelCG.cpp.o
FAILED: /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default
-std=c++11 -fcolor-diagnostics -O3 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-Ilib/CodeGen -I/Users/thakis/src/llvm-rw/lib/CodeGen -Iinclude
-I/Users/thakis/src/llvm-rw/include -UNDEBUG -fno-exceptions -fno-rtti -MMD
-MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ParallelCG.cpp.o -MF
lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ParallelCG.cpp.o.d -o
lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ParallelCG.cpp.o -c
/Users/thakis/src/llvm-rw/lib/CodeGen/ParallelCG.cpp
In file included from /Users/thakis/src/llvm-rw/lib/CodeGen/ParallelCG.cpp:14:
In file included from
/Users/thakis/src/llvm-rw/include/llvm/CodeGen/ParallelCG.h:17:
In file included from /Users/thakis/src/llvm-rw/include/llvm/ADT/ArrayRef.h:14:
In file included from
/Users/thakis/src/llvm-rw/include/llvm/ADT/SmallVector.h:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:627:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1641:31:
error: call to deleted constructor of 'llvm::thread'
::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1568:18:
note: in instantiation of function template specialization
'std::__1::allocator<llvm::thread>::construct<llvm::thread, const llvm::thread
&>' requested here
{__a.construct(__p, _VSTD::forward<_Args>(__args)...);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1449:14:
note: in instantiation of function template specialization
'std::__1::allocator_traits<std::__1::allocator<llvm::thread>
<span class="quote">>::__construct<llvm::thread, const llvm::thread &>' requested here</span >
{__construct(__has_construct<allocator_type, pointer, _Args...>(),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1531:17:
note: in instantiation of function template specialization
'std::__1::allocator_traits<std::__1::allocator<llvm::thread>
<span class="quote">>::construct<llvm::thread, const llvm::thread &>' requested here</span >
construct(__a, _VSTD::__to_raw_pointer(__end2-1),
_VSTD::move_if_noexcept(*--__end1));
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:839:21:
note: in instantiation of function template specialization
'std::__1::allocator_traits<std::__1::allocator<llvm::thread>
<span class="quote">>::__construct_backward<llvm::thread *>' requested here</span >
__alloc_traits::__construct_backward(this->__alloc(), this->__begin_,
this->__end_, __v.__begin_);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:1576:5:
note: in instantiation of member function 'std::__1::vector<llvm::thread,
std::__1::allocator<llvm::thread> >::__swap_out_circular_buffer' requested here
__swap_out_circular_buffer(__v);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:1593:9:
note: in instantiation of function template specialization
'std::__1::vector<llvm::thread, std::__1::allocator<llvm::thread>
<span class="quote">>::__emplace_back_slow_path<<lambda at</span >
/Users/thakis/src/llvm-rw/lib/CodeGen/ParallelCG.cpp:72:9>,
llvm::SmallVector<char, 0> >' requested here
__emplace_back_slow_path(_VSTD::forward<_Args>(__args)...);
^
/Users/thakis/src/llvm-rw/lib/CodeGen/ParallelCG.cpp:71:13: note: in
instantiation of function template specialization
'std::__1::vector<llvm::thread, std::__1::allocator<llvm::thread>
<span class="quote">>::emplace_back<<lambda at</span >
/Users/thakis/src/llvm-rw/lib/CodeGen/ParallelCG.cpp:72:9>,
llvm::SmallVector<char, 0> >' requested here
Threads.emplace_back(
^
/Users/thakis/src/llvm-rw/include/llvm/Support/thread.h:55:3: note: 'thread'
has been explicitly marked deleted here
thread(const thread &) = delete;
^
1 error generated.
Reverting r246402 locally fixes things.</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>