[Python-Dev] python3 k1om dissociation permanence (original) (raw)
Brett Cannon brett at python.org
Fri Jan 22 16:50:04 EST 2016
- Previous message (by thread): [Python-Dev] python3 k1om dissociation permanence
- Next message (by thread): [Python-Dev] do people use sys._mercurial?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you could, ƦOB, can you open issues on bugs.python.org for each of these problems/changes? Otherwise we will lose track of this.
On Fri, 22 Jan 2016 at 11:57 ƦOB COASTN <robertpancoast77 at gmail.com> wrote:
Hello,
Enabling the build system for Intel MIC k1om is non-trivial using Python-3.4.4 Using Python2 for the k1om is very popular, but I require Python3 support on k1om. The first requirement to complete this build involved the download and extraction of pre-built MPSS RPM's. Then built required host python bins using GCC. Lastly, build MIC bins using ICC. The exacts are appended to the end of this message. I would like to discuss a few change requirements that trial and error has revealed. 1.) libffi requires the University OF Cantabria patch because the k1om is not binary compatible with x8664. [attached] These libffi changes could be implemented using the MIC or KNC macros. *see https://software.intel.com/en-us/node/514528 2.) ./configure script halts during failure to locate readelf for the host. I simply commented out these lines in the ./configure file: #if test "$crosscompiling" = yes; then #case "$READELF" in #readelf|:) #asfnerror $? "readelf for the host is required for cross builds" "$LINENO" 5 #;; #esac #fi Ideally, ./configure would support ICC and k1om. Am I missing something in the configure/make commands below? Is it possible to bypass the readelf requirement when cross-compiling for k1om? Additionally, are any of the command line parameters below unnecessary? PKGCONFIGLIBDIR PKGCONFIGPATH PYTHONFORBUILD PYTHONHOSTPLATFORM HOSTPGEN HOSTARCH BUILDARCH
Thanks, Rob
#copy/unpack the k1om bins tarball cd /home/ wget mpss-3.4.6-k1om.tar tar xvf mpss-3.4.6-k1om.tar cd /home/mpss-3.4.6/k1om/ for rpm in *.rpm; do rpm2cpio $rpm | cpio -idm; done #vars PythonVersion=Python-3.4.4 k1omrpm=/home/mpss-3.4.6/k1om/ INSTALLPREFIX=/home/Python/release/$PythonVersion-mic SRC=/home/Python/$PythonVersion echo "Compiling host Python" cd $SRC && make distclean cd $SRC && ./configure cd $SRC && make python Parser/pgen rm -f $SRC/hostpython mv SRC/pythonSRC/python SRC/pythonSRC/hostpython rm -f $SRC/Parser/hostpgen mv SRC/Parser/pgenSRC/Parser/pgen SRC/Parser/pgenSRC/Parser/hostpgen cd $SRC && make distclean echo "Configuring Python for MIC..." _cd $SRC && CONFIGSITE=config.site _ _./configure _ _CC="icc -mmic" _ _CFLAGS="-I$k1omrpm/include -I$k1omrpm/usr/include -wd10006" _ _CXX="icpc -mmic" _ _CPPFLAGS="-I$k1omrpm/include -I$k1omrpm/usr/include -wd10006" _ _PKGCONFIGLIBDIR="$k1omrpm/usr/lib64/pkgconfig" _ _PKGCONFIGPATH="$k1omrpm/usr/lib64/pkgconfig" _ _--host=x8664-k1om-linux _ _--build=x8664-linux-gnu _ _--with-cxx-main="icpc -mmic" _ --disable-ipv6 echo "done" echo "Compiling Python for MIC..." _cd $SRC && make _ _PYTHONFORBUILD=./hostpython _ _PYTHONHOSTPLATFORM=x8664-k1om-linux _ _HOSTPGEN=./Parser/hostpgen _ _HOSTARCH=x8664-k1om-linux _ _BUILDARCH=x8664-linux-gnu _ _EXTRACFLAGS="-fp-model precise -shared -fPIC" _ LDFLAGS="-L$k1omrpm/lib64 -L$k1omrpm/usr/lib64" echo "done" echo "Installing Python for MIC" mkdir -p $INSTALLPREFIX _cd $SRC && make install _ _PYTHONFORBUILD=./hostpython _ _PYTHONHOSTPLATFORM=x8664-k1om-linux _ prefix=$INSTALLPREFIX echo "done"
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160122/966ab5aa/attachment-0001.html>
- Previous message (by thread): [Python-Dev] python3 k1om dissociation permanence
- Next message (by thread): [Python-Dev] do people use sys._mercurial?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]