New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34612 (closed enhancement: worksforme)

Opened 12 months ago

Last modified 12 months ago

llvm-3.1 Please add --enable-shared

Reported by: schnetter@… Owned by: jeremyhu@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: llvm-3.1

Description

I am building pocl <https://launchpad.net/pocl>, an open-source OpenCL compiler built on llvm 3.1. pocl requires configuring llvm with the option --enable-shared, so that llvm can be called as a library from the OpenCL runtime library. In addition, llvm needs to be built with "make REQUIRES_RTTI=1". This is also described in <https://bazaar.launchpad.net/~pocl/pocl/trunk/view/head:/INSTALL>.

I currently have to build llvm and clang myself, adding these options while configuring and building. Could this be made the default? If not, could this be made into a variant?

Change History

comment:1 Changed 12 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to jeremyhu@…

comment:2 Changed 12 months ago by jeremyhu@…

  • Status changed from new to closed
  • Resolution set to worksforme

That is how the port already is:

~/src/macports/dports/lang/llvm-3.1 $ grep RTTI Portfile
build.env-append        VERBOSE=1 REQUIRE_RTTI=1
destroot.env-append     VERBOSE=1 REQUIRE_RTTI=1

~/src/macports/dports/lang/llvm-3.1 $ grep shared Portfile
configure.args          --enable-bindings=none --enable-libffi --enable-shared --enable-jit \

comment:3 Changed 12 months ago by jeremyhu@…

You're probably just not pointing pocl to the right llvm-config. Make sure you do something like:

LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.1
Note: See TracTickets for help on using tickets.