Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build Falaise locally on Mac OS 10.15.4 (Catalina) #22

Open
willquinn opened this issue Apr 6, 2020 · 13 comments
Open

Failed to build Falaise locally on Mac OS 10.15.4 (Catalina) #22

willquinn opened this issue Apr 6, 2020 · 13 comments

Comments

@willquinn
Copy link

What you were trying to do (and why)

Local install of Falaise on my Mac OS 10.15.4. At snemo-bootstrap stage

$ git clone https://github.com/SuperNEMO-DBD/brew.git snemo-sdk
$ eval $(./snemo-sdk/bin/brew shellenv)
$ brew snemo-doctor

$ brew snemo-bootstrap

What happened (include command output)

Command output

<warning: You already have Formulae installed, expect warnings or error during bootstrap
Installing cmake formula. It is not currently installed.
Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You may encounter build failures with some formulae as
brew is being run in an pre-release version
In these cases, please raise an issue at https://github.com/SuperNEMO-DBD/homebrew-core/issues

==> Installing dependencies for cmake: openssl, readline, sqlite, xz, python and sphinx-doc
==> Installing cmake dependency: openssl
==> Downloading https://www.openssl.org/source/openssl-1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://dl.bintray.com/homebrew/mirror/openssl--1.0.2q.tar.gz
##O#- #
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www.mirrorservice.org/sites/ftp.openssl.org/source/openssl-1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading http://artfiles.org/openssl.org/source/openssl-1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "openssl"
Download failed: http://artfiles.org/openssl.org/source/openssl-1.0.2q.tar.gz

Installing cmake has failed!
Skipping install of ninja formula. It is already up-to-date.
Using ninja
Installing falaise formula. It is not currently installed.
Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You may encounter build failures with some formulae as
brew is being run in an pre-release version
In these cases, please raise an issue at https://github.com/SuperNEMO-DBD/homebrew-core/issues

==> Installing dependencies for falaise: openssl, readline, sqlite, xz, python, sphinx-doc, cmake, doxygen, icu4c, boost, camp, clhep, xerces-c, geant4, gsl, qt5-base, lz4, tbb, libxml2, zlib, xrootd, xxhash, root6 and bayeux
==> Installing falaise dependency: openssl
==> Downloading https://www.openssl.org/source/openssl-1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://dl.bintray.com/homebrew/mirror/openssl--1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www.mirrorservice.org/sites/ftp.openssl.org/source/openssl-1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading http://artfiles.org/openssl.org/source/openssl-1.0.2q.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404 Not Found
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "openssl"
Download failed: http://artfiles.org/openssl.org/source/openssl-1.0.2q.tar.gz

Installing falaise has failed!
Homebrew Bundle failed! 2 Brewfile dependencies failed to install.>

What you expected to happen

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

<Follow instructions at https://github.com/SuperNEMO-DBD/brew under the Quickstart subtitle>

@drbenmorgan
Copy link
Member

Traced to openssl changing their URLs. SuperNEMO-DBD/homebrew-core has been updated with this, so please try:

$ brew update

then

$ brew snemo-bootstrap

If that complains or fails, try

$ brew install falaise

@willquinn
Copy link
Author

Thanks, that installed that dependancy. However, I think it is stuck installing cmake. I tried both [$ brew snemo-boot-strap] and [brew install falaise] but get stuck at the same point for each - no error

==> Installing cmake
==> Downloading https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/537699/8e9fe600-2625-11e9-8c31-9df4bd8191ba?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20
######################################################################## 100.0%
==> ./bootstrap --prefix=/Users/willquinn/snemo-sdk/Cellar/cmake/3.13.4 --no-system-libs --parallel=8 --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man --sphinx-build=/Users/willquinn/s

@drbenmorgan
Copy link
Member

Is there a pop-up window anywhere on screen warning about (IIRC) installed Java or the like? This a macOS annoyance when build systems check for (again, I think) Java.

Otherwise, try:

$ brew install -v cmake

That will give verbose output and indicate where the stall is happening.

@willquinn
Copy link
Author

No pop ups.

I assume this is where it gets stuck (after ~25 mins):
-- Looking for a Fortran compiler - NOTFOUND
-- Performing Test run_pic_test
-- Performing Test run_pic_test - Success

Then nothing for a while (~20 mins)

@drbenmorgan
Copy link
Member

I've tried this on my own machine and here's what I get (inc. the pop up) at that stage:

Screenshot 2020-04-07 at 13 45 24

the Java popup shouldn't stop the build progressing, but it's all I can think of. Do you have Java installed anywhere? Also, when it sticks like you've shown, can you open another terminal and run top -o cpu? That will show if anything is stuck hogging cpu.

@willquinn
Copy link
Author

I still get no pop up, perhaps the lack of a pop up stops the build. I tried installing a JDK but I get the same stall. I run top -o cpu and get this:

Screenshot 2020-04-07 at 13 54 37

CPU usage of the Terminal is variable.

@drbenmorgan
Copy link
Member

I'm really at a loss to explain this... All I can (unfortunately) suggest is to nuke the install and start again, juts trying to install cmake:

$ git clone https://github.com/SuperNEMO-DBD/brew.git snemo-sdk
$ eval $(./snemo-sdk/bin/brew shellenv)
$ brew snemo-doctor
...
$ brew install cmake

@drbenmorgan
Copy link
Member

Hi @willquinn, if you were not able to resolve this, I have updated the CMake formula. No guarantee it'll fix things, but if you were still having issues, try

$ brew update
... this may take some time ...
$ brew install cmake

@willquinn
Copy link
Author

Sorry for the late response:

Have tried both instances, nuking the install and starting again and updating brew. Neither get me past the same stage as above. Is this just my laptop not being able to install cmake or is it an issue with the version of MacOS - i.e is it reproducible?

@drbenmorgan
Copy link
Member

I've added one further path which may (and equally may not) help with the issue. Run

$ brew update
...
$ brew snemo-doctor
... post the output in a new comment ...
$ brew install cmake

I'm not able to reproduce this hang on two different systems both running Catalina. Let's see if the latest fix resolves it, otherwise we'll need to dig a bit further.

@willquinn
Copy link
Author

Ok I am running those commands.

Output of the brew snemo-doctor:

Please note that these warnings are just used to help the SuperNEMO maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: The following directories do not exist:
/Users/willquinn/snemo-sdk/include
/Users/willquinn/snemo-sdk/lib
/Users/willquinn/snemo-sdk/opt
/Users/willquinn/snemo-sdk/sbin
/Users/willquinn/snemo-sdk/var/homebrew/linked
/Users/willquinn/snemo-sdk/Cellar

You should create these directories and change their ownership to your account.
sudo mkdir -p /Users/willquinn/snemo-sdk/include /Users/willquinn/snemo-sdk/lib /Users/willquinn/snemo-sdk/opt /Users/willquinn/snemo-sdk/sbin /Users/willquinn/snemo-sdk/var/homebrew/linked /Users/willquinn/snemo-sdk/Cellar
sudo chown -R $(whoami) /Users/willquinn/snemo-sdk/include /Users/willquinn/snemo-sdk/lib /Users/willquinn/snemo-sdk/opt /Users/willquinn/snemo-sdk/sbin /Users/willquinn/snemo-sdk/var/homebrew/linked /Users/willquinn/snemo-sdk/Cellar

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
/usr/local/lib/libftd2xx.1.0.4.dylib
/usr/local/lib/liblalusb-2.0.0.1.1.dylib
/usr/local/lib/libusb-1.0.0.dylib
/usr/local/lib/libusb-1.0.dylib

Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You may encounter build failures with some formulae as
brew is being run in an pre-release version
In these cases, please raise an issue at https://github.com/SuperNEMO-DBD/homebrew-core/issues

Warning: Your Homebrew's prefix is not /usr/local.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
You may encounter build failures with some formulae as
brew is being run in an unsupported configuration
In these cases, please raise an issue at https://github.com/SuperNEMO-DBD/homebrew-core/issues

Warning: Ruby version 2.6.3 is unsupported on 10.15. Homebrew
is developed and tested on Ruby 2.3.7, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.

Note: I followed the instructions that it gave and created those directories.

@drbenmorgan
Copy link
Member

Thanks! The output looks about what I'd expect and is similar to within paths and the /usr/local section to what I get. Let's see what happens with the cmake install.

@HanFangXie
Copy link

HanFangXie commented Sep 10, 2020

Hello, is there any news from this issue? I think I got exactly the same problem. I am using MacOS 10.15.6.
I runed:
brew install cmake

where is stucked:
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - NOTFOUND
-- Performing Test run_pic_test
-- Performing Test run_pic_test - Success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants