[LLVMbugs] [Bug 10191] New: compiling libcxx with clang
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 25 01:33:33 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10191
Summary: compiling libcxx with clang
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: hiraditya at msn.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6770)
--> (http://llvm.org/bugs/attachment.cgi?id=6770)
modified $LIBCXX_DIR/lib/buildit.sh
My OS is Ubuntu-11.04
i compiled llvm with clang as per the user manual successfully.
then i tried to compile libcxx with clang++,
i made modifications to the $LIBCXX_DIR/lib/buildit by reading the following
lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013228.html
The buildit.sh is attached along with this report.
with the modified buildit.sh i get following errors. It seems clang++ is unable
to compile 'string' successfully.
Here is the complete compilation report:
vmplanet at kubuntu-vm:~/usr/libcxx/lib$ ./buildit
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include
../src/algorithm.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/bind.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/chrono.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include
../src/condition_variable.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include
../src/exception.cpp
../src/exception.cpp:85:6: warning: #warning uncaught_exception not yet
implemented [-W#warnings]
#warning uncaught_exception not yet implemented
^
../src/exception.cpp:119:6: warning: #warning exception_ptr not yet implemented
[-W#warnings]
#warning exception_ptr not yet implemented
^
../src/exception.cpp:130:6: warning: #warning exception_ptr not yet implemented
[-W#warnings]
#warning exception_ptr not yet implemented
^
../src/exception.cpp:146:6: warning: #warning exception_ptr not yet implemented
[-W#warnings]
#warning exception_ptr not yet implemented
^
../src/exception.cpp:181:6: warning: #warning exception_ptr not yet implemented
[-W#warnings]
#warning exception_ptr not yet implemented
^
../src/exception.cpp:193:6: warning: #warning exception_ptr not yet implemented
[-W#warnings]
#warning exception_ptr not yet implemented
^
6 warnings generated.
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/future.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/hash.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/ios.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/iostream.cpp
clang++ -c -g -Os -fPIC -std=c++0x -nostdinc++ -I../include ../src/locale.cpp
In file included from ../src/locale.cpp:10:
../include/string:2122:10: error: overload resolution selected deleted operator
'='
__r_ = _STD::move(__str.__r_);
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
../include/string:2133:5: note: in instantiation of member function
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::__move_assign'
requested here
__move_assign(__str, integral_constant<bool,
^
../src/locale.cpp:4772:10: note: in instantiation of member function
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::operator='
requested here
__c_ = __analyze('c', ct);
^
../include/memory:2050:7: note: candidate function (the implicit copy
assignment operator) has been explicitly deleted
class __compressed_pair
^
In file included from ../src/locale.cpp:10:
../include/string:2122:10: error: overload resolution selected deleted operator
'='
__r_ = _STD::move(__str.__r_);
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
../include/string:2133:5: note: in instantiation of member function
'std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
std::__1::allocator<wchar_t>
>::__move_assign' requested here
__move_assign(__str, integral_constant<bool,
^
../include/locale:2796:15: note: in instantiation of member function
'std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
std::__1::allocator<wchar_t> >::operator='
requested here
__nsn = __mp.negative_sign();
^
../include/memory:2050:7: note: candidate function (the implicit copy
assignment operator) has been explicitly deleted
class __compressed_pair
^
2 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list