[cfe-dev] svn trunk does not build? ld error with sanitizer_procmaps_linux.cc.o

Sean McBride sean at rogue-research.com
Thu Feb 26 15:42:18 PST 2015


On Thu, 26 Feb 2015 13:04:17 -0500, Sean McBride said:

>This seems to happen to me a lot, but I've just tried rebuilding from
>current svn trunk (r230645) and it fails:
>
>[ 15%] Building CXX object projects/compiler-rt/lib/sanitizer_common/
>CMakeFiles/RTSanitizerCommon.iossim.dir/sanitizer_procmaps_linux.cc.o
>ld: requested re-export symbol std::set_unexpected(void (*)()) is not
>from a dylib, but from CMakeFiles/cxx.dir/__/src/exception.cpp.o
> for architecture x86_64
>
>This is on OS X 10.8.5, building with Apple LLVM version 5.0
>(clang-500.2.79) (based on LLVM 3.3svn) (from Xcode 5.0.2), and CMake 3.2rc2.

I've just squeezed the problem.  r230118 builds, r230119 does not.

------------------
Author: ericwf
Date: Fri Feb 20 20:26:24 2015
New Revision: 230119

URL: http://llvm.org/viewvc/llvm-project?rev=230119&view=rev
Log:
[libcxx] Move to using libc++abi2.exp as the default symbol list for libc++

Summary:
libc++abi2.exp should be used whenever `cxxabi.h` defines `_LIBCPPABI_VERSION`. 
This macro was added to libc++abi in 2012 in r149632. For this reason we should 
use libc++abi2.exp as default unless otherwise specified.

Also when building against an in-tree libc++abi we definitely want to use 
libc++abi2.exp.

I would love to know what OSX was the last to use libc++abi.exp but I can only 
test on 10.9.
------------------






More information about the cfe-dev mailing list