Skip to content

[Formula/open-mpi] Open MPI Fails to Build and Install Under OS X v10.11.6 'El Capitan' #26009

@RandomDSdevel

Description

@RandomDSdevel

Please note we will close your issue without comment if you delete, do not read, or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

Please always confirm that you:

  • are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question, do so on our Discourse: https://discourse.brew.sh.
  • have a problem with brew installing (or upgradeing or reinstalling) a single, official formula (not a cask?) If it's a general brew problem, please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap — e.g. Homebrew/homebrew-php — problem, please file this issue at the tap.
  • ran brew update and can still reproduce the problem? (Caveat: I suspended running brew updates while producing debugging logs for this issue to ensure that Homebrew Core would stay on the same revision between both log-collection runs I made, so me checking this box only applies with respect to the status of my system prior to my preparing to submit this issue. This should not, however, prove to be any sort of problem, as no commits to Homebrew Core since I started going down this rabbit hole appear to have touched any files that would be relevant here.)
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link? (N/A; see the next bullet point.)
  • if brew gist-logs didn't work (or, in this case, was not preferred:) ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why:)

         Upgrade my local, built-from-source copy of Open MPI from v3.0.0, Homebrew formula revision 2, to v3.0.1 in the course of going through my normal routine of keeping all of my software tools up to date.

  • What happened (include command output:)

         Homebrew failed to successfully build Open MPI from v3.0.0, Homebrew formula revision 2, to v3.0.1. My logs are:

    • here (from when I did set HOMEBREW_BUILD_FROM_SOURCE=1.)
    • here (from when I didn't.)

    In both cases, the exact point of failure manifested itself as follows:

    ⋮
    Making all in mpi/java
    Making all in java
      JAVAC    MPI.class
    Picked up _JAVA_OPTIONS:  -Duser.home=/Users/zadmin/Library/Caches/Homebrew/java_cache
      JAVAH    mpi_MPI.h
      JAVAH    mpi_CartParms.h
    Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/bin/javah" (-1)
    Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/bin/javah" (-1)
    make[3]: *** [mpi_CartParms.h] Error 2
    make[3]: *** Waiting for unfinished jobs....
    make[3]: *** [mpi_MPI.h] Error 2
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
    /usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
    BuildError: Failed executing: make all
    1. raise
    2. ignore
    3. backtrace
    4. irb
    5. shell
    Choose an action: 1
    ⋮
    

    The issue I describe in this report is thus due to Homebrew's open-mpi formula's --with-java option and the fact that javah was deprecated in Java 9.x and removed in Java 10.

  • What you expected to happen:

         For Homebrew to successfully build the new version of Open MPI from source and install it in the old version's place.

  • Step-by-step reproduction instructions (by running brew commands:)

    • With HOMEBREW_BUILD_FROM_SOURCE=1 (not supported with issue resolution:)

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

      Note that setting that environment variable as shown above probably doesn't make any difference in this case, as upgrading Open MPI doesn't depend on upgrading any of its dependencies given the states my Homebrew installation and the packages it manages are currently in, but I usually set it any time I run brew upgrade, just to be consistent.

    • Without HOMEBREW_BUILD_FROM_SOURCE=1 (given to show that this issue also occurs under a supported configuration:)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    javaJava use is a significant feature of the PR or issueoutdatedPR was locked due to age

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions