error compiling python, and "plat-linux2" versus "plat-linux3"

  • Thread starter Robert P. J. Day
  • Start date
R

Robert P. J. Day

i may have asked about this once upon a time but i'm still fighting
with it so i'll throw myself on the mercy of the list and ask again.
(and if there's a better forum for this question, let me know.)

i'm using the development environment wind river linux 4.2
(hereafter just "WRL") to configure and build an entire embedded
system, and that build is failing when it comes to compile
python-2.6.2. i *think* i have an idea what the general problem is,
but i need help to narrow it down.

here's the tail end of the build process:

===== begin snippet =====

Checking for unpackaged file(s): /home/rpjday/WindRiver/projects/42/glibc_std/host-cross/bin/../lib64/rpm/check-files /home/rpjday/WindRiver/projects/42/glibc_std/build/INSTALL_STAGE/python-2.6.2
error: Installed (but unpackaged) file(s) found:
/usr/lib64/python2.6/plat-linux3/IN.py
/usr/lib64/python2.6/plat-linux3/IN.pyc
/usr/lib64/python2.6/plat-linux3/IN.pyo
/usr/lib64/python2.6/plat-linux3/regen


RPM build errors:
File not found: /home/rpjday/WindRiver/projects/42/glibc_std/build/INSTALL_STAGE/python-2.6.2/usr/lib64/python2.6/plat-linux2
Installed (but unpackaged) file(s) found:
/usr/lib64/python2.6/plat-linux3/IN.py
/usr/lib64/python2.6/plat-linux3/IN.pyc
/usr/lib64/python2.6/plat-linux3/IN.pyo
/usr/lib64/python2.6/plat-linux3/regen
/home/rpjday/WindRiver/projects/42/glibc_std/scripts/packages.mk:2661: *** [python.install] Error 1
/home/rpjday/WindRiver/projects/42/glibc_std/scripts/packages.mk:3017: *** [python.buildlogger] Error 2
/home/rpjday/WindRiver/projects/42/glibc_std/scripts/Makefile.common.epilogue:37: *** [all] Error 2
GNUmakefile:55: *** [all] Error 2

#0 all at /home/rpjday/WindRiver/projects/42/glibc_std/build/GNUmakefile:55
remake[2]: Leaving directory `/home/rpjday/WindRiver/projects/42/glibc_std/build'
Command-line arguments:
"all"
Makefile:831: *** [all-recursive] Error 1

#0 all-recursive at /home/rpjday/WindRiver/projects/42/glibc_std/Makefile:831
remake[1]: Leaving directory `/home/rpjday/WindRiver/projects/42/glibc_std'
Command-line arguments:
"all-recursive"
make: *** [all] Error 2

===== end snippet =====

note the references to "plat-linux3" above -- i think that's what's
killing me as i'm doing all this on a ubuntu 11.04 system with my own
hand-rolled 3.x kernel and i think there's a step in the python build
process that can't handle a running kernel with version "3.*". this
is my suspicion as i've already found another location in the WRL
build that clearly never imagined it would be run on a 3.x kernel (it
recognized only "2.x" kernels as a hardcoded value.)

another reason i think it's something like this is if i run just the
prep step -- that is, untar the python-2.6.2 tarball and apply the
WRL patches -- here's what i get in the resulting directory:

$ grep -r plat-linux2 *
Doc/install/index.rst: ['', '/usr/local/lib/python2.3',
'/usr/local/lib/python2.3/plat-linux2',
Doc/install/index.rst:'/www/python/lib/pythonX.Y/plat-linux2', ...]``.
Misc/RPM/python-2.6.spec:%{__prefix}/%{libdirname}/python%{libvers}/plat-linux2
Misc/HISTORY: * Lib/plat-sunos5/CDIO.py, Lib/plat-linux2/CDROM.py:
Misc/HISTORY:e.g. lib-tk, lib-stdwin, plat-win, plat-linux2,
plat-sunos5, dos-8x3.
$

as you can see, it's all *hardcoded* references to "plat-linux2" so
it's a mystery as to where the references to "plat-linux3" are coming
from during the build process, which is why i suspect the reason i
gave above -- that nothing took into account that this build would be
done on a 3.x kernel.

can anyone shed light on this? can anyone else *try* this on a
system with a 3.x kernel and let me know what they get? i'm about to
just hack the source and change that to "plat-linux3" to see what
happens, but it would be nice to do something more intelligent.
thanks.

rday

--

========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top