On Mon, Jun 25, 2012 at 11:02 AM, Mike Goins <[email protected]>wrote:
> Sorry, for the top post, but wanted to explain the previous errors first. > > Since python has to make a small native build to cross compile, > depending on where the failure is, running the build again may have > incompatible libs laying around (that would be the error messages from > earlier in the thread). It is safest, if not actively developing > python, to remove the build directory before running again, or just > collect the initial error, not the subsequent build. > > More below on the build error. > > On Mon, Jun 25, 2012 at 11:09 AM, Henri Kjellberg > <[email protected]> wrote: > > Sorry, this will be quite a long copy and paste. Here are the results: > > > > Processing: python > > ==================== > > Build path taken because: no prebuilt rpm,� > > > > rpmbuild --dbpath /home/henri/ltib/rootfs//var/lib/rpm --target arm > --define > > '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define > > '__strip strip' --define '_topdir /home/henri/ltib/rpm' --define '_prefix > > /usr' --define '_tmppath /home/henri/ltib/tmp' --define '_rpmdir > > /home/henri/ltib/rpm/RPMS' �--define '_mandir /usr/share/man' --define > > '_sysconfdir /etc' --define '_localstatedir /var' -bb --clean --rmsource > > �/home/henri/ltib/dist/lfs-5.1/python/python.spec > > Building target platforms: arm > > Building for target arm > > Executing(%prep): /bin/sh -e /home/henri/ltib/tmp/rpm-tmp.21362 > > + umask 022 > > + cd /home/henri/ltib/rpm/BUILD > > + cd /home/henri/ltib/rpm/BUILD > > + rm -rf Python-2.4.4 > > + tar -xvvf - > > <snipped, host builds OK> > > > HOSTPYTHON=./hostpython CROSS_COMPILE=yes install > > mkdir ./Lib/plat-linux3 > > cp ./Lib/plat-generic/regen ./Lib/plat-linux3/regen > > export PATH; PATH="`pwd`:$PATH"; \ > > export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \ > > export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ > > export EXE; EXE=""; \ > > cd ./Lib/plat-linux3; ./regen > > This is where the error occurs. Since it appears that you are using a > 3.0 kernel based system, the plat-generic is used instead of > plat-linux2. Ltib's version of Python, 2.4.4 does not deal with > linux-3.0. > > <snip> > > > ./regen: line 3: /home/henri/ltib/rpm/BUILD/Python-2.4.4/python: cannot > > execute binary file > > make: *** [Lib/plat-linux3] Error 126 > > make: *** Waiting for unfinished jobs.... > > Here is calling regen incorrectly. > > There are a few fixes for this, by increasing difficulty and only need > to do one of them: > > 1. Switch to a distro that is not using linux-3.0, specifically > linux-2.6xx > > 2. Patch the ltib version of Python-2.4.4 to work with linux-3.0 ( I > would do this myself, but do not have a 3.0 system) > a. remove the python build dir. > b. ./ltib -p python -m prep > c. in the python build dir copy Lib/plat-linux2 to > Lib/plat-linux3 (this duplicates the 2.0 handling for 3) > d. ./ltib -p python -m scbuild > e. if all OK, do the scinstall/scdeploy steps > > 3. Rev the ltib python version to one that is compatible with > linux-3.0. Not recommend, unless you also enjoy chewing glass. > > If you do happen to do #2 and it works, let us know. It might be > worth a patch for ltib to ensure future compatibility. > > _______________________________________________ > LTIB home page: http://ltib.org > > Ltib mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/ltib > Neat I will try and accomplish Option 2 and let you know the results. Thanks for diagnosing the problem! Henri
_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
