[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2016-07-17 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2016-07-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: I confirm that, on 3.6 and after the changesets that fixed issue 22359, pgen is always cross-compiled whatever the timestamps and that pgen is not run on a cross-build for Android. So I think it should work as well now for Trevor with v2.7.12. -- nosy

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2016-07-12 Thread Martin Panter
Martin Panter added the comment: Since 2.7.12 and 3.5.2, pgen should not be executed when in cross-compilation mode, thanks to Issue 22359 and Issue 22625. So I suspect the main problem is basically solved now. Even though it should no longer be used, pgen is still cross-compiled depending on

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2016-03-06 Thread Marc Duponcheel
Marc Duponcheel added the comment: one workaround is to build native in separate directory and to use the native build Parser/pgen and Programs/_freeze_importlib for cross compilation host build. -- nosy: +Marc Duponcheel ___ Python tracker

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2014-03-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread R. David Murray
R. David Murray added the comment: I believe that's the correct usage, in which case there must be a bug in the process somewhere. My guess would be that it is looking for a file in the "wrong" place when doing a cross compile, but that's just a guess. --

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Trevor Bowen
Trevor Bowen added the comment: I executed "make touch" between "configure" and "make", but the build process still created Parser/pgen and then tried to use it, which of course crashed the build, since pgen was compiled for the embedded host not the build system. :( Was that the wrong usage

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Trevor Bowen
Trevor Bowen added the comment: Thanks, David! I have no interest in running pgen on the target/host. My only interest is building python and its various modules to run on my embedded host. I do not want to develop Python on the embedded host. Unfortunately, the build process requires Pars

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread R. David Murray
R. David Murray added the comment: make touch avoids rebuilding "pgen and stuff", and just uses what was checked out or provided in the tarball. The release tarballs are supposed to have the time stamps in the correct order so that the compiletime/boostrapping utilities don't get built/rebuil

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Trevor Bowen
Trevor Bowen added the comment: I thought "make touch" was only for those trying to build from the Mecurial source, as opposed to building from the released tar-ball source. I thought my efforts laid on the other side of the need for that command. If I understood wrong, when would I use it a

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Have you tried "make touch" to avoid rebuilding pgen and stuff? -- nosy: +pitrou ___ Python tracker ___

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-07 Thread Trevor Bowen
Trevor Bowen added the comment: FWIW, I also explored my original proposal, which essentially moved the above script and modifications into the Python configure.ac and Makefile.pre.in files, so that Python's internal build process would create the native build system versions of Python and Par

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-07 Thread Trevor Bowen
Trevor Bowen added the comment: Short version of cross-compile script without error checking: #!/bin/bash export RFS=/local/my_root_file_system make distclean rm -rf python_for_build Parser/pgen_for_build git checkout -- Makefile.pre.in Modules/Setup.dist configure setup.py ./configure make pyth

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-07 Thread Trevor Bowen
Trevor Bowen added the comment: In the vein of: http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html I have created a patch and top-level build script, which builds the requisite python interpreter and Parser/pgen binary to run on the build system, which are both used dur

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-02 Thread Trevor Bowen
Trevor Bowen added the comment: Ok, thanks for the tips. I'm new to developing on Python itself. I'll start simple by trying to develop a set of patches for the 2.7.5 source tar-ball, which I usually use to build Python. If that succeeds, I'll look into pushing it into the related source fil

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-02 Thread R. David Murray
R. David Murray added the comment: I have no idea, frankly :) I guess my point is that the tool chain was not designed with cross compilation in mind, so sorting out how to make it work and writing a howto is something that needs to be done. The patches that have already been applied address

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-01 Thread Trevor Bowen
Trevor Bowen added the comment: Sorry, I do not mean to compound an already open and complex problem. I thought that the fixes in 2.7.4 were meant in part to help alleviate this problem. I had not found any feedback or tutorials, so I wanted to provide a status update of sorts. I'm sure the

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-01 Thread R. David Murray
R. David Murray added the comment: It is a known issue that the Python build infrastructure does not currently support cross compiling. There are a number of issues and patches in this tracker that address pieces of this puzzle. Help sorting it all out will be welcome. -- nosy: +r.d

[issue19142] Cross-compile fails trying to execute foreign pgen on build host

2013-10-01 Thread Trevor Bowen
New submission from Trevor Bowen: FWIW, I'm using a Freescale cross-compile tool-chain on a Linux x86-64 build host, although I have duplicated the cross-compile error on an x86 Ubunutu 10.04 build host. Steps to reproduce: $ wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2 $