Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550954 - dev-lang/python-2.7.9-r2 crossbuild against uClibc-0.9.33.2-r15 fails during install phase
Summary: dev-lang/python-2.7.9-r2 crossbuild against uClibc-0.9.33.2-r15 fails during ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-01 14:19 UTC by Sven E.
Modified: 2022-01-02 10:26 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,191.72 KB, text/plain)
2015-06-01 14:21 UTC, Sven E.
Details
build.log for python-2.7.10 (build.log,191.41 KB, text/plain)
2015-06-01 14:48 UTC, Sven E.
Details
failing command (failing.command,884 bytes, text/plain)
2015-08-16 04:15 UTC, Sven E.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven E. 2015-06-01 14:19:41 UTC
dev-lang/python-2.7.9-r2 fails install phase on 'pyfpe.h' when cross compiling against uClibc. The build bails out with RuntimeError: this can't happen (bad char ' ')


Reproducible: Always

Steps to Reproduce:
1. Have cross toolchain for uclibc on amd64 at hand
2.Try crosscompiling/emerging python-2.7.9-r2

Actual Results:  
Failure during install phase

Expected Results:  
Clean Build.
Comment 1 Sven E. 2015-06-01 14:21:12 UTC
Created attachment 404416 [details]
build.log

build.log
Comment 2 Sven E. 2015-06-01 14:48:49 UTC
Created attachment 404420 [details]
build.log for python-2.7.10

python-2.7.10 emits the similiar behavior for a different file (pyconfig.h)
Comment 3 Sven E. 2015-08-16 04:15:09 UTC
Created attachment 409130 [details]
failing command

The actual command that is failing
Comment 4 Sven E. 2015-08-16 04:20:42 UTC
I looked into this a little further but am stuck completely:

What happens is, that in util.py in split_quoted string.whitespace is used for matching. While the actual input does have a whitespace, the test fails, because from some unobvious reason string.whitespace='' is the empty string. Taking a closer look, string.lowercase and all it's friends seem to have irrational contents too.

Any idea how I could investigate this any further?
Comment 5 Sven E. 2015-08-16 14:47:37 UTC
Further investigation brought the following to my attention:
When I remove /usr/x86_64-pc-linux-uclibc/tmp/portage/dev-lang/python-2.7.10/work/x86_64-pc-linux-uclibc/build/lib.linux2-x86_64-2.7 from PYPATH and rerun the failing command manually it won't fail.

After some testing with starting python interactively, I can confirm that when that particle is removed from the path, string whitespace does indeed hold the whitespace characters. It seems string.whitespace gets borked, when strop.so is loaded by string.py.

The actual problem seems to be strop.so which is somehow broken.

I looked at strop.so and how it fills string.whitespace. For the sake of completeness I wrote a small C programm doing the same and linked it against uclibc. The program itself seems to work as expected.
Comment 6 David Denoncin 2020-08-01 08:24:19 UTC
Is this still reproducible with in-tree version?
Comment 7 David Seifert gentoo-dev 2022-01-02 10:26:33 UTC
uclibc support in Gentoo has been removed.