Bug 10812 - python3 fails to run with multilib
Summary: python3 fails to run with multilib
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Jose Lamego
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-12-15 14:51 UTC by Nicolas Dechesne
Modified: 2017-03-23 13:38 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Dechesne 2016-12-15 14:51:00 UTC
I am trying to use multilib config on arm/arm64, it worked well and we can build it fine. however I noticed that gdb wasn't working (it would core dump), and it turns out that this is python3 which is not working: 

root@dragonboard-410c:~# python3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

Current thread 0x0000007f8d53afe0 (most recent call first):
Aborted (core dumped)

I haven't tried on x86/x86_64, but given the error signature I am tempted to believe this is not something related to arm multilib.
Comment 1 Koen Kooi 2016-12-15 15:11:27 UTC
A strace shows that python3 looks in /usr/lib/python<something> instead of /usr/lib64/python<something. Python2 does work properly with /usr/lib64
Comment 2 Jose Lamego 2017-03-17 22:26:33 UTC
Patch submitted to the mailing list can be viewed at:
http://lists.openembedded.org/pipermail/openembedded-core/2017-March/134296.html
Comment 3 Ross Burton 2017-03-23 13:38:07 UTC
Merged in oe-core 9e99897f17d9c62ca5da208751d6560fc98927b6.