microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.4k stars 819 forks source link

Building python from source with --enable-configurations hangs indefinitely upon reaching test case 313 (test_ssl) #4005

Closed bavalpey closed 5 years ago

bavalpey commented 5 years ago

Please fill out the below information:

I tried to find a solution to this elsewhere but the only mention of this that I see is a post located here that dates back to 2016.

therealkenc commented 5 years ago

Spirituality dupe #1596 and #2526. You've got repro steps but no actionable. You could in principle isolate the 313 fail and post a targeted repro with strace demonstrating a diverge from Real Linux. If you do so, feel free and encouraged to spin up a new submission following the template. It is also helpful and to cite the use case (popular real world program that is failing).

bavalpey commented 5 years ago

Spirituality dupe #1596 and #2526. You've got repro steps but no actionable. You could in principle isolate the 313 fail and post a targeted repro with strace demonstrating a diverge from Real Linux. If you do so, feel free and encouraged to spin up a new submission following the template. It is also helpful and to cite the use case (popular real world program that is failing).

I'm confused, what are you asking? I tried running strace as it requires but the command failed.

therealkenc commented 5 years ago

In-lining one of the links for you, paraphrased:

Going to snipe this one since no response for ~seventeen~ zero months+. The lack of response was not because no one cared (I remember when it was reported half an hour ago). The awkward difficultly is that while this issue# meets the "reproducible" requirement absolutely, it isn't actionable. WSL fails some golang tests and some watchman tests and (apparently now) some Python tests. It also fails some libc tests and some LTP tests tests. There is a testing related blog entry here and an unofficial side discussion in #2031 (message).

Constructively, what can be done is isolate the specific test case fails that are blocking any killer ~golang~ Python applications with widespread adoption. This is not an easy task mind, because you'll find that in most cases the problem will be a dupe. But not always, so please report anything you find following the template.

The part of the template that you deleted asks for an strace(1) log which won't be constructive with the repro steps given.

bavalpey commented 5 years ago

This is sort of helpful? I'm on a fresh install of wsl and am trying to set up python3.7 with pip. Using apt-get install python3.7 does not install pip with python 3.7. So there not exactly popular real-world programs that are failing because of this, I am just looking for any way to install python3.7 and ensure that pip is installed with it as well. Thanks for your time.

therealkenc commented 5 years ago

Deadsnakes has a ppa. You could try that (I haven't). You could also build it yourself without running the test suite, although that looks like it might take some effort. Some quick hits here and here.

bavalpey commented 5 years ago

Thanks! The deadsnakes ppa ended up working. I had seen that solution, but decided to try other options (such as building from source) which were dead-ends. Thanks for setting me back on track.

Grower2018 commented 5 years ago

I got exactly the same problem, still no solution other than ppa?

Grower2018 commented 5 years ago

found another solution: install 3.7.3 via pyenv

ksze commented 3 years ago

Just a comment. It appears that at least Python 3.9.7 now installs in Ubuntu WSL2 via pyenv with --enable-optimizations and --with-lto without issue.

RC4347 commented 2 years ago

@bavalpey installing those packages helped me

sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev
RC4347 commented 2 years ago

@bavalpey installing those packages helped me

sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev

@bavalpey also if you don't run in gcc-9 gives error for run

make -j8 CC=gcc-9