[issue35074] source install [3.7.1] on debian jessie

2018-10-25 Thread Leo Li

New submission from Leo Li :

Hi Team,
I met the issue consistently on 3.7 and 3.7.1.

The configure is well, but when the make will output error messges:

step1: [ok]
sudo ./configure --prefix=/opt/python3.71 --enable-optimizations

step2: make [fail]

if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not import runpy module
Traceback (most recent call last):
  File "/opt/Python-3.7.1/Lib/runpy.py", line 15, in 
import importlib.util
  File "/opt/Python-3.7.1/Lib/importlib/util.py", line 14, in 
from contextlib import contextmanager
  File "/opt/Python-3.7.1/Lib/contextlib.py", line 4, in 
import _collections_abc
SystemError:  returned NULL without setting an error
generate-posix-vars failed
Makefile:595: recipe for target 'pybuilddir.txt' failed
make[1]: *** [pybuilddir.txt] Error 1
make[1]: Leaving directory '/opt/Python-3.7.1'
Makefile:523: recipe for target 'profile-opt' failed
make: *** [profile-opt] Error 2


(venv36) myhost ➜  Python-3.7.1 gcc --version
gcc (Debian 4.9.2-10+deb8u1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(venv36) myhost ➜  Python-3.7.1 uname -a
Linux docker 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64 
GNU/Linux

Any questions pls mail me.

--
messages: 328516
nosy: foxleoly
priority: normal
severity: normal
status: open
title: source install [3.7.1] on debian jessie
type: compile error
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue35074>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35074] source install [3.7.1] on debian jessie

2018-10-26 Thread Leo Li

Leo Li  added the comment:

I've tested 2 way to solve this:
1. disable --enable-optimizations option. the software can be compile and 
install successful.
2. upgrade gcc version to 8.2.0. 

docker ➜  bin gcc --version
gcc (Debian 8.2.0-8) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--

___
Python tracker 
<https://bugs.python.org/issue35074>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35074] source install [3.7.1] on debian jessie

2018-10-26 Thread Leo Li


Leo Li  added the comment:

Sure! Yes, Pls close it.

--

___
Python tracker 
<https://bugs.python.org/issue35074>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com