LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-15-2010, 01:22 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
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
 
Old 02-15-2010, 01:30 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
Quote:
Originally Posted by shariefbe View Post
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.
 
Old 02-15-2010, 01:45 AM   #3
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
ok fine. Here is the makefile check it
Attached Files
File Type: txt makefile.txt (41.9 KB, 7 views)

Last edited by shariefbe; 02-15-2010 at 01:47 AM.
 
Old 03-09-2010, 05:18 AM   #4
mikprog
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Unhappy

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compiling jayadhanesh Linux - Newbie 2 05-26-2009 12:48 AM
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 06:49 AM
No floating-point when cross-compiling Python for Mipsel Sytse Linux - Newbie 0 12-05-2008 12:56 PM
Cross compiling Mike Davies Linux - Kernel 4 04-04-2007 11:59 AM
Cross Compiling Python for StrongARM hiteshmaisheri Linux - Laptop and Netbook 2 04-15-2004 07:40 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration