[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):
    projects/compiler-rt/cmake/base-config-ix.cmake:151 (TEST_BIG_ENDIAN)
    projects/compiler-rt/cmake/config-ix.cmake:138 (test_targets)
    projects/compiler-rt/CMakeLists.txt:99 (include)

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.


https://reviews.llvm.org/D38277





More information about the cfe-commits mailing list