* [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working
@ 2022-05-30 19:41 bugzilla
2022-05-30 22:04 ` [Buildroot] [Bug 14826] " bugzilla
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bugzilla @ 2022-05-30 19:41 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
Bug ID: 14826
Summary: make qemu_x86_64_defconfig stopped working
Product: buildroot
Version: 2022.02.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: buildroot@apitman.com
CC: buildroot@uclibc.org
Target Milestone: ---
Runnning
make qemu_x86_64_defconfig; make clean all
has stopped working for me. I get the following compilation error:
In file included from sigchain.c:3:
In function 'xrealloc',
inlined from 'sigchain_push.isra' at sigchain.c:26:2:
subcmd-util.h:56:23: error: pointer may be used after 'realloc'
[-Werror=use-after-free]
56 | ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to 'realloc' here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:58:31: error: pointer may be used after 'realloc'
[-Werror=use-after-free]
58 | ret = realloc(ptr, 1);
| ^~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to 'realloc' here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
In function 'xrealloc',
inlined from 'sigchain_push' at sigchain.c:26:2,
inlined from 'sigchain_push_common' at sigchain.c:53:2:
subcmd-util.h:56:23: error: pointer may be used after 'realloc'
[-Werror=use-after-free]
56 | ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to 'realloc' here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:58:31: error: pointer may be used after 'realloc'
[-Werror=use-after-free]
58 | ret = realloc(ptr, 1);
| ^~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to 'realloc' here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
@ 2022-05-30 22:04 ` bugzilla
2022-05-30 23:40 ` bugzilla
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-05-30 22:04 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
Yann E. MORIN <yann.morin.1998@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yann.morin.1998@free.fr
--- Comment #1 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Hello,
I am afraid I was not able to reproduce the failure.
From a clean checkout of git master (d590003), I did:
make qemu_x86_64_defconfig
make
And the build succeeded.
What version of Buildroot are you using?
What system are you building on?
Regards,
Yann E. MORIN.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
2022-05-30 22:04 ` [Buildroot] [Bug 14826] " bugzilla
@ 2022-05-30 23:40 ` bugzilla
2022-05-30 23:41 ` bugzilla
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-05-30 23:40 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
--- Comment #2 from buildroot@apitman.com ---
I'd say that's good news. I just tried master and it doesn't work either.
A system update just broke something on my end. I'm using Arch on kernel
5.17.9.
Is there a recommended distro to use for building buildroot?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
2022-05-30 22:04 ` [Buildroot] [Bug 14826] " bugzilla
2022-05-30 23:40 ` bugzilla
@ 2022-05-30 23:41 ` bugzilla
2022-05-31 9:28 ` bugzilla
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-05-30 23:41 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
--- Comment #3 from buildroot@apitman.com ---
I'd say that's good news. I just tried master and it doesn't work either.
A system update just broke something on my end. I'm using Arch on kernel
5.17.9.
Is there a recommended distro to use for building buildroot?
EDIT: **A system update probably broke something on my end
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
` (2 preceding siblings ...)
2022-05-30 23:41 ` bugzilla
@ 2022-05-31 9:28 ` bugzilla
2022-05-31 12:15 ` bugzilla
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-05-31 9:28 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
--- Comment #4 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Hello,
This issue is caused by a gcc-12 extra check about use-after-free,
which has been fixed in the kernel with:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=52a9dab6d892763b2a8334a568bd4e2c1a6fde66
You hit this issue because Archlinux is now using gcc-12.1.0 as the
default compiler, and because the kernel uses -Werror to build that
host tool.
So, either update your kernel to one that has the fix, or backport it
yourself, or downgrade your compiler to a (slightly) older one.
Regards,
Yann E. MORIN.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
` (3 preceding siblings ...)
2022-05-31 9:28 ` bugzilla
@ 2022-05-31 12:15 ` bugzilla
2022-05-31 17:48 ` bugzilla
2022-06-04 8:24 ` bugzilla
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-05-31 12:15 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
Yann E. MORIN <yann.morin.1998@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned@buildroot.uclibc |yann.morin.1998@free.fr
|.org |
--- Comment #5 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Created attachment 9316
--> https://bugs.busybox.net/attachment.cgi?id=9316&action=edit
linux: don't build host tools with -Werror
Hello,
Can you please try this patch, and report the result?
If that works for you, I'll submit a proper patch later.
Regards,
Yann E. MORIN.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
` (4 preceding siblings ...)
2022-05-31 12:15 ` bugzilla
@ 2022-05-31 17:48 ` bugzilla
2022-06-04 8:24 ` bugzilla
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-05-31 17:48 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
--- Comment #6 from buildroot@apitman.com ---
Thanks for figuring this out! I can confirm that the patch works on master,
commit eb5e2d2d43c5c0f71ae8243081625261de2cd134.
Bit of a tangential question: is there an easy way to see what kernel version
commit 52a9dab6d892763b2a8334a568bd4e2c1a6fde66 would have made it into?
Thanks again!
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [Bug 14826] make qemu_x86_64_defconfig stopped working
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
` (5 preceding siblings ...)
2022-05-31 17:48 ` bugzilla
@ 2022-06-04 8:24 ` bugzilla
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla @ 2022-06-04 8:24 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=14826
Yann E. MORIN <yann.morin.1998@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Yann E. MORIN <yann.morin.1998@free.fr> ---
All,
Thanks for the report. We believe this has now been fixed with commit
baa55a4e26e6 (linux: disable -Werror when building host tools) that has
just been applied to master.
Regards,
Yann E. MORIN.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-04 8:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 19:41 [Buildroot] [Bug 14826] New: make qemu_x86_64_defconfig stopped working bugzilla
2022-05-30 22:04 ` [Buildroot] [Bug 14826] " bugzilla
2022-05-30 23:40 ` bugzilla
2022-05-30 23:41 ` bugzilla
2022-05-31 9:28 ` bugzilla
2022-05-31 12:15 ` bugzilla
2022-05-31 17:48 ` bugzilla
2022-06-04 8:24 ` bugzilla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.