[compiler-rt] r233071 - [ASan] Do not link ASan OSX runtime with -lc++abi (which was added in r233036)

Justin Bogner mail at justinbogner.com
Tue Mar 24 10:46:24 PDT 2015


Alexander Potapenko <glider at google.com> writes:
> Author: glider
> Date: Tue Mar 24 08:10:55 2015
> New Revision: 233071
>
> URL: http://llvm.org/viewvc/llvm-project?rev=233071&view=rev
> Log:
> [ASan] Do not link ASan OSX runtime with -lc++abi (which was added in r233036)
> This should fix the OSX Jenkins build at
> http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_check/

This didn't quite work - compiler-rt doesn't even link after this
change:

  Undefined symbols for architecture x86_64:
    "typeinfo for __cxxabiv1::__class_type_info", referenced from:
        __ubsan::checkDynamicType(void*, void*, unsigned long) in ubsan_type_hash.cc.o
        isDerivedFromAtOffset(__cxxabiv1::__class_type_info const*, __cxxabiv1::__class_type_info const*, long) in ubsan_type_hash.cc.o
        findBaseAtOffset(__cxxabiv1::__class_type_info const*, long) in ubsan_type_hash.cc.o

See here:

  http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_build/2492/consoleFull#-158682280549ba4694-19c4-4d7e-bec5-911270d8a58c

I've reverted both r233071 and r233036 in r233097 to get things working
again.

> Modified:
>     compiler-rt/trunk/CMakeLists.txt
>
> Modified: compiler-rt/trunk/CMakeLists.txt
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=233071&r1=233070&r2=233071&view=diff
> ==============================================================================
> --- compiler-rt/trunk/CMakeLists.txt (original)
> +++ compiler-rt/trunk/CMakeLists.txt Tue Mar 24 08:10:55 2015
> @@ -304,8 +304,7 @@ if(APPLE)
>    set(DARWIN_iossim_CFLAGS
>      -mios-simulator-version-min=7.0 -isysroot ${IOSSIM_SDK_DIR})
>    set(DARWIN_osx_LINKFLAGS -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION}
> -     -stdlib=libc++
> -     -lc++abi)
> +     -stdlib=libc++)
>    set(DARWIN_iossim_LINKFLAGS
>      -Wl,-ios_simulator_version_min,7.0.0
>      -mios-simulator-version-min=7.0
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list