I understand that macOS 10.15 is not yet supported, but soon people will start using it, so it might be useful to report this bug.
The error can be reproduced by reinstalling the formula (Python) or by upgrading all formulas.
I was trying to upgrade the homebrew formulas.
The upgrading process failed to build Python
❯ brew upgrade
Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.
==> Upgrading 5 outdated packages:
libheif 1.4.0 -> 1.4.0_1, python 3.7.3 -> 3.7.4, glib 2.60.4_1 -> 2.60.5, imagemagick 7.0.8-50 -> 7.0.8-53, glances 3.1.0 -> 3.1.1
==> Upgrading libheif
==> Installing dependencies for libheif: python and glib
==> Installing libheif dependency: python
Warning: Building python from source:
The bottle needs the Apple Command Line Tools to be installed.
You can install them, if desired, with:
xcode-select --install
==> Downloading https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
Already downloaded: /Users/tildo/Library/Caches/Homebrew/downloads/b8fecb7c903832c1ad2499469b56fb1b77b6e8d29ba3966a904d9942cb602e8c--Python-3.7.4.tar.xz
==> ./configure --prefix=/usr/local/Cellar/python/3.7.4 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/3.7.4/
==> make
Last 15 lines from /Users/tildo/Library/Logs/Homebrew/python/02.make:
Python.framework/Versions/3.7/Resources/Info.plist
ln -fsn 3.7 Python.framework/Versions/Current
ln -fsn Versions/Current/Python Python.framework/Python
ln -fsn Versions/Current/Resources Python.framework/Resources
clang -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.7/Python -o python.exe Programs/python.o -ldl -framework CoreFoundation
clang -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.7/Python -o Programs/_testembed Programs/_testembed.o -ldl -framework CoreFoundation
DYLD_FRAMEWORK_PATH=/private/tmp/python-20190723-30500-1qx24t9/Python-3.7.4 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
/bin/sh: line 1: 38383 Segmentation fault: 11 DYLD_FRAMEWORK_PATH=/private/tmp/python-20190723-30500-1qx24t9/Python-3.7.4 ./python.exe -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Python formula does not include TK - python uses default Apple TK 8.5 which causes bugs/crashes https://github.com/Homebrew/homebrew-core/issues/41338
Error: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.
I expected to have all formula updated.
Run the upgrade command:
brew upgrade
❯ brew config
HOMEBREW_VERSION: 2.1.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: 549a40bedb32171912a449d8d0e7bcae02d5b432
Last commit: 17 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: afd1f699d17314a985ac50121b26df519cf1e4a5
Core tap last commit: 18 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_GITHUB_API_TOKEN: set
CPU: octa-core 64-bit skylake
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1100
Git: 2.22.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15-x86_64
CLT: N/A
Xcode: 11.0 => /Applications/Xcode-beta.app/Contents/Developer
❯ brew gist-logs python
Error: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.
❯ brew doctor
Please note that these warnings are just used to help the Homebrew 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: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.
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.
Whoops, it looks like you created an issue without filling out the checklist and providing all the needed information from one of the issue templates: https://github.com/Homebrew/homebrew-core/issues/new/choose
As we need all this information to help you we're closing this issue. If you add the necessary information to this issue (don't create a new or duplicate issue, please) and comment to let us know, a Homebrew maintainer will check it out when they get the chance. If it's deemed to be a valid issue then this issue may be reopened.
Sorry!
Similar issue, weird why issue was closed by this bot....
Because the template wasn't used which makes it difficult to debug. The least people can do if they want help is fill out the template.
But even if it did, betas aren't supported
Even though its closed, and should not be opened as its a beta, did anyone solve it without modifying the package?
@flindeberg someone has found a solution that worked for me:
Credit: Dmitry Chupahin
rm -rf /Library/Developer/CommandLineTools$ xcode-select --installYou should be able to upgrade Python after it.
This should be reopened, as it's still an issue and has been reported upstream now that Catalina is GM released
Most helpful comment
@flindeberg someone has found a solution that worked for me:
Credit: Dmitry Chupahin
rm -rf /Library/Developer/CommandLineTools$ xcode-select --installYou should be able to upgrade Python after it.