This repository has been archived by the owner on Dec 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
try to workaround qemu-ppc64le brokeness #23
Labels
Comments
@japaric I've tried to reproduce your issue. As a note, you're compiling BE with
Running with QEMU_LD_PREFIX pointing to a BE environment, I get:
This is on:
I came across your issue when I ran into the similar result with running a host-cross-compiled
Your mismatch suggestion triggered the solution to my issue, which is to invoke
Maybe that will help? Edit: qemu-pp64le also looks at QEMU_CPU in the environment. Setting this allows you to work with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On ubuntu 16.04, this crashes:
And the same happens if you try a Rust program cross compiled for
powerpc64le-unknown-linux-gnu
.IIRC, this is caused by QEMU and gcc not agreeing on their default arch level (-march) or cpu features they use. So, it may be possible to workaround this by building qemu from source but configuring it to support the same instruction set that gcc emits. Alternatively, tweaking gcc via CFLAGS (or by flat out recompiling with different
configure
options) may also work.The text was updated successfully, but these errors were encountered: