Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939851 - dev-lang/python-3.12.6 emerge fails with endian problems
Summary: dev-lang/python-3.12.6 emerge fails with endian problems
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-19 12:56 UTC by Paul Gover
Modified: 2024-10-07 18:02 UTC (History)
3 users (show)

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


Attachments
emerge --info dev-lang/python (emergeinfo.log,9.46 KB, text/x-log)
2024-09-19 12:56 UTC, Paul Gover
Details
dev-lang/python-3.12.6 build.log (python-endian.log,25.91 KB, text/x-log)
2024-09-19 12:58 UTC, Paul Gover
Details
config.log zipped (config.log.gz,38.96 KB, application/gzip)
2024-09-19 13:09 UTC, Paul Gover
Details

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