llvm / clang does not build with new libc++
Marco Bröder
marco.broeder at gmx.eu
Sat Dec 1 10:03:53 UTC 2012
Hello,
since r243376 clang does not build with new libc++ anymore. Log attached.
Reverting back lib/libc++ or not using libc++ fixes it.
System: stable/9 amd64 r243742
WITHOUT_LIB32=yes
WITHOUT_PROFILE=yes
WITHOUT_SYSINSTALL=yes
WITH_CLANG=yes
WITH_CLANG_EXTRAS=yes
WITH_CLANG_IS_CC=yes
WITH_LIBCPLUSPLUS=yes
CPUTYPE?=athlon64-sse3
CXXFLAGS+= -stdlib=libc++ -std=c++11
CC=clang
CPP=clang-cpp
CXX=clang++
NO_WERROR=
WERROR=
#NO_FSCHG=
[...]
===> lib/clang/libclangcodegen (all)
[...]
clang++ -O2 -pipe
-I/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/include
-I/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/include
-I/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen
-I.
-I/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/../../lib/clang/include
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
-DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.0\"
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\"
-I/usr/obj/usr/src/tmp/legacy/usr/include -fno-exceptions -fno-rtti
-stdlib=libc++ -std=c++11 -c
/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp
-o CGDebugInfo.o
/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:1695:16:
error:
no matching member function for call to 'push_back'
ReplaceMap.push_back(std::make_pair(Ty.getAsOpaquePtr(), TC));
~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/v1/vector:676:36: note: candidate function not viable: no
known conversion from
'pair<typename __make_pair_return<void *>::type, typename
__make_pair_return<DIType
&>::type>' to 'const value_type' (aka 'const std::__1::pair<void *,
llvm::WeakVH>') for 1st
argument;
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/usr/include/c++/v1/vector:678:36: note: candidate function not viable: no
known conversion from
'pair<typename __make_pair_return<void *>::type, typename
__make_pair_return<DIType
&>::type>' to 'value_type' (aka 'std::__1::pair<void *, llvm::WeakVH>')
for 1st argument;
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:1806:16:
error:
no matching member function for call to 'push_back'
ReplaceMap.push_back(std::make_pair(Ty.getAsOpaquePtr(), T));
~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/v1/vector:676:36: note: candidate function not viable: no
known conversion from
'pair<typename __make_pair_return<void *>::type, typename
__make_pair_return<DIType
&>::type>' to 'const value_type' (aka 'const std::__1::pair<void *,
llvm::WeakVH>') for 1st
argument;
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/usr/include/c++/v1/vector:678:36: note: candidate function not viable: no
known conversion from
'pair<typename __make_pair_return<void *>::type, typename
__make_pair_return<DIType
&>::type>' to 'value_type' (aka 'std::__1::pair<void *, llvm::WeakVH>')
for 1st argument;
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
2 errors generated.
*** [CGDebugInfo.o] Error code 1
Stop in /usr/src/lib/clang/libclangcodegen.
*** [all] Error code 1
Stop in /usr/src/lib/clang.
*** [cross-tools] Error code 1
Stop in /usr/src.
*** [_cross-tools] Error code 1
Stop in /usr/src.
*** [toolchain] Error code 1
Stop in /usr/src.
--
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20121201/906431de/attachment.sig>
More information about the freebsd-stable
mailing list