Posted to python-dev by rkeene at Fri Dec 05 21:22:31 GMT 2014view raw

  1. set -e
  2.  
  3. # Build native Python 3.4.2
  4. ## Verify we have the right thing
  5. openssl sha256 python-3.4.2.tgz
  6. rm -rf Python-3.4.2
  7. tar -xf python-3.4.2.tgz
  8. cd Python-3.4.2
  9. rm -rf ../__TMP__
  10. ./configure --prefix="$(pwd)/../__TMP__/INST"
  11. make
  12. make install
  13. make distclean
  14.  
  15. # Tell next (cross) build of Python to use the newly built Python 3.4.2
  16. PYTHON_FOR_BUILD="$(pwd)/../__TMP__/INST/bin/python3.4"
  17. export PYTHON_FOR_BUILD
  18.  
  19. # Cross-compile Python for my platform
  20. ./configure --disable-ipv6 --build=x86_64-unknown-linux-gnu \
  21. ac_cv_prog_READELF="$(which readelf)" ac_cv_file__dev_ptmx='yes' ac_cv_file__dev_ptc='no' \
  22. --host=x86_64-myvendor-linux --prefix= --libdir=/lib
  23. make
  24.  
  25. ####################
  26. ## Results: ########
  27. ####################
  28. SHA256(python-3.4.2.tgz)= 44a3c1ef1c7ca3e4fd25242af80ed72da941203cb4ed1a8c1b724d9078965dd8
  29. checking build system type... x86_64-unknown-linux-gnu
  30. checking host system type... x86_64-unknown-linux-gnu
  31. ...
  32. x86_64-myvendor-linux-gcc -fPIC -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -DPy_LIMITED_API=0x03040000 -I./Include -I/home/rkeene/devel/blah/node/root/packages/python/archive/Python-3.4.2/../__TMP__/INST/include -I. -IInclude -I/usr/local/include -I/home/rkeene/devel/blah/node/root/packages/python/archive/__TMP__/INST/include/python3.4m -c xxlimited.c -o build/temp.linux-x86_64-3.4/xxlimited.o
  33. gcc: error: xxlimited.c: No such file or directory
  34. gcc: fatal error: no input files
  35. compilation terminated.
  36. error: [Errno 2] No such file or directory: '/home/rkeene/devel/blah/node/root/packages/python/archive/__TMP__/INST/lib/python3.4/config-3.4m/Modules/_ctypes/libffi'
  37. make: *** [sharedmods] Error 1
  38.  
  39. Full output: http://www.rkeene.org/viewer/tmp/python-3.4.2-crosscompile.log.htm
  40.