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

Bug 471812

Summary: 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
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED NEEDINFO    
Severity: normal CC: bertrand, mgorny
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: info.log
build.log
files/python-2.7.3-BJA-cross.diff

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?