Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 782121 - dev-python/cffi - cross-compiling fails with "error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
Summary: dev-python/cffi - cross-compiling fails with "error: #error "LONG_BIT definit...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2021-04-11 18:10 UTC by tgyt
Modified: 2023-02-09 01:12 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,7.40 KB, text/x-log)
2021-04-11 18:10 UTC, tgyt
Details
armv7a-unknown-linux-gnueabihf-emerge --info (file_782121.txt,5.12 KB, text/plain)
2021-04-11 18:11 UTC, tgyt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.