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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-15-2010, 12:22 AM
|
#1
|
|
Member
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363
Rep:
|
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
|
|
|
|
02-15-2010, 12:30 AM
|
#2
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Quote:
Originally Posted by shariefbe
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.
|
|
|
|
02-15-2010, 12:45 AM
|
#3
|
|
Member
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363
Original Poster
Rep:
|
ok fine. Here is the makefile check it
Last edited by shariefbe; 02-15-2010 at 12:47 AM.
|
|
|
|
03-09-2010, 04:18 AM
|
#4
|
|
LQ Newbie
Registered: Mar 2010
Posts: 1
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:27 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|