LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cross compiling python (https://www.linuxquestions.org/questions/linux-software-2/cross-compiling-python-789153/)

shariefbe 02-15-2010 12:22 AM

cross compiling python
 
Hello,
I am trying to cross compile python for my ARM board. In that i am getting some error. How to overcome from that?
Code:

  Modules/_sre.o  Modules/_codecsmodule.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
arm-none-linux-gnueabi-ranlib libpython2.6.a
arm-none-linux-gnueabi-gcc  -Xlinker -export-dynamic -o python \
                        Modules/python.o \
                        libpython2.6.a -lpthread -ldl  -lpthread -lutil  -lm 
libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
/mnt/omap/sources/Python-2.6.4/./Modules/posixmodule.c:7180: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.6.a(posixmodule.o): In function `posix_tempnam':
/mnt/omap/sources/Python-2.6.4/./Modules/posixmodule.c:7135: warning: the use of `tempnam' is dangerous, better use `mkstemp'
./python: 1: Syntax error: word unexpected (expecting ")")
make: *** [sharedmods] Error 2

Please help me

jstephens84 02-15-2010 12:30 AM

Quote:

Originally Posted by shariefbe (Post 3863931)
Hello,
I am trying to cross compile python for my ARM board. In that i am getting some error. How to overcome from that?
Code:

  Modules/_sre.o  Modules/_codecsmodule.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
arm-none-linux-gnueabi-ranlib libpython2.6.a
arm-none-linux-gnueabi-gcc  -Xlinker -export-dynamic -o python \
                        Modules/python.o \
                        libpython2.6.a -lpthread -ldl  -lpthread -lutil  -lm 
libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
/mnt/omap/sources/Python-2.6.4/./Modules/posixmodule.c:7180: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.6.a(posixmodule.o): In function `posix_tempnam':
/mnt/omap/sources/Python-2.6.4/./Modules/posixmodule.c:7135: warning: the use of `tempnam' is dangerous, better use `mkstemp'
./python: 1: Syntax error: word unexpected (expecting ")")
make: *** [sharedmods] Error 2

Please help me



Not sure but that looks like a compile issue. Like they forgot to place a closing ) somewhere. But I could be wrong. I would check the makefile first and see if everything look correct and nothing is missing any closing punctuation.

shariefbe 02-15-2010 12:45 AM

1 Attachment(s)
ok fine. Here is the makefile check it

mikprog 03-09-2010 04:18 AM

that makefile unfortunately didn't fix the problem for me:
I still get the same error that jstephens84 has reported.

Has anyone any other hint?

Thanks


All times are GMT -5. The time now is 06:31 PM.