[MacPorts] #58917: llvm-8.0 fails to build on older sytems (darwin 13 and less) when go is installed, as it tries to build the go bindings but go needs special attention to work on these systems

MacPorts noreply at macports.org
Thu Sep 19 20:53:10 UTC 2019


#58917: llvm-8.0 fails to build on older sytems (darwin 13 and less) when go is
installed, as it tries to build the go bindings but go needs special
attention to work on these systems
-----------------------+----------------------
  Reporter:  iEFdev    |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.5.4
Resolution:            |   Keywords:
      Port:  llvm-8.0  |
-----------------------+----------------------

Comment (by kencu):

 This switch is in the current tree <https://reviews.llvm.org/D42026>.

 Looks like you can turn them all off with `-DLLVM_ENABLE_BINDINGS=OFF`.

 If you leave them on (the default) then `llvm/trunk/cmake/config-ix.cmake`
 will set up the bindings list depending on whether `go` and `ocaml` are
 found by cmake, adding them automatically to `LLVM_BINDINGS`.

 1. I'm not sure at this moment if you can pass in `-DLLVM_BINDINGS=XYZ`
 and specify just one of them.
 1. I see there are also python bindings. I guess they are not included in
 the bindings being built.

 There is also this mysterious block in the top level `CMakeLists.txt`
 {{{
 foreach( binding ${LLVM_BINDINGS_LIST} )
   if( EXISTS "${LLVM_MAIN_SRC_DIR}/bindings/${binding}/CMakeLists.txt" )
     add_subdirectory(bindings/${binding})
   endif()
 endforeach()
 }}}
 and I am not sure if that is doing anything much useful.

-- 
Ticket URL: <https://trac.macports.org/ticket/58917#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list