[MacPorts] #48550: llvm @ 3.7 doesn't include libraries in LLVMExports.cmake
#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
#48550: llvm-3.7 doesn't include libraries in LLVMExports.cmake -----------------------+------------------------ Reporter: ppohja@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: llvm-3.7 | -----------------------+------------------------ Changes (by ionic@…): * cc: jeremyhu@…, ppohja@… (removed) * cc: larryv@… (added) * owner: macports-tickets@… => jeremyhu@… * port: => llvm-3.7 Comment: Please don't CC yourself - reporters are automatically notified of changes. Instead, remember to CC all maintainers and fill out the Port field next time. -- Ticket URL: <https://trac.macports.org/ticket/48550#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48550: llvm-3.7 doesn't include libraries in LLVMExports.cmake -----------------------+------------------------ Reporter: ppohja@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: llvm-3.7 | -----------------------+------------------------ Comment (by jeremyhu@…): This looks like an upstream issue. Do you see issues using llvm-3.8? I pushed changes today that move the port onto the cmake based build system instead of automake. -- Ticket URL: <https://trac.macports.org/ticket/48550#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48550: llvm-3.7 doesn't include libraries in LLVMExports.cmake -----------------------+------------------------ Reporter: ppohja@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: llvm-3.7 | -----------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => invalid Comment: No response. Closing. -- Ticket URL: <https://trac.macports.org/ticket/48550#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts