public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] Cross-Compiling Python
@ 2008-10-17 17:47 Melton, Jason
  2008-10-17 17:53 ` Jason
  0 siblings, 1 reply; 5+ messages in thread
From: Melton, Jason @ 2008-10-17 17:47 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 3123 bytes --]

Hello everyone,

 

I have been trying to get Gentoo to run on the Atmel AT91RM9200
processor that I have on a custom board.  So far, I have managed to
cross compile quite a few packages (some requiring help) for the
processor but when it comes to Python, I get the following error:

 

>>> Verifying ebuild Manifests... 

>>> Emerging (1 of 1) dev-lang/python-2.4.4-r6 to
/usr/arm-softfloat-linux-gnu/ 
 * Python-2.4.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...
[ ok ] 
 * python-gentoo-patches-2.4.4-r4.tar.bz2 RMD160 SHA1 SHA256 size ;-)
... [ ok ] 
 * checking ebuild checksums ;-) ...
[ ok ] 
 * checking auxfile checksums ;-) ...
[ ok ] 
 * checking miscfile checksums ;-) ...
[ ok ] 
 * checking Python-2.4.4.tar.bz2 ;-) ...
[ ok ] 
 * checking python-gentoo-patches-2.4.4-r4.tar.bz2 ;-) ...
[ ok ] 
>>> Unpacking source... 
>>> Unpacking Python-2.4.4.tar.bz2 to
/var/tmp/portage/dev-lang/python-2.4.4-r6/work 
>>> Unpacking python-gentoo-patches-2.4.4-r4.tar.bz2 to
/var/tmp/portage/dev-lang/python-2.4.4-r6/work 
 * 
 * ERROR: dev-lang/python-2.4.4-r6 failed. 
 * Call stack: 
 *               ebuild.sh, line   49:  Called src_unpack 
 *             environment, line 3466:  Called die 
 * The specific snippet of code: 
 *           [[ $(python -V 2>&1) != "Python ${PV}" ]] && die
"Crosscompiling requires the same host and build versions."; 
 *  The die message: 
 *   Crosscompiling requires the same host and build versions. 
 * 
 * If you need support, post the topmost build error, and the call stack
if relevant. 
 * A complete build log is located at
'/var/tmp/portage/dev-lang/python-2.4.4-r6/temp/build.log'. 
 * The ebuild environment file is located at
'/var/tmp/portage/dev-lang/python-2.4.4-r6/temp/environment'.

 

It seems to be complaining about requiring the host and build versions
to be the same.  I am really confused by this since I am building the
system on an x86.  I've been looking thru the past messages on this list
and haven't found anything like this yet (I may have missed it).  Has
anyone encountered this before and know a solution?

 

I've also posted to the Gentoo Forums but in a message it suggested that
I might try asking this list.

 

http://forums.gentoo.org/viewtopic-t-691364.html

 

Thanks

Jason

--------------------------------------------------------------------
CONFIDENTIALITY NOTE:  This transmission is intended solely for the use of the individual(s)
to whom it is addressed and may contain information that is privileged, confidential, 
or otherwise exempt from disclosure under applicable law.
 If the reader of this message is not the intended recipient, or an
authorized representative of the intended recipient, you are hereby
notified that any review, retransmission, dissemination, distribution,
copying of or taking of any action in reliance upon this communication is strictly prohibited. 
If you have received this communication in error, please delete it 
from your system without copying or forwarding it, and notify the 
sender of the error by reply e-mail. 

[-- Attachment #2: Type: text/html, Size: 7024 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross-Compiling Python
  2008-10-17 17:47 [gentoo-embedded] Cross-Compiling Python Melton, Jason
@ 2008-10-17 17:53 ` Jason
  2008-10-17 20:52   ` Melton, Jason
  2008-10-26  7:55   ` Mike Frysinger
  0 siblings, 2 replies; 5+ messages in thread
From: Jason @ 2008-10-17 17:53 UTC (permalink / raw
  To: gentoo-embedded

Melton, Jason wrote:
> I have been trying to get Gentoo to run on the Atmel AT91RM9200
> processor that I have on a custom board.  So far, I have managed to
> cross compile quite a few packages (some requiring help) for the
> processor but when it comes to Python, I get the following error:
[snip]
>  * The specific snippet of code: 
>  *           [[ $(python -V 2>&1) != "Python ${PV}" ]] && die
> "Crosscompiling requires the same host and build versions."; 

Version number, _not_ architecture.  Run 'python -V' on the x86 system.
 is it the same as the python version you are trying to cross-compile?
For some reason python requires this...

To solve you'll need to either upgrade or downgrade the host or target.
 I'd recommend adjusting the target version to match the build host.
Assuming the build host is up to date.

hth,

Jason.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [gentoo-embedded] Cross-Compiling Python
  2008-10-17 17:53 ` Jason
@ 2008-10-17 20:52   ` Melton, Jason
  2008-10-26  7:55   ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Melton, Jason @ 2008-10-17 20:52 UTC (permalink / raw
  To: gentoo-embedded


>-----Original Message-----
>From: Jason [mailto:gentoo@lakedaemon.net] 
>Sent: Friday, October 17, 2008 12:54 PM
>To: gentoo-embedded@lists.gentoo.org
>Subject: Re: [gentoo-embedded] Cross-Compiling Python
>
>Melton, Jason wrote:
>> I have been trying to get Gentoo to run on the Atmel AT91RM9200
>> processor that I have on a custom board.  So far, I have managed to
>> cross compile quite a few packages (some requiring help) for the
>> processor but when it comes to Python, I get the following error:
>[snip]
>>  * The specific snippet of code: 
>>  *           [[ $(python -V 2>&1) != "Python ${PV}" ]] && die
>> "Crosscompiling requires the same host and build versions."; 
>
>Version number, _not_ architecture.  Run 'python -V' on the x86 system.
> is it the same as the python version you are trying to cross-compile?
>For some reason python requires this...
>
>To solve you'll need to either upgrade or downgrade the host or target.
> I'd recommend adjusting the target version to match the build host.
>Assuming the build host is up to date.
>
>hth,
>
>Jason.

Thank you very much.  That seems to have fixed it.

Jason

--------------------------------------------------------------------
CONFIDENTIALITY NOTE:  This transmission is intended solely for the use of the individual(s)
to whom it is addressed and may contain information that is privileged, confidential, 
or otherwise exempt from disclosure under applicable law.
 If the reader of this message is not the intended recipient, or an
authorized representative of the intended recipient, you are hereby
notified that any review, retransmission, dissemination, distribution,
copying of or taking of any action in reliance upon this communication is strictly prohibited. 
If you have received this communication in error, please delete it 
from your system without copying or forwarding it, and notify the 
sender of the error by reply e-mail. 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross-Compiling Python
  2008-10-17 17:53 ` Jason
  2008-10-17 20:52   ` Melton, Jason
@ 2008-10-26  7:55   ` Mike Frysinger
  2008-11-15  5:29     ` Enrico Weigelt
  1 sibling, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2008-10-26  7:55 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Jason

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

On Friday 17 October 2008, Jason wrote:
> Melton, Jason wrote:
> > I have been trying to get Gentoo to run on the Atmel AT91RM9200
> > processor that I have on a custom board.  So far, I have managed to
> > cross compile quite a few packages (some requiring help) for the
> > processor but when it comes to Python, I get the following error:
>
> [snip]
>
> >  * The specific snippet of code:
> >  *           [[ $(python -V 2>&1) != "Python ${PV}" ]] && die
> > "Crosscompiling requires the same host and build versions.";
>
> Version number, _not_ architecture.  Run 'python -V' on the x86 system.
>  is it the same as the python version you are trying to cross-compile?
> For some reason python requires this...

because the python build system requires python in order to build properly.  
and we cant really guarantee that unless the versions are the same.  feel 
free to post a patch that has the ebuild build python twice so the host 
python never gets used ...
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] Cross-Compiling Python
  2008-10-26  7:55   ` Mike Frysinger
@ 2008-11-15  5:29     ` Enrico Weigelt
  0 siblings, 0 replies; 5+ messages in thread
From: Enrico Weigelt @ 2008-11-15  5:29 UTC (permalink / raw
  To: gentoo-embedded

* Mike Frysinger <vapier@gentoo.org> schrieb:

> because the python build system requires python in order to build properly.  

Yeah, that's quite funny. Several other projects (eg. perl) do
that crap, too. Just ask them about crosscompiling, get a big
spliff of popcorn and have fun ... ;-o


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-15  5:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 17:47 [gentoo-embedded] Cross-Compiling Python Melton, Jason
2008-10-17 17:53 ` Jason
2008-10-17 20:52   ` Melton, Jason
2008-10-26  7:55   ` Mike Frysinger
2008-11-15  5:29     ` Enrico Weigelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox