[MacPorts] #48550: llvm @ 3.7 doesn't include libraries in LLVMExports.cmake

MacPorts noreply at macports.org
Tue Aug 11 01:30:06 PDT 2015


#48550: llvm @ 3.7 doesn't include libraries in LLVMExports.cmake
----------------------+--------------------------------
 Reporter:  ppohja@…  |      Owner:  macports-tickets@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.3.3
 Keywords:            |       Port:
----------------------+--------------------------------
 In LLVM-3.6 all the exported libraries were declared with add_library()
 and their file system location in LLVMExpores.cmake. When trying to
 compile software that requires LLVM 3.7 (cpp-ethereum), I am getting a big
 number of errors like this:

 {{{
 CMake Error at
 /opt/local/libexec/llvm-3.7/share/llvm/cmake/LLVMExports.cmake:10
 (set_property):
   set_property could not find TARGET LLVMSupport.  Perhaps it has not yet
   been created.
 Call Stack (most recent call first):
   /opt/local/libexec/llvm-3.7/share/llvm/cmake/LLVMConfig.cmake:59
 (include)
   evmjit/CMakeLists.txt:51 (find_package)
 }}}

 It looks like the version of LLVMExports.cmake does not include the
 libraries provided by LLVM. I can get rid of these error messages by
 running
  `grep TARGET errlog |cut -d" " -f 8|cut -d"." -f 1 |sort|uniq|awk '{print
 "add_library(" $1 " STATIC IMPORTED)"}'`
 and adding the output to the file LLVMExports.cmake.

 My target software declares LLVM's usage as this:
 `llvm_map_components_to_libnames(LLVM_LIBS core support mcjit x86asmparser
 x86codegen ipo)` - and now my compilation fails on the missing component
 'core'.

 Don't know if this is an LLVM or macports issue.

-- 
Ticket URL: <https://trac.macports.org/ticket/48550>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list