Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 782121

Summary: dev-python/cffi - cross-compiling fails with "error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
Product: Gentoo Linux Reporter: tgyt
Component: Current packagesAssignee: Cross compilation support <cross>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jiri, jstein, mgorny, python, sam
Priority: Normal Keywords: NeedPatch
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=582130
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
armv7a-unknown-linux-gnueabihf-emerge --info

Description tgyt 2021-04-11 18:10:39 UTC
Created attachment 699300 [details]
build.log

dev-python/cffi-1.14.4
CHOST=armv7a-unknown-linux-gnueabihf
Looks like #582130
Comment 1 tgyt 2021-04-11 18:11:46 UTC
Created attachment 699303 [details]
armv7a-unknown-linux-gnueabihf-emerge --info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-17 05:44:38 UTC
Python doesn't really support cross atm, so I honestly doubt there's a way to get this to work without major changes.
Comment 3 James Le Cuirot gentoo-dev 2021-04-17 09:14:10 UTC
I did have it working in https://github.com/gentoo/gentoo/pull/9822 but the eclass have changed a lot since then and it needed a major rework anyway.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-09 01:12:39 UTC
Ebuild now uses PEP517 and mgorny recently added cross-compile support to gpep517. This should work now.