Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Python 3.10.4 emake failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
whateverIwant
n00b
n00b


Joined: 30 Apr 2022
Posts: 2

PostPosted: Sat Apr 30, 2022 9:47 am    Post subject: [Solved] Python 3.10.4 emake failed Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2852

PostPosted: Sat Apr 30, 2022 10:25 am    Post subject: Reply with quote

Code:
sh zsh 5.8.1-r1
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
View user's profile Send private message
whateverIwant
n00b
n00b


Joined: 30 Apr 2022
Posts: 2

PostPosted: Sat Apr 30, 2022 11:44 am    Post subject: Reply with quote

Ionen wrote:
Code:
sh zsh 5.8.1-r1
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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22657

PostPosted: Sat Apr 30, 2022 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum