[llvm-bugs] [Bug 24825] New: Regression(r246402): Can't build with libc++ and LLVM_ENABLE_THREADS=OFF

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 15 11:23:24 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24825

            Bug ID: 24825
           Summary: Regression(r246402): Can't build with libc++ and
                    LLVM_ENABLE_THREADS=OFF
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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>
>::__construct<llvm::thread, const llvm::thread &>' requested here
            {__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>
>::construct<llvm::thread, const llvm::thread &>' requested here
                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>
>::__construct_backward<llvm::thread *>' requested here
    __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>
>::__emplace_back_slow_path<<lambda at
/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>
>::emplace_back<<lambda at
/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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150915/192c3bb8/attachment.html>


More information about the llvm-bugs mailing list