Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944963 - sys-kernel/genkernel-4.3.16 (llvm-musl) error: assignment of read-only variable 'stdin'
Summary: sys-kernel/genkernel-4.3.16 (llvm-musl) error: assignment of read-only varia...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-26 01:28 UTC by Rin Cat
Modified: 2024-11-26 01:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rin Cat 2024-11-26 01:28:19 UTC
Known solution: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/lvm2/files/lvm2-2.03.20-freopen-musl.patch

x86_64-pc-linux-musl-gcc -MT lvremove.o -MMD -MP -MF lvremove.d -c -I../tools -I. -I.. -I../include -include configure.h   -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64    -Os -pipe -fomit-frame-pointer -I/var/tmp/genkernel/gk_8glJZSWZ/lvm/buildroot/usr/include -fPIC   -I/var/tmp/genkernel/gk_8glJZSWZ/lvm/buildroot/usr/include lvremove.c -o lvremove.o
lvmcmdline.c:3438:21: error: assignment of read-only variable 'stdin'
 3438 |             !(stdin = fopen(_PATH_DEVNULL, "r"))) {
      |                     ^
lvmcmdline.c:3448:22: error: assignment of read-only variable 'stdout'
 3448 |             !(stdout = fopen(_PATH_DEVNULL, "w"))) {
      |                      ^
lvmcmdline.c:3456:22: error: assignment of read-only variable 'stderr'
 3456 |             !(stderr = fopen(_PATH_DEVNULL, "w"))) {
      |                      ^
make[1]: *** [../make.tmpl:493: lvmcmdline.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/genkernel/gk_8glJZSWZ/lvm/LVM2.2.03.22/tools'
make: *** [make.tmpl:394: tools] Error 2


Reproducible: Always