Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299044 - dev-lang/python-{2.6.4,3.1.1-r1} fails to crosscompile (uses native libffi)
Summary: dev-lang/python-{2.6.4,3.1.1-r1} fails to crosscompile (uses native libffi)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 22:47 UTC by Andrei Slavoiu
Modified: 2010-01-30 03:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,167.82 KB, text/plain)
2009-12-30 22:49 UTC, Andrei Slavoiu
Details
10_all_use_external_libffi.patch.patch (10_all_use_external_libffi.patch.patch,683 bytes, patch)
2009-12-31 00:30 UTC, Andrei Slavoiu
Details | Diff
build log (build.log,439.07 KB, text/plain)
2010-01-23 23:58 UTC, blazed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2009-12-30 22:47:33 UTC
building '_ctypes' extension                                                                                      
armv4tl-softfloat-linux-gnueabi-gcc -fPIC -DNDEBUG -march=armv4t -mtune=arm920t -Os -pipe -Wa,--noexecstack -I/usr/lib64/libffi-3.0.8/include -I. -I/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/./Include -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include -I. -IInclude -I./Include -I/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Include -I/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4 -c /var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctypes/_ctypes.c -o build/temp.linux-x86_64-2.6/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctypes/_ctypes.o                                                                    
In file included from /usr/lib64/libffi-3.0.8/include/ffi.h:66,                                                   
                 from /var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctypes/_ctypes.c:112:     
/usr/lib64/libffi-3.0.8/include/ffitarget.h:67: error: ‘FFI_DEFAULT_ABI’ undeclared here (not in a function)      

Failed to find the necessary bits to build these modules:
_bsddb            _multiprocessing   _tkinter            
bsddb185          dbm               dl                   
gdbm              imageop           sunaudiodev          
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes

Reproducible: Always

Steps to Reproduce:
Comment 1 Andrei Slavoiu 2009-12-30 22:49:31 UTC
Created attachment 214676 [details]
build.log
Comment 2 Andrei Slavoiu 2009-12-31 00:30:58 UTC
Created attachment 214678 [details, diff]
10_all_use_external_libffi.patch.patch

This is a patch for the gentoo patch that broke crosscompile to use the right pkg-config instead of the native one
Comment 3 blazed 2010-01-19 21:26:03 UTC
(In reply to comment #2)
> Created an attachment (id=214678) [details]
> 10_all_use_external_libffi.patch.patch
> 
> This is a patch for the gentoo patch that broke crosscompile to use the right
> pkg-config instead of the native one
> 

this did not fix the problem for me.
Comment 4 Andrei Slavoiu 2010-01-20 14:42:13 UTC
(In reply to comment #3)
> this did not fix the problem for me.
How did you use the patch? I don't think you can use it directly from portage, at least I was not able to do it. You need to patch a file that is inside /usr/portage/distfiles/python-gentoo-patches-2.6.4.tar.bz2, the problem is that if you patch the file and recreate the archive it will not match the manifest so portage will redownload the original. Maybe there is an option for emerge not to check the digest / filesize but I did not find one that works in this case.
Comment 5 blazed 2010-01-23 23:24:19 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > this did not fix the problem for me.
> How did you use the patch? I don't think you can use it directly from portage,
> at least I was not able to do it. You need to patch a file that is inside
> /usr/portage/distfiles/python-gentoo-patches-2.6.4.tar.bz2, the problem is that
> if you patch the file and recreate the archive it will not match the manifest
> so portage will redownload the original. Maybe there is an option for emerge
> not to check the digest / filesize but I did not find one that works in this
> case.
> 

I applied the patch in a rather crude manner. I ctrl+Z 'd the emerge and patched patch manually before resuming with fg
Comment 6 blazed 2010-01-23 23:58:38 UTC
Created attachment 217283 [details]
build log

I stand corrected, I have no idea what i did the first time, but it does fix the problem you were trying to address.

now I'm left with this tho. grrr.....
Comment 7 Andrei Slavoiu 2010-01-25 13:06:07 UTC
(In reply to comment #6)
> Created an attachment (id=217283) [details]
> build log
> 
> I stand corrected, I have no idea what i did the first time, but it does fix
> the problem you were trying to address.
> 
> now I'm left with this tho. grrr.....
> 

That's an entirelly different issue, related to unicode support, you should log a different bug for that. Also, if you want to workaround it for now maybe disabling the test FEATURE / USE will do.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-26 18:56:12 UTC
Fixed in 2.6.4-r1 and 3.1.1-r1.
Comment 9 blazed 2010-01-30 03:48:27 UTC
> That's an entirelly different issue, related to unicode support, you should log
> a different bug for that. Also, if you want to workaround it for now maybe
> disabling the test FEATURE / USE will do.
> 

thanks, but there's no "test" in my FEATURES or USE according to "xmerge --root <mybuildroot> --info" will check bugs and file another report :(