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

Bug 939851

Summary: dev-lang/python-3.12.6 emerge fails with endian problems
Product: Gentoo Linux Reporter: Paul Gover <pmw.gover>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal CC: joakim.tjernlund, pmw.gover, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info dev-lang/python
dev-lang/python-3.12.6 build.log
config.log zipped

Description Paul Gover 2024-09-19 12:56:01 UTC
Created attachment 903337 [details]
emerge --info dev-lang/python

This seems to be an old bug with dev-build/autoconf-archive, at least, according to this bug report on the python github:
https://github.com/python/cpython/issues/89640

The symptom is that the emerge fails, and the build log ends with:

checking whether float word ordering is bigendian... unknown
configure: error: 

Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.

Changing from clang to gcc made no difference.
Comment 1 Paul Gover 2024-09-19 12:58:24 UTC
Created attachment 903338 [details]
dev-lang/python-3.12.6 build.log
Comment 2 Paul Gover 2024-09-19 13:01:19 UTC
Probably should say I have dev-build/autoconf-archive-2023.02.20 and dev-build/autoconf-2.71-r7.
Comment 3 Paul Gover 2024-09-19 13:08:37 UTC
Just noticed that autoconf is slotted: the other slot is dev-build/autoconf-2.13-r8, if that is relevant.
Comment 4 Paul Gover 2024-09-19 13:09:31 UTC
Created attachment 903339 [details]
config.log zipped
Comment 6 Paul Gover 2024-10-06 18:36:10 UTC
(In reply to Joakim Tjernlund from comment #5)
> Perhaps try adding?
> https://github.com/autoconf-archive/autoconf-archive/pull/279/commits/
> 23be7ccd7f306fbc73b3f33e2f5ead716d120eef

I've been away, so I've only just had time to try this.

That patch seems to be for something other than Python 3.12, as the target file is m4/ax_c_float_words_bigendian.m4, and there's no such file in dev-lang/python-3.12.6_p4.

The patch will apply to "aclocal.m4", and as the patch is pretty specific, I guess that's the intended target.

To be clear, I could see the ebuild output:
  Applying user patches from /etc/portage/patches ...
   * Applying 0014-ax_c_float_words_bigendian.patch ... [ ok ]
   * User patches applied.

HOWEVER, it had no effect on the success of the ebuild.  It still results in exactly the same failure and build.log as before.
I tried it with both gcc-lto and clang-lto.  Both fail.

I took the hint from the patch and tried without lto.  It compiles happily straight clang.  I expect it does with gcc without lto, but didn't try that.