2009-10-27 20:08:03     python: anyone else having building issues?

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-10-27 20:08:03     python: anyone else having building issues?

Rob D (UNITED STATES)

Message: 81793   

 

I'm using 2009R1.

 

When I go to build python, it chugs along and starts doing things like this:

/usr/bin/install -c -m 644 ../python-2.4.4/Lib/py_compile.py /usr/lib/python2.4

INFO: Can't locate Tcl/Tk libs and/or headers

/usr/bin/install -c -m 644 ../python-2.4.4/Lib/pyclbr.py /usr/lib/python2.4

building 'struct' extension

gcc -pthread -shared -Wl,-elf2flt -mcpu=bf548-any -DNDEBUG -pipe -Wall -g -O2 -mcpu=bf548-any -I. -I../python-2.4.4/Include build/temp.linu$

INFO: Can't locate Tcl/Tk libs and/or headers

building 'regex' extension

/usr/bin/ld: build/temp.linux-i686-2.4/structmodule.o: Relocations in generic ELF (EM: 106)

/usr/bin/ld: build/temp.linux-i686-2.4/structmodule.o: Relocations in generic ELF (EM:bfin-uclinux-gcc -shared -Wl,-elf2flt -mcpu=bf548-any$

106)

/usr/bin/ld: build/temp.linux-i686-2.4/structmodule.o: Relocations in generic ELF (EM: 106)

build/temp.linux-i686-2.4/structmodule.o: could not read symbols: File in wrong format

collect2: ld returned 1 exit status

 

Is it supposed to do this?  When I run python on the target I get this:

root:/> python                                                                

Could not find platform independent libraries <prefix>                        

Could not find platform dependent libraries <exec_prefix>                     

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]                      

'import site' failed; use -v for traceback                                    

Python 2.4.4 (#1, Oct 27 2009, 16:06:30)                                      

[GCC 4.1.2 (ADI svn)] on linux2                                               

Type "help", "copyright", "credits" or "license" for more information. 

 

Am I missing something?  Python compiles for the blackfin, but none of the supporting modules do?

 

Thanks!

QuoteReplyEditDelete

 

 

2009-10-27 20:34:10     Re: python: anyone else having building issues?

Mike Frysinger (UNITED STATES)

Message: 81794   

 

currently, this is expected behavior.  you only get the python binary.  the C modules do not cross-compile cleanly yet and errors from them are ignored.

 

it's up to you to install all the .py files you actually want.  after all, it is impossible to say what additional python modules any specific user will want on their end system, and installing all of them isnt going to happpen (since it easily passes the 20 meg mark iirc).

QuoteReplyEditDelete

 

 

2009-10-27 21:22:43     Re: python: anyone else having building issues?

Rob D (UNITED STATES)

Message: 81795   

 

Hi Mike,

 

Thanks for the clarification... I just wanted to make sure I wasn't going crazy.

Attachments

    Outcomes