Ned Deily added the comment:

I'm not familiar with Spack and I'm certainly not going to try to deeply 
analyze a build that inserts *that* many separate -I and -L options into the 
compiler calls :)  But there have been a number of reports of problems with 
this symptom in the past (try searching the web) and at least one previous 
issue opened here (Issue26498).  The root cause in all of these is that at some 
point there is a mismatch between a python executable of one 2.7.x version 
being dynamically linked at run time with python shared libraries of a 
different 2.7.x version.  While a python build should guard against this 
happening, often it doesn't matter when such a mismatch occurs.  However, there 
was an incompatibility introduced in the lifetime of 2.7.x involving 
__PyCodecInfo_GetIncrementalDecoder (I forget the details).  My guess is that 
you will find that the problem goes away if you avoid the use of 
'--enable-shared' on the Python configure; most Python distributions on macOS 
use --enable-framework rathe
 r than --enable-shared and we seldom test it.  Or use neither.  You should 
also check that there are no third-party Python 2.7's on PATH and/or Python 2.7 
shared libraries on the dyld library search paths, other than the 
Apple-supplied pythons in /usr/bin.  It would be nice to finally figure out and 
resolve where the hole is but I've never been able to reproduce the failure 
myself.

----------
nosy: +ned.deily

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29846>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to