Unexpected error when building macos wheels
MarkWieczorek opened this issue · 2 comments
We have been using multibuild for the SHTOOLS project for some time, with only minor inconveniences usually related to travis. With our last release, we had problems with the linux builds, but this was solved by switching from the master
branch to devel
(SHTOOLS/SHTOOLS#224).
Unfortunately, we are still having problems with the macos builds. Everything seems to be working ok until experiencing an error that "gcc is already installed"
$ BUILD_DEPENDS="$NP_BUILD_DEP $CYTHON_BUILD_DEP"
$ TEST_DEPENDS="$NP_TEST_DEP pytest pytest-xdist pytest-faulthandler pytest-env"
$ source multibuild/common_utils.sh
$ source multibuild/travis_steps.sh
$ before_install
$ build_wheel $REPO_DIR $PLAT
Building libraries...
Already up-to-date.
Error: gcc 9.2.0_2 is already installed
To upgrade to 9.2.0_3, run `brew upgrade gcc`.
Just to make certain, we tried placing the command brew upgrade gcc
before this point, but that didn't work: we got the error
The command "if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade gcc; fi" failed and exited with 1 during .
In this case I think that the error is that this tries to install python, and the symlinking fails.
Would you have any ideas on how to resolve this? Perhaps this is an issue with Travis, and not multibuild.
I guess that you get this error whether you using multibuild or not? I think the brew update
step is part of the image. Maybe you could try:
brew uninstall --ignore-dependencies gcc
brew install gcc
? Can you try another xcode image?
Thanks. That works for now! I'll try to debug what the original problem was when I find so free time.