[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
From: |
Thorsten Glaser |
Subject: |
[Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc |
Date: |
Wed, 17 Mar 2021 14:20:06 -0000 |
$ qemu-arm --version
qemu-arm version 5.2.0 (Debian 1:5.2+dfsg-6)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
I’m seeing this error on a totally different file:
I’ve made a short test program (hello world-ish) and compiled it with
the OpenWrt toolchain but added -static so I can run it on the host
using qemu-user-arm:
$ STAGING_DIR=$PWD/staging_dir
PATH=staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl_eabi/bin:$PATH
arm-openwrt-linux-muslgnueabi-gcc -Os -pipe -g3 -fno-caller-saves -fno-plt
-fhonour-copts -mfloat-abi=hard -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -static x.c
$ ./a.out
Allocating guest commpage: Operation not permitted
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1891748
Title:
qemu-arm-static 5.1 can't run gcc
Status in QEMU:
Fix Released
Status in Juju Charms Collection:
New
Bug description:
Issue discovered while trying to build pikvm (1)
Long story short: when using qemu-arm-static 5.1, gcc exits whith
message:
Allocating guest commpage: Operation not permitted
when using qemu-arm-static v5.0, gcc "works"
Steps to reproduce will follow
(1) https://github.com/pikvm/pikvm/blob/master/pages/building_os.md
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1891748/+subscriptions