Skip to content

Open MPI Fails to Build Under OS X v10.11.6 'El Capitan' Due to the Absence of javah in Java 10 #5000

Closed
@RandomDSdevel

Description

@RandomDSdevel

Background information

What version of Open MPI are you using? (e.g., v1.10.3, v2.1.0, git branch name and hash, etc.)

     The version of Open MPI that I was attempting to build from source and install was v3.0.1 (I currently have v3.0.0 installed.)

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

     I initially installed Open MPI via the Homebrew package manager for OS X/macOS using the following command:

HOMEBREW_BUILD_FROM_SOURCE=1 brew install -vd --build-from-source open-mpi --with-java --with-mpi-thread-multiple

I keep Open MPI up to date by running the following command when upgrading only it:

HOMEBREW_BUILD_FROM_SOURCE=1 brew upgrade -vd --build-from-source open-mpi --with-java --with-mpi-thread-multiple

(Please note, however, that setting HOMEBREW_BUILD_FROM_SOURCE=1 is not standard practice for users of Homebrew, so individuals attempting to reproduce this issue should omit it if they either already have all Homebrew dependencies for Open MPI installed from source or binary or don't mind having Homebrew install 'bottles' pre-built using the project's CI.)

Please describe the system on which you are running

  • Operating system/version: Apple OS X v10.11.6 'El Capitan,' build 15G20015
  • Computer hardware: Apple Mid-2007 Aluminum iMac (iMac7,1) (More details available on request.)
  • Network type: Cable broadband over local wireless (More details available on request.)

Details of the problem

     Open MPI fails to build its Java bindings from source under Homebrew on systems which only have Java 10 installed due to how its build system looks for and subsequently cannot find javah, which was deprecated in Java 9 in removed entirely in Java 10. I also reported this problem downstream to Homebrew as Homebrew/homebrew-core#26009 before opening this issue here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions