-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Description
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 (orupgradeing orreinstalling) a single, official formula (not a cask?) If it's a generalbrewproblem, please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new. If it's abrew caskproblem 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 updateand can still reproduce the problem? (Caveat: I suspended runningbrew 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(N/A; see the next bullet point.)brew gist-logs <formula>(where<formula>is the name of the formula that failed) and included the output link? - if
brew gist-logsdidn't work (or, in this case, was not preferred:) ranbrew configandbrew doctorand 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: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-mpiformula's--with-javaoption and the fact thatjavahwas 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
brewcommands:)-
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-multipleNote 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
-