Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471812 - dev-lang/python-2.7.3-r3 - ImportError: .../work/i586-pc-linux-gnu/build/lib.linux-x86_64-2.7/_struct.so: wrong ELF class: ELFCLASS32
Summary: dev-lang/python-2.7.3-r3 - ImportError: .../work/i586-pc-linux-gnu/build/lib....
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: PATCH
Depends on:
Blocks:
 
Reported: 2013-05-30 14:36 UTC by Bertrand Jacquin
Modified: 2018-04-21 18:19 UTC (History)
2 users (show)

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


Attachments
info.log (info.log,10.10 KB, text/x-log)
2013-05-30 14:37 UTC, Bertrand Jacquin
Details
build.log (dev-lang:python-2.7.3-r3:20130530-142341.log,533.59 KB, text/x-log)
2013-05-30 14:38 UTC, Bertrand Jacquin
Details
files/python-2.7.3-BJA-cross.diff (python-2.7.3-BJA-cross.diff,791 bytes, patch)
2013-05-30 14:59 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-05-30 14:36:50 UTC
When trying to cross compiling dev-lang/python-2.7.3-r3, src_install() fail when running 'emake altinstall maninstall failed'

hostpython is used while CBUILD .so files are loaded, this result in EFLclass mismatch


Reproducible: Always
Comment 1 Bertrand Jacquin 2013-05-30 14:37:04 UTC
Created attachment 349650 [details]
info.log
Comment 2 Bertrand Jacquin 2013-05-30 14:38:14 UTC
Created attachment 349654 [details]
build.log
Comment 3 Bertrand Jacquin 2013-05-30 14:59:36 UTC
Created attachment 349658 [details, diff]
files/python-2.7.3-BJA-cross.diff

This ugly patch use the same logic used in Python 3.2. Ignore error generated by hostpython by prefixing relevant Makefile rules with '-'.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 18:19:09 UTC
Is this still relevant today?