Author piotr.dobrogost
Recipients ned.deily, piotr.dobrogost
Date 2018-04-27.15:45:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524843947.56.0.682650639539.issue33374@psf.upfronthosting.co.za>
In-reply-to
Content
When building Python 2.7.14 on Fedora 28 I get the following error:

[piotr@demon]/tmp/Python-2.7.14% make
(…)
./python -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 5: 25857 Segmentation fault      (core dumped) ./python -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make[2]: *** [Makefile:514: pybuilddir.txt] Error 1
make[2]: Leaving directory '/tmp/Python-2.7.14'
make[1]: *** [Makefile:444: build_all_generate_profile] Error 2
make[1]: Leaving directory '/tmp/Python-2.7.14'
make: *** [Makefile:429: profile-opt] Error 2


Running problematic command alone I get this:

[piotr@demon]/tmp/Python-2.7.14% ./python -E -S -m sysconfig --generate-posix-vars
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
zsh: segmentation fault (core dumped)  ./python -E -S -m sysconfig --generate-posix-vars

I found somehow related https://bugs.python.org/issue21166 with excellent explanation by Ned Deily (https://bugs.python.org/msg225217) but that issue is supposedly fixed.

I have Python 3.6.5 installed at /usr/bin/python3 and Python 2.7.14 installed at /usr/bin/python{2} – both from RPM packages.

I have Python 2.7.13 installed at /usr/local/bin/python{2} – built from source.

Running `which python` returns "/usr/local/bin/python".

Trying to isolate configuration and build by prefixing commands with
PATH=/usr/bin:/usr/sbin LIBRARY_PATH= LD_LIBRARY_PATH= (…)
does not help.
History
Date User Action Args
2018-04-27 15:45:47piotr.dobrogostsetrecipients: + piotr.dobrogost, ned.deily
2018-04-27 15:45:47piotr.dobrogostsetmessageid: <1524843947.56.0.682650639539.issue33374@psf.upfronthosting.co.za>
2018-04-27 15:45:47piotr.dobrogostlinkissue33374 messages
2018-04-27 15:45:47piotr.dobrogostcreate