Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.72k stars 12.41k forks source link

python@3.8 crashes with illegal instruction message on older CPU #50411

Closed StareInTheAir closed 4 years ago

StareInTheAir commented 4 years ago

What you were trying to do (and why)

I'm running macOS Catalina on no longer supported hardware (a MacBook Pro Mid 2009 MacBookPro5,5) using macOS Catalina Patcher.

When I try to install python@3.8 the post install steps fail and every time I try to run python3.8 it crashes with an illegal hardware instruction message.

When I try to compile it myself with brew reinstall python@3.8 --build-from-source the compile process also fails with a similar illegal instruction message.

What happened (include command output)

Command output ``` user@Users-MBP ~ % brew install python@3.8 ==> Downloading https://homebrew.bintray.com/bottles/python@3.8-3.8.1.catalina.bottle.tar.gz Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/2d83eddd6e3c5cf8943d9c7e346e971b712f091ab54703569c17deeab7e7468a--python@3.8-3.8.1.catalina.bottle.tar.gz ==> Pouring python@3.8-3.8.1.catalina.bottle.tar.gz ==> /usr/local/Cellar/python@3.8/3.8.1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.1/bin --install-lib=/usr/lo Last 15 lines from /Users/user/Library/Logs/Homebrew/python@3.8/post_install.01.python3: 2020-02-18 20:08:01 +0100 /usr/local/Cellar/python@3.8/3.8.1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.1/bin --install-lib=/usr/local/lib/python3.8/site-packages --single-version-externally-managed --record=installed.txt Warning: The post-install step did not complete successfully You can try again using `brew postinstall python@3.8` ==> Caveats Python has been installed as /usr/local/opt/python@3.8/bin/python3 You can install Python packages with /usr/local/opt/python@3.8/bin/pip3 install They will install into the site-package directory /usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages See: https://docs.brew.sh/Homebrew-and-Python python@3.8 is keg-only, which means it was not symlinked into /usr/local, because this is an alternate version of another formula. If you need to have python@3.8 first in your PATH run: echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.zshrc For compilers to find python@3.8 you may need to set: export LDFLAGS="-L/usr/local/opt/python@3.8/lib" For pkg-config to find python@3.8 you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig" ==> Summary 🍺 /usr/local/Cellar/python@3.8/3.8.1: 3,406 files, 53.7MB user@Users-MBP ~ % /usr/local/Cellar/python@3.8/3.8.1/bin/python3 --version zsh: illegal hardware instruction /usr/local/Cellar/python@3.8/3.8.1/bin/python3 --version user@Users-MBP ~ % brew reinstall python@3.8 --build-from-source ==> Reinstalling python@3.8 ==> Downloading https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/python@3.8/3.8.1 --enable-ipv6 --datarootdir=/usr/local/Cellar/python@3.8/3.8.1/share --datadir=/usr/local/Cellar/python@3.8/3.8.1/share - ==> make Last 15 lines from /Users/user/Library/Logs/Homebrew/python@3.8/02.make: Python.framework/Versions/3.8/Resources/Info.plist ln -fsn 3.8 Python.framework/Versions/Current ln -fsn Versions/Current/Python Python.framework/Python ln -fsn Versions/Current/Resources Python.framework/Resources clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.8/Python -o python.exe Programs/python.o -ldl -framework CoreFoundation clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.8/Python -o Programs/_testembed Programs/_testembed.o -ldl -framework CoreFoundation DYLD_FRAMEWORK_PATH=/private/tmp/python@3.8-20200218-3776-wz4ob2/Python-3.8.1 ./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: 11970 Illegal instruction: 4 DYLD_FRAMEWORK_PATH=/private/tmp/python@3.8-20200218-3776-wz4ob2/Python-3.8.1 ./python.exe -E -S -m sysconfig --generate-posix-vars generate-posix-vars failed make: *** [pybuilddir.txt] Error 1 ```

Every time I get an illegal instruction message in the terminal, macOS shows an error dialog popup with a more detail exception description:

macOS error dialog message ``` Process: Python [3377] Path: /usr/local/Cellar/python@3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 3.8.1 (3.8.1) Code Type: X86-64 (Native) Parent Process: ruby [3367] Responsible: Terminal [612] User ID: 501 Date/Time: 2020-02-18 20:08:02.259 +0100 OS Version: Mac OS X 10.15.3 (19D76) Report Version: 12 Anonymous UUID: 0223418D-E6B6-3B8D-C725-30B0165DBA77 Sleep/Wake UUID: 248BF907-9392-45EC-A04A-190CB9070E31 Time Awake Since Boot: 1600 seconds Time Since Wake: 180 seconds System Integrity Protection: disabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Illegal instruction: 4 Termination Reason: Namespace SIGNAL, Code 0x4 Terminating Process: exc handler [3377] Application Specific Information: dyld2 mode Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.python.python 0x0000000100ae43d8 PyConfig_Read + 1607 1 org.python.python 0x0000000100aefbd1 Py_InitializeFromConfig + 360 2 org.python.python 0x0000000100b0b92d pymain_main + 235 3 org.python.python 0x0000000100b0b9c2 Py_BytesMain + 42 4 libdyld.dylib 0x00007fff706137fd start + 1 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000001 rbx: 0x00007ffeef1f9e40 rcx: 0x000000000000002e rdx: 0x00007fac5bd017c0 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x00007ffeef1f9e90 rsp: 0x00007ffeef1f9d50 r8: 0x000000000000002e r9: 0x00007ffeef1faee9 r10: 0x00007ffeef1faee8 r11: 0x8080808080808080 r12: 0x0000000000000000 r13: 0x00007ffeef1f9ea0 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x0000000100ae43d8 rfl: 0x0000000000010246 cr2: 0x0000000100b6cc16 Logical CPU: 0 Error Code: 0x00000000 Trap Number: 6 Binary Images: 0x100a05000 - 0x100a06fff +org.python.python (3.8.1 - 3.8.1) <4BAB9CE0-31BD-3CFD-A6A1-DDCC0F7578BB> /usr/local/Cellar/python@3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python 0x100a0e000 - 0x100be0fff +org.python.python (3.8.1, [c] 2001-2019 Python Software Foundation. - 3.8.1) <0004A129-E7AF-3741-9894-0F128FF8CA89> /usr/local/Cellar/python@3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/Python 0x107353000 - 0x1073e3cb7 dyld (733.8) /usr/lib/dyld 0x7fff38fd3000 - 0x7fff39453fff com.apple.CoreFoundation (6.9 - 1674.114) <9A91AEBF-6DA4-3238-870F-452FBD170EEA> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff6cee9000 - 0x7fff6ceebff7 libDiagnosticMessagesClient.dylib (112) <45E85899-039F-3B99-8789-F497DD9916C2> /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff6d3b1000 - 0x7fff6d3b2ff3 libSystem.B.dylib (1281) /usr/lib/libSystem.B.dylib 0x7fff6d72e000 - 0x7fff6d781ff7 libc++.1.dylib (800.7) <1D0CB627-8A78-329F-A679-1B5248FF4C59> /usr/lib/libc++.1.dylib 0x7fff6d782000 - 0x7fff6d796fff libc++abi.dylib (800.7) <7AF668FB-901D-3F45-BA0D-710A235A8D1F> /usr/lib/libc++abi.dylib 0x7fff6e1fb000 - 0x7fff6e1fdfff libfakelink.dylib (149) <7296A5B3-EE44-34E6-810A-2A12C2D3EF68> /usr/lib/libfakelink.dylib 0x7fff6e30d000 - 0x7fff6e565ff7 libicucore.A.dylib (64252.0.1) <0F9294A7-6EC0-3279-BF92-3233C89DFA0A> /usr/lib/libicucore.A.dylib 0x7fff6f29e000 - 0x7fff6f2d0ff6 libobjc.A.dylib (781.2) <99501DBA-94BF-35A1-A85D-189A4C38CABF> /usr/lib/libobjc.A.dylib 0x7fff6f96f000 - 0x7fff6f981ffb libz.1.dylib (76) <52250917-039C-3B46-8011-497FEACF3550> /usr/lib/libz.1.dylib 0x7fff703e5000 - 0x7fff703eaff3 libcache.dylib (83) <11C19883-6F99-390D-AF2A-A85A99DDFC48> /usr/lib/system/libcache.dylib 0x7fff703eb000 - 0x7fff703f6fff libcommonCrypto.dylib (60165) /usr/lib/system/libcommonCrypto.dylib 0x7fff703f7000 - 0x7fff703fefff libcompiler_rt.dylib (101.2) /usr/lib/system/libcompiler_rt.dylib 0x7fff703ff000 - 0x7fff70408fff libcopyfile.dylib (166.40.1) <91670D15-CB30-3277-8AA9-9A299CEAAE27> /usr/lib/system/libcopyfile.dylib 0x7fff70409000 - 0x7fff704a0fdb libcorecrypto.dylib (866.80.2) <3B110D82-B403-31E8-8109-8BBC79C928CE> /usr/lib/system/libcorecrypto.dylib 0x7fff705b7000 - 0x7fff705f8ff0 libdispatch.dylib (1173.60.1) <5EF42E98-AD0D-3FAE-ABD4-46D791B8343F> /usr/lib/system/libdispatch.dylib 0x7fff705f9000 - 0x7fff7062eff7 libdyld.dylib (733.8) <8B0DFE8A-42CF-32C8-B121-83C22BF25F69> /usr/lib/system/libdyld.dylib 0x7fff7062f000 - 0x7fff7062fffb libkeymgr.dylib (30) <7DADC026-70A8-390F-95AF-F3F345760F24> /usr/lib/system/libkeymgr.dylib 0x7fff7063d000 - 0x7fff7063dff7 liblaunch.dylib (1738.80.8) /usr/lib/system/liblaunch.dylib 0x7fff7063e000 - 0x7fff70643ff7 libmacho.dylib (949.0.1) <395ABE7C-D2B1-343D-A451-9CEA98FDC12E> /usr/lib/system/libmacho.dylib 0x7fff70644000 - 0x7fff70646ff7 libquarantine.dylib (110.40.3) <560961FC-1FEF-3F07-8406-17A36558870E> /usr/lib/system/libquarantine.dylib 0x7fff70647000 - 0x7fff70648ff7 libremovefile.dylib (48) /usr/lib/system/libremovefile.dylib 0x7fff70649000 - 0x7fff70660fff libsystem_asl.dylib (377.60.2) <21A259BC-F892-34EB-9A67-11232AD8913A> /usr/lib/system/libsystem_asl.dylib 0x7fff70661000 - 0x7fff70661fff libsystem_blocks.dylib (74) <8B23F806-8153-3163-B5D8-2C3327E211D8> /usr/lib/system/libsystem_blocks.dylib 0x7fff70662000 - 0x7fff706e9ff7 libsystem_c.dylib (1353.60.8) <99202CC3-2E27-3680-A8FF-5C516C485E90> /usr/lib/system/libsystem_c.dylib 0x7fff706ea000 - 0x7fff706edffb libsystem_configuration.dylib (1061.80.3) <8A149700-51AA-3205-A9D4-FF2A7BFC5412> /usr/lib/system/libsystem_configuration.dylib 0x7fff706ee000 - 0x7fff706f1ff7 libsystem_coreservices.dylib (114) /usr/lib/system/libsystem_coreservices.dylib 0x7fff706f2000 - 0x7fff706fafff libsystem_darwin.dylib (1353.60.8) <31ACD3CC-6DD9-3F2E-B163-9342BE1D0AB0> /usr/lib/system/libsystem_darwin.dylib 0x7fff706fb000 - 0x7fff70702ffb libsystem_dnssd.dylib (1096.60.2) /usr/lib/system/libsystem_dnssd.dylib 0x7fff70703000 - 0x7fff70704ffb libsystem_featureflags.dylib (17) <340AD606-7C39-3E6A-BAC3-EA1273FC27A4> /usr/lib/system/libsystem_featureflags.dylib 0x7fff70705000 - 0x7fff70752fff libsystem_info.dylib (538) /usr/lib/system/libsystem_info.dylib 0x7fff70753000 - 0x7fff7077fff7 libsystem_kernel.dylib (6153.81.5) <23909F45-79C3-34C9-A28F-337915925E5E> /usr/lib/system/libsystem_kernel.dylib 0x7fff70780000 - 0x7fff707ccfff libsystem_m.dylib (3178) <5236DC09-35C8-31A4-AE2A-92DA3DF30FE6> /usr/lib/system/libsystem_m.dylib 0x7fff707cd000 - 0x7fff707f4fff libsystem_malloc.dylib (283.60.1) <00190446-C6A8-3EA6-92D1-850EA85C84CE> /usr/lib/system/libsystem_malloc.dylib 0x7fff707f5000 - 0x7fff70802ffb libsystem_networkextension.dylib (1095.60.2) <1E7A59D0-BBCD-3CB0-8AD1-D442A1A5268E> /usr/lib/system/libsystem_networkextension.dylib 0x7fff70803000 - 0x7fff7080cff3 libsystem_notify.dylib (241) /usr/lib/system/libsystem_notify.dylib 0x7fff7080d000 - 0x7fff70816fef libsystem_platform.dylib (220) <3DAFCC01-B768-3FFC-AC59-47AAE86BBEA1> /usr/lib/system/libsystem_platform.dylib 0x7fff70817000 - 0x7fff70821fff libsystem_pthread.dylib (416.60.2) /usr/lib/system/libsystem_pthread.dylib 0x7fff70822000 - 0x7fff70826fff libsystem_sandbox.dylib (1217.80.1) /usr/lib/system/libsystem_sandbox.dylib 0x7fff70827000 - 0x7fff70829fff libsystem_secinit.dylib (62.80.1) <32F36517-9A1C-3D30-85C8-611A2F5E2355> /usr/lib/system/libsystem_secinit.dylib 0x7fff7082a000 - 0x7fff70831ffb libsystem_symptoms.dylib (1238.60.1) <2EDF9CE8-4091-30A8-B125-0F25E579694A> /usr/lib/system/libsystem_symptoms.dylib 0x7fff70832000 - 0x7fff70848ff2 libsystem_trace.dylib (1147.80.3) /usr/lib/system/libsystem_trace.dylib 0x7fff7084a000 - 0x7fff7084fffb libunwind.dylib (35.4) /usr/lib/system/libunwind.dylib 0x7fff70850000 - 0x7fff70885ffe libxpc.dylib (1738.80.8) <51E3E807-9133-3605-BB5F-D59ED6404ABF> /usr/lib/system/libxpc.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 1228 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=367.6M resident=0K(0%) swapped_out_or_unallocated=367.6M(100%) Writable regions: Total=26.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=26.5M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Kernel Alloc Once 8K 1 MALLOC 10.1M 9 MALLOC guard page 16K 3 STACK GUARD 4K 1 Stack 16.0M 1 __DATA 2391K 49 __DATA_CONST 44K 3 __LINKEDIT 354.1M 4 __OBJC_RO 32.0M 1 __OBJC_RW 1780K 2 __TEXT 13.5M 46 __UNICODE 564K 1 shared memory 8K 2 =========== ======= ======= TOTAL 430.5M 123 Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2,26 GHz, 8 GB, SMC 1.47f2 Graphics: kHW_NVidiaGeForce9400MItem, NVIDIA GeForce 9400M, 256 MB Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x0198, 0x393930353432382D3030352E4130324C4620 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x0198, 0x393930353432382D3030352E4130324C4620 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.102.31) Bluetooth: Version 7.0.3f5, 3 services, 25 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: OCZ-VERTEX3, 240,06 GB Serial ATA Device: MATSHITADVD-R UJ-868 USB Device: USB 2.0 Bus USB Device: Built-in iSight USB Device: USB 2.0 Bus USB Device: Internal Memory Card Reader USB Device: USB Bus USB Device: Apple Internal Keyboard / Trackpad USB Device: IR Receiver USB Device: USB Bus USB Device: BRCM2046 Hub USB Device: Bluetooth USB Host Controller Thunderbolt Bus: ```

I googled around a bit and the missing CPU feature probably is AVX (Advanced Vector Extensions) when people get an illegal instruction error while using python. My CPU doesn't have this feature:

% sysctl -a | grep -i features
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 DTES64 MON DSCPL VMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 XSAVE
machdep.cpu.extfeatures: SYSCALL XD EM64T LAHF

I wouldn't be opening this issue, if python3 (3.7) would show the same error. But the python3 formula works fine on this old MacBook and I can also compile it without errors. MacPorts can successfully install python 3.8 and it runs without problems. But I would really rather use brew instead. This all leads me to the conclusion that it's something in the python@3.8 formula.

What you expected to happen

I expected to be able to compile python@3.8 myself and then being able to run it without the missing CPU features successfully.

Even better would be to have the binary not using the missing instructions, but I see the point of my old hardware holding back everybody else.

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

In the next snippet you can see all my executed commands with their respective output. I also included some more system info.

All executed commands ``` Last login: Tue Feb 18 17:58:36 on console user@Users-MBP ~ % brew update Updated 1 tap (homebrew/core). ==> Updated Formulae antlr@2 gatsby-cli grpc itex2mml mat2 nco pyenv-virtualenv tomcat@7 azure-cli gnu-getopt gtk+3 jack mlt open-scene-graph tcl-tk tox dartsim golang-migrate ipython mariadb-connector-c mpd platformio terragrunt tundra ==> Deleted Formulae zpython user@Users-MBP ~ % brew update Already up-to-date. user@Users-MBP ~ % brew install python@3.8 ==> Downloading https://homebrew.bintray.com/bottles/python@3.8-3.8.1.catalina.bottle.tar.gz Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/2d83eddd6e3c5cf8943d9c7e346e971b712f091ab54703569c17deeab7e7468a--python@3.8-3.8.1.catalina.bottle.tar.gz ==> Pouring python@3.8-3.8.1.catalina.bottle.tar.gz ==> /usr/local/Cellar/python@3.8/3.8.1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.1/bin --install-lib=/usr/lo Last 15 lines from /Users/user/Library/Logs/Homebrew/python@3.8/post_install.01.python3: 2020-02-18 20:08:01 +0100 /usr/local/Cellar/python@3.8/3.8.1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.1/bin --install-lib=/usr/local/lib/python3.8/site-packages --single-version-externally-managed --record=installed.txt Warning: The post-install step did not complete successfully You can try again using `brew postinstall python@3.8` ==> Caveats Python has been installed as /usr/local/opt/python@3.8/bin/python3 You can install Python packages with /usr/local/opt/python@3.8/bin/pip3 install They will install into the site-package directory /usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages See: https://docs.brew.sh/Homebrew-and-Python python@3.8 is keg-only, which means it was not symlinked into /usr/local, because this is an alternate version of another formula. If you need to have python@3.8 first in your PATH run: echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.zshrc For compilers to find python@3.8 you may need to set: export LDFLAGS="-L/usr/local/opt/python@3.8/lib" For pkg-config to find python@3.8 you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig" ==> Summary 🍺 /usr/local/Cellar/python@3.8/3.8.1: 3,406 files, 53.7MB user@Users-MBP ~ % /usr/local/Cellar/python@3.8/3.8.1/bin/python3 --version zsh: illegal hardware instruction /usr/local/Cellar/python@3.8/3.8.1/bin/python3 --version user@Users-MBP ~ % brew reinstall python@3.8 --build-from-source ==> Reinstalling python@3.8 ==> Downloading https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/python@3.8/3.8.1 --enable-ipv6 --datarootdir=/usr/local/Cellar/python@3.8/3.8.1/share --datadir=/usr/local/Cellar/python@3.8/3.8.1/share - ==> make Last 15 lines from /Users/user/Library/Logs/Homebrew/python@3.8/02.make: Python.framework/Versions/3.8/Resources/Info.plist ln -fsn 3.8 Python.framework/Versions/Current ln -fsn Versions/Current/Python Python.framework/Python ln -fsn Versions/Current/Resources Python.framework/Resources clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.8/Python -o python.exe Programs/python.o -ldl -framework CoreFoundation clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.8/Python -o Programs/_testembed Programs/_testembed.o -ldl -framework CoreFoundation DYLD_FRAMEWORK_PATH=/private/tmp/python@3.8-20200218-3776-wz4ob2/Python-3.8.1 ./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: 11970 Illegal instruction: 4 DYLD_FRAMEWORK_PATH=/private/tmp/python@3.8-20200218-3776-wz4ob2/Python-3.8.1 ./python.exe -E -S -m sysconfig --generate-posix-vars generate-posix-vars failed make: *** [pybuilddir.txt] Error 1 READ THIS: https://docs.brew.sh/Troubleshooting These open issues may also help: subversion: use python@3.8 https://github.com/Homebrew/homebrew-core/pull/50391 Python 3.8 migration https://github.com/Homebrew/homebrew-core/issues/47274 ansible: fix python@3.8 warnings https://github.com/Homebrew/homebrew-core/pull/49083 Python 3.8: Migrate connected formulae https://github.com/Homebrew/homebrew-core/pull/47326 user@Users-MBP ~ % brew doctor Your system is ready to brew. user@Users-MBP ~ % sysctl -a | grep -i features machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 DTES64 MON DSCPL VMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 XSAVE machdep.cpu.extfeatures: SYSCALL XD EM64T LAHF user@Users-MBP ~ % uname -a Darwin Users-MBP.fritz.box 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64 user@Users-MBP ~ % system_profiler SPHardwareDataType Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro5,5 Processor Name: Intel Core 2 Duo Processor Speed: 2,26 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache: 3 MB Memory: 8 GB Boot ROM Version: MBP55.00AC.B03 SMC Version (system): 1.47f2 Serial Number (system): x Hardware UUID: x Sudden Motion Sensor: State: Enabled user@Users-MBP ~ % system_profiler SPSoftwareDataType Software: System Software Overview: System Version: macOS 10.15.3 (19D76) Kernel Version: Darwin 19.3.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: x User Name: x Secure Virtual Memory: Enabled System Integrity Protection: Disabled Time since boot: 2:24 user@Users-MBP ~ % ```
iMichka commented 4 years ago

This is not supported by Apple, and not supported by homebrew. Sorry.