Created attachment 825297 [details] build.log Cross compiling from amd64 for arm. Problem occurs during configure phase during "building own python on CBUILD" part of ebuild. Relevant error: x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-mfpu=vfp’ My CFLAGS in /usr/armv6j-hardfloat-linux-gnueabi/etc/portage/make.conf: COMMON_FLAGS="-O2 -pipe -fomit-frame-pointer -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s" The chost cflags seem to be passed to the cbuild compiler, resulting in the error. Reverting https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29d2314810bd8e1de73df5c3ebe30c826281c253 (originally added to fix bug #847910 and bug #864911) seems to avoid the issue and results in a working python executable. Thanks for maintaining.
Created attachment 825299 [details] emerge-info.txt
Created attachment 825301 [details] emerge-pqv.txt
Thanks, I'll sort it tomorrow.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddbae51c4cfc2f579deb0294f82f20e0609c4353 commit ddbae51c4cfc2f579deb0294f82f20e0609c4353 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-10-25 11:05:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-25 11:05:53 +0000 dev-lang/python: fix CFLAGS for cross-compilation My CFLAGS for sparc etc were the same (generic) as for CBUILD, so didn't notice before. Closes: https://bugs.gentoo.org/878211 Fixes: 29d2314810bd8e1de73df5c3ebe30c826281c253 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/python/python-3.10.8.ebuild | 17 ++++++++++++----- dev-lang/python/python-3.11.0.ebuild | 17 ++++++++++++----- dev-lang/python/python-3.8.15.ebuild | 17 ++++++++++++----- dev-lang/python/python-3.9.15.ebuild | 12 ++++++++++++ 4 files changed, 48 insertions(+), 15 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28482b456cd9bbe9fff822ca6ef736540f029a9f commit 28482b456cd9bbe9fff822ca6ef736540f029a9f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-10-25 11:21:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-25 11:21:01 +0000 dev-lang/python: fix py3.9 CFLAGS too Bug: https://bugs.gentoo.org/878211 Fixes: ddbae51c4cfc2f579deb0294f82f20e0609c4353 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/python/python-3.9.15.ebuild | 5 ----- 1 file changed, 5 deletions(-)