qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc
@ 2020-08-15 11:37 Ech
  2020-08-15 11:48 ` [Bug 1891748] " Ech
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: Ech @ 2020-08-15 11:37 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

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

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
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:
  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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
@ 2020-08-15 11:48 ` Ech
  2020-08-15 11:51 ` Ech
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Ech @ 2020-08-15 11:48 UTC (permalink / raw)
  To: qemu-devel

Steps to reproduce

1. Download and extract attached tarball.

$ make # will build the docker container

$ make run # will enter the container

# once in the container, run

# /qemu-arm-static-50 /bin/bash /runme.sh



** Attachment added: "qemu-1891748-1.tgz"
   https://bugs.launchpad.net/qemu/+bug/1891748/+attachment/5401727/+files/qemu-1891748-1.tgz

-- 
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:
  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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
  2020-08-15 11:48 ` [Bug 1891748] " Ech
@ 2020-08-15 11:51 ` Ech
  2020-10-16 23:46 ` Devaev Maxim
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Ech @ 2020-08-15 11:51 UTC (permalink / raw)
  To: qemu-devel

Additional info,

error message text ( "Allocating guest commpage" ) found in this commit:


https://fossies.org/diffs/qemu/5.0.0_vs_5.1.0-rc0/linux-user/elfload.c-diff.html

-- 
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:
  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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
  2020-08-15 11:48 ` [Bug 1891748] " Ech
  2020-08-15 11:51 ` Ech
@ 2020-10-16 23:46 ` Devaev Maxim
  2020-10-17  0:10 ` Tyler Price
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Devaev Maxim @ 2020-10-16 23:46 UTC (permalink / raw)
  To: qemu-devel

Anyone? Seriously, the problem really exists and we even made a case
that reproduces it. Someone please take a look at this.

-- 
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:
  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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (2 preceding siblings ...)
  2020-10-16 23:46 ` Devaev Maxim
@ 2020-10-17  0:10 ` Tyler Price
  2020-10-17  5:13 ` Richard Henderson
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Tyler Price @ 2020-10-17  0:10 UTC (permalink / raw)
  To: qemu-devel

Plz take a look at this issue please.

-- 
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:
  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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (3 preceding siblings ...)
  2020-10-17  0:10 ` Tyler Price
@ 2020-10-17  5:13 ` Richard Henderson
  2020-10-19 10:52 ` Mehmet Aydoğdu
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Richard Henderson @ 2020-10-17  5:13 UTC (permalink / raw)
  To: qemu-devel

This has been fixed in mainline, probably commit
8ef618859c379fdce81c91bc93e0574e36ea76ff.


** Changed in: qemu
       Status: New => Fix Committed

-- 
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 Committed

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (4 preceding siblings ...)
  2020-10-17  5:13 ` Richard Henderson
@ 2020-10-19 10:52 ` Mehmet Aydoğdu
  2020-12-10  9:21 ` Thomas Huth
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Mehmet Aydoğdu @ 2020-10-19 10:52 UTC (permalink / raw)
  To: qemu-devel

** Also affects: charms
   Importance: Undecided
       Status: New

-- 
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 Committed
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (5 preceding siblings ...)
  2020-10-19 10:52 ` Mehmet Aydoğdu
@ 2020-12-10  9:21 ` Thomas Huth
  2021-01-16 16:08 ` Andreas K. Hüttel
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Thomas Huth @ 2020-12-10  9:21 UTC (permalink / raw)
  To: qemu-devel

Released with QEMU v5.2.0.

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (6 preceding siblings ...)
  2020-12-10  9:21 ` Thomas Huth
@ 2021-01-16 16:08 ` Andreas K. Hüttel
  2021-03-17 14:20 ` Thorsten Glaser
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Andreas K. Hüttel @ 2021-01-16 16:08 UTC (permalink / raw)
  To: qemu-devel

I'm still seeing this with qemu 5.2.0

armv7a-softfp-linux-gnueabi-gcc -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp   -Wl,-O1 -Wl,--as-needed  glibc-test.c   -o glibc-test
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (7 preceding siblings ...)
  2021-01-16 16:08 ` Andreas K. Hüttel
@ 2021-03-17 14:20 ` Thorsten Glaser
  2021-03-17 14:20 ` Thorsten Glaser
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Thorsten Glaser @ 2021-03-17 14:20 UTC (permalink / raw)
  To: qemu-devel

$ 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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (8 preceding siblings ...)
  2021-03-17 14:20 ` Thorsten Glaser
@ 2021-03-17 14:20 ` Thorsten Glaser
  2021-03-17 14:21 ` Thorsten Glaser
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Thorsten Glaser @ 2021-03-17 14:20 UTC (permalink / raw)
  To: qemu-devel

Heh, even if I omit -static …

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (9 preceding siblings ...)
  2021-03-17 14:20 ` Thorsten Glaser
@ 2021-03-17 14:21 ` Thorsten Glaser
  2021-03-17 14:48 ` Laurent Vivier
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Thorsten Glaser @ 2021-03-17 14:21 UTC (permalink / raw)
  To: qemu-devel

It works with sudo, but that can’t be the fix…

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (10 preceding siblings ...)
  2021-03-17 14:21 ` Thorsten Glaser
@ 2021-03-17 14:48 ` Laurent Vivier
  2021-03-17 16:17 ` Alex Bennée
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Laurent Vivier @ 2021-03-17 14:48 UTC (permalink / raw)
  To: qemu-devel

Could you check the result of "sysctl vm.mmap_min_addr"

65536 is the value that works for me.

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (11 preceding siblings ...)
  2021-03-17 14:48 ` Laurent Vivier
@ 2021-03-17 16:17 ` Alex Bennée
  2021-05-14  0:54 ` Devaev Maxim
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Alex Bennée @ 2021-03-17 16:17 UTC (permalink / raw)
  To: qemu-devel

** Tags added: arm linux-user tcg

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (12 preceding siblings ...)
  2021-03-17 16:17 ` Alex Bennée
@ 2021-05-14  0:54 ` Devaev Maxim
  2021-05-24  2:17 ` Devaev Maxim
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Devaev Maxim @ 2021-05-14  0:54 UTC (permalink / raw)
  To: qemu-devel

@aurent-vivier Checked.
This value does not affect the bug, after changing it, I still get an error.

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (13 preceding siblings ...)
  2021-05-14  0:54 ` Devaev Maxim
@ 2021-05-24  2:17 ` Devaev Maxim
  2021-05-25  6:18 ` Alex Bennée
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Devaev Maxim @ 2021-05-24  2:17 UTC (permalink / raw)
  To: qemu-devel

Anyone?

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (14 preceding siblings ...)
  2021-05-24  2:17 ` Devaev Maxim
@ 2021-05-25  6:18 ` Alex Bennée
  2021-05-25 22:40 ` Devaev Maxim
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Alex Bennée @ 2021-05-25  6:18 UTC (permalink / raw)
  To: qemu-devel

I've been unable to replicate the crash with any of the instructions
here. Certainly all the statically compiled unit tests work and I've
just done a build of QEMU in an emulated Debian Buster (Armel) docker
image.

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (15 preceding siblings ...)
  2021-05-25  6:18 ` Alex Bennée
@ 2021-05-25 22:40 ` Devaev Maxim
  2021-05-26 10:07 ` Laurent Vivier
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Devaev Maxim @ 2021-05-25 22:40 UTC (permalink / raw)
  To: qemu-devel

Okay, what do you think this problem might be related to? I'm glad your
tests are working, but I'm definitely not the only one with this
problem.

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (16 preceding siblings ...)
  2021-05-25 22:40 ` Devaev Maxim
@ 2021-05-26 10:07 ` Laurent Vivier
  2021-05-27  0:20 ` Devaev Maxim
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Laurent Vivier @ 2021-05-26 10:07 UTC (permalink / raw)
  To: qemu-devel

I think the output of "sysctl vm" could help to identify which parameter
is involved in the problem. You can also compare the output of "sudo
sysctl vm" and "sysctl vm"

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (17 preceding siblings ...)
  2021-05-26 10:07 ` Laurent Vivier
@ 2021-05-27  0:20 ` Devaev Maxim
  2021-07-29  5:08 ` Maxim Devaev
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Devaev Maxim @ 2021-05-27  0:20 UTC (permalink / raw)
  To: qemu-devel

In my case, sudo does not affect this bug. My output in attachements.

** Attachment added: "sysctl-vm.txt"
   https://bugs.launchpad.net/qemu/+bug/1891748/+attachment/5500596/+files/sysctl-vm.txt

-- 
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


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (18 preceding siblings ...)
  2021-05-27  0:20 ` Devaev Maxim
@ 2021-07-29  5:08 ` Maxim Devaev
  2021-07-30  7:03 ` Maxim Devaev
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Maxim Devaev @ 2021-07-29  5:08 UTC (permalink / raw)
  To: qemu-devel

Sup?

-- 
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



^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (19 preceding siblings ...)
  2021-07-29  5:08 ` Maxim Devaev
@ 2021-07-30  7:03 ` Maxim Devaev
  2021-07-30  7:14 ` Maxim Devaev
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Maxim Devaev @ 2021-07-30  7:03 UTC (permalink / raw)
  To: qemu-devel

Okay, it was found experimentally that the problem is reproduced if
vm.mmap_min_addr is greater than 53249. If from 0 to 53249 - everything
works. What can this be related to?

-- 
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



^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (20 preceding siblings ...)
  2021-07-30  7:03 ` Maxim Devaev
@ 2021-07-30  7:14 ` Maxim Devaev
  2021-07-30  7:40 ` Maxim Devaev
  2021-07-31  4:38 ` xornet
  23 siblings, 0 replies; 25+ messages in thread
From: Maxim Devaev @ 2021-07-30  7:14 UTC (permalink / raw)
  To: qemu-devel

I mean [0...52348] is working.

-- 
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



^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (21 preceding siblings ...)
  2021-07-30  7:14 ` Maxim Devaev
@ 2021-07-30  7:40 ` Maxim Devaev
  2021-07-31  4:38 ` xornet
  23 siblings, 0 replies; 25+ messages in thread
From: Maxim Devaev @ 2021-07-30  7:40 UTC (permalink / raw)
  To: qemu-devel

Sorry, an error in previous message.

Fixed and detailed diagnostics:

[0    ...  53248] - working
[53249 ... 61440] - Cannot allocate memory
[61441 ... 65536 and higher] - 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



^ permalink raw reply	[flat|nested] 25+ messages in thread

* [Bug 1891748] Re: qemu-arm-static 5.1 can't run gcc
  2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
                   ` (22 preceding siblings ...)
  2021-07-30  7:40 ` Maxim Devaev
@ 2021-07-31  4:38 ` xornet
  23 siblings, 0 replies; 25+ messages in thread
From: xornet @ 2021-07-31  4:38 UTC (permalink / raw)
  To: qemu-devel

Can confirm this bug on fresh Linux Arch and Debian Linux installation.
I need just nothing to reproduce it: Just install fresh arch and do steps described in comment #1

-- 
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



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2021-07-31  4:46 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-15 11:37 [Bug 1891748] [NEW] qemu-arm-static 5.1 can't run gcc Ech
2020-08-15 11:48 ` [Bug 1891748] " Ech
2020-08-15 11:51 ` Ech
2020-10-16 23:46 ` Devaev Maxim
2020-10-17  0:10 ` Tyler Price
2020-10-17  5:13 ` Richard Henderson
2020-10-19 10:52 ` Mehmet Aydoğdu
2020-12-10  9:21 ` Thomas Huth
2021-01-16 16:08 ` Andreas K. Hüttel
2021-03-17 14:20 ` Thorsten Glaser
2021-03-17 14:20 ` Thorsten Glaser
2021-03-17 14:21 ` Thorsten Glaser
2021-03-17 14:48 ` Laurent Vivier
2021-03-17 16:17 ` Alex Bennée
2021-05-14  0:54 ` Devaev Maxim
2021-05-24  2:17 ` Devaev Maxim
2021-05-25  6:18 ` Alex Bennée
2021-05-25 22:40 ` Devaev Maxim
2021-05-26 10:07 ` Laurent Vivier
2021-05-27  0:20 ` Devaev Maxim
2021-07-29  5:08 ` Maxim Devaev
2021-07-30  7:03 ` Maxim Devaev
2021-07-30  7:14 ` Maxim Devaev
2021-07-30  7:40 ` Maxim Devaev
2021-07-31  4:38 ` xornet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).