[LLVMdev] developping pass under osx 10.10.3
Willy WOLFF
willy.mh.wolff at gmail.com
Sat May 2 07:31:07 PDT 2015
Hello there,
I try to develop llvm pass under OSX, but it won’t work.
I (mostly) follow the tutorial at http://llvm.org/docs/CMake.html
When I try to produce the Makefile for my pass with cmake, I get this message:
…
-- HelloPass ignored -- Loadable modules not supported on this platform.
…
This is my CMakeList.txt of my pass:
—
cmake_minimum_required(VERSION 2.8)
find_package(LLVM REQUIRED CONFIG)
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(AddLLVM)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
add_llvm_loadable_module(HelloPass
HelloPass.cpp)
—
Did I forget something??
Cheers,
Willy
PS:
My installation of llvm is a fresh install from “release_36“ svn branch.
make check logs:
Testing Time: 283.81s
********************
Failing Tests (4):
LLVM :: Transforms/LoopUnroll/unroll-pragmas.ll
LLVM :: Transforms/SLPVectorizer/X86/ordering.ll
LLVM :: Transforms/SLPVectorizer/X86/phi.ll
LLVM :: Transforms/SLPVectorizer/X86/phi3.ll
Expected Passes : 12174
Expected Failures : 92
Unsupported Tests : 55
Unexpected Failures: 4
make[3]: *** [test/CMakeFiles/check-llvm] Error 1
make[2]: *** [test/CMakeFiles/check-llvm.dir/all] Error 2
make[1]: *** [test/CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2
and the hello pass example in llvm source is working correctly
More information about the llvm-dev
mailing list