[PATCH] D38277: [compiler-rt}[CMake] Fix configuration on PowerPC with sanitizers
Jonas Hahnfeld via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 28 06:50:47 PDT 2017
Hahnfeld marked 2 inline comments as done.
Hahnfeld added a comment.
The error with `-DLLVM_USE_SANITIZER=Address` is
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at <...>/cmake/share/cmake-3.5/Modules/TestBigEndian.cmake:51 (message):
no suitable type found
Call Stack (most recent call first):
The reason is that the compile tests are performed with `-fsanitize=address -nodefaultlibs`. This gives a lot of undefined references because the runtime dependencies aren't linked in.
More information about the cfe-commits