View previous topic :: View next topic |
Author |
Message |
whateverIwant n00b
Joined: 30 Apr 2022 Posts: 2
|
Posted: Sat Apr 30, 2022 9:47 am Post subject: [Solved] Python 3.10.4 emake failed |
|
|
Hello, I usually update on every day basis so this just might be a bug, but I'm not able to update Python at all, it seems it fails at install stage. Here are all the logs:
emerge --info '=dev-lang/python-3.10.4::gentoo' https://pastebin.com/5FJrTEEZ
emerge -pqv '=dev-lang/python-3.10.4::gentoo' https://pastebin.com/iJAzWj5W
/var/tmp/portage/dev-lang/python-3.10.4/temp/build.log https://pastebin.com/JJ6p43Fd
Thank you for any help!
Last edited by whateverIwant on Sat Apr 30, 2022 11:44 am; edited 1 time in total |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2852
|
Posted: Sat Apr 30, 2022 10:25 am Post subject: |
|
|
Seems you have /bin/sh as zsh. Some posix sh implementations are fine as /bin/sh if not bash, but not sure if zsh is a good idea.
Code: | zsh:10: parse error near `fi'
Creating directory /var/tmp/portage/dev-lang/python-3.10.4/image/usr/include/python3.10/internal
make: *** [Makefile:1330: altbininstall] Error 1 |
|
|
Back to top |
|
|
whateverIwant n00b
Joined: 30 Apr 2022 Posts: 2
|
Posted: Sat Apr 30, 2022 11:44 am Post subject: |
|
|
Ionen wrote: | Seems you have /bin/sh as zsh. Some posix sh implementations are fine as /bin/sh if not bash, but not sure if zsh is a good idea.
Code: | zsh:10: parse error near `fi'
Creating directory /var/tmp/portage/dev-lang/python-3.10.4/image/usr/include/python3.10/internal
make: *** [Makefile:1330: altbininstall] Error 1 |
|
Thank you! Changing it back to Bash worked like a charm!
Though I would never suspect that was the problem, after all even zsh themselfs call it "Extended Bash" so I thought it would work just fine. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22657
|
Posted: Sat Apr 30, 2022 4:18 pm Post subject: |
|
|
You can set your personal shell to zsh, and may want to do that so that you can leave /bin/sh pointing to /bin/bash. Depending on which component is at fault, you might file a bug either with zsh for rejecting a bash script despite being, as you say "extended bash" or file a bug with the Python project that their shell script is invoked with /bin/sh, but only works properly when passed to bash. In the latter case, they could change the invocation to force the script to always be parsed by /bin/bash, regardless of where /bin/sh points. |
|
Back to top |
|
|
|