[compiler-rt] r233071 - [ASan] Do not link ASan OSX runtime with -lc++abi (which was added in r233036)
Anna Zaks
ganna at apple.com
Tue Mar 24 11:24:23 PDT 2015
> On Mar 24, 2015, at 10:46 AM, Justin Bogner <mail at justinbogner.com> wrote:
>
> Alexander Potapenko <glider at google.com <mailto: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 <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/ <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 <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.
If we are reverting all this, 233035 needs to be reverted as well.
Maybe we should XFAIL the two tests instead?
CC-ing Alexey.
>
>> 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
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu <mailto:llvm-commits at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits <http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150324/5f48932d/attachment.html>
More information about the llvm-commits
mailing list