Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476136 - =dev-lang/python-2.7.5 on i586-pc-linux-gnu prefix - Could not find platform independent libraries - ImportError: cannot import name MAXREPEAT
Summary: =dev-lang/python-2.7.5 on i586-pc-linux-gnu prefix - Could not find platform ...
Status: RESOLVED NEEDINFO
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: 2013-07-07 23:14 UTC by Bertrand Jacquin
Modified: 2018-04-21 21:16 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,302.10 KB, text/x-log)
2013-07-07 23:15 UTC, Bertrand Jacquin
Details
emerge --info (info.log,13.01 KB, text/x-log)
2013-07-07 23:15 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-07-07 23:14:25 UTC
When trying to cross compiling dev-lang/python-2.7.5,  src_compile() failed at emake step :

python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/dlfcn.h /usr/include/linux/cdrom.h
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/site.py", line 549, in <module>
    main()
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/site.py", line 531, in main
    known_paths = addusersitepackages(known_paths)
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/site.py", line 266, in addusersitepackages
    user_site = getusersitepackages()
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/site.py", line 241, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/site.py", line 231, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/sysconfig.py", line 516, in get_config_var
    return get_config_vars().get(name)
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/sysconfig.py", line 449, in get_config_vars
    import re
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/re.py", line 105, in <module>
    import sre_compile
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/sre_compile.py", line 14, in <module>
    import sre_parse
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/sre_parse.py", line 17, in <module>
    from sre_constants import *
  File "/var/tmp/i586-pc-linux-gnu/portage/dev-lang/python-2.7.5/work/Python-2.7.5/Lib/sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
make: *** [platformspecificmods] Error 1

Full build.log and emerge --info attached

Reproducible: Always

Steps to Reproduce:
1. crossdev -t i586-pc-linux-gnu
2. i586-pc-linux-gnu-emerge -vat python:2.7
3.
Comment 1 Bertrand Jacquin 2013-07-07 23:15:21 UTC
Created attachment 352816 [details]
build.log
Comment 2 Bertrand Jacquin 2013-07-07 23:15:36 UTC
Created attachment 352818 [details]
emerge --info
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 21:16:29 UTC
I'm sorry but I find the number of bugs related to the cross-compilation of the same package you filed confusing.  Please verify if it still happens, and supply a patch if you have one.  Cross-compilation support is not something obligatory in Gentoo, and we apparently don't know how to fix the problems.