Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827950 - sys-fs/udev-249.6::gentoo: fails to compile using musl
Summary: sys-fs/udev-249.6::gentoo: fails to compile using musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-01 19:59 UTC by Lloyd
Modified: 2021-12-01 20:15 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,5.59 KB, text/plain)
2021-12-01 20:03 UTC, Lloyd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lloyd 2021-12-01 19:59:45 UTC
Possible stand in conjunction with Bug 822264.
[...]
[66/395] x86_64-gentoo-linux-musl-gcc -Isrc/shared/libsystemd-shared-249.a.p -Isrc/shared -I../systemd-stable-249.6/src/shared -Isrc/basic -I../systemd-stable-249.6/src/basic -Isrc/fundamental -I../systemd-stable-249.6/src/fundamental -Isrc/systemd -I../systemd-stable-249.6/src/systemd -I. -I../systemd-stable-249.6 -I../systemd-stable-249.6/src/libsystemd/sd-bus -I../systemd-stable-249.6/src/libsystemd/sd-device -I../systemd-stable-249.6/src/libsystemd/sd-event -I../systemd-stable-249.6/src/libsystemd/sd-hwdb -I../systemd-stable-249.6/src/libsystemd/sd-id128 -I../systemd-stable-249.6/src/libsystemd/sd-journal -I../systemd-stable-249.6/src/libsystemd/sd-netlink -I../systemd-stable-249.6/src/libsystemd/sd-network -I../systemd-stable-249.6/src/libsystemd/sd-resolve -I/usr/include/blkid -I/usr/include/libmount -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-result -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wwrite-strings -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -ffast-math -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -O2 -march=native -mtune=native -pipe -O2 -march=native -mtune=native -D__UAPI_DEF_ETHHDR=0 -fPIC -pthread -fvisibility=default -MD -MQ src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o -MF src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o.d -o src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o -c ../systemd-stable-249.6/src/shared/tpm2-util.c
FAILED: src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o 
x86_64-gentoo-linux-musl-gcc -Isrc/shared/libsystemd-shared-249.a.p -Isrc/shared -I../systemd-stable-249.6/src/shared -Isrc/basic -I../systemd-stable-249.6/src/basic -Isrc/fundamental -I../systemd-stable-249.6/src/fundamental -Isrc/systemd -I../systemd-stable-249.6/src/systemd -I. -I../systemd-stable-249.6 -I../systemd-stable-249.6/src/libsystemd/sd-bus -I../systemd-stable-249.6/src/libsystemd/sd-device -I../systemd-stable-249.6/src/libsystemd/sd-event -I../systemd-stable-249.6/src/libsystemd/sd-hwdb -I../systemd-stable-249.6/src/libsystemd/sd-id128 -I../systemd-stable-249.6/src/libsystemd/sd-journal -I../systemd-stable-249.6/src/libsystemd/sd-netlink -I../systemd-stable-249.6/src/libsystemd/sd-network -I../systemd-stable-249.6/src/libsystemd/sd-resolve -I/usr/include/blkid -I/usr/include/libmount -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-result -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wwrite-strings -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -ffast-math -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -O2 -march=native -mtune=native -pipe -O2 -march=native -mtune=native -D__UAPI_DEF_ETHHDR=0 -fPIC -pthread -fvisibility=default -MD -MQ src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o -MF src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o.d -o src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o -c ../systemd-stable-249.6/src/shared/tpm2-util.c
../systemd-stable-249.6/src/shared/tpm2-util.c: In function 'tpm2_init':
../systemd-stable-249.6/src/shared/tpm2-util.c:150:34: error: implicit declaration of function 'strndupa'; did you mean 'strndup'? [-Werror=implicit-function-declaration]
  150 |                         driver = strndupa(device, param - device);
      |                                  ^~~~~~~~
      |                                  strndup
../systemd-stable-249.6/src/shared/tpm2-util.c:150:34: warning: nested extern declaration of 'strndupa' [-Wnested-externs]
../systemd-stable-249.6/src/shared/tpm2-util.c:150:32: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  150 |                         driver = strndupa(device, param - device);
      |                                ^
cc1: some warnings being treated as errors
[67/395] x86_64-gentoo-linux-musl-gcc -Isrc/shared/libsystemd-shared-249.a.p -Isrc/shared -I../systemd-stable-249.6/src/shared -Isrc/basic -I../systemd-stable-249.6/src/basic -Isrc/fundamental -I../systemd-stable-249.6/src/fundamental -Isrc/systemd -I../systemd-stable-249.6/src/systemd -I. -I../systemd-stable-249.6 -I../systemd-stable-249.6/src/libsystemd/sd-bus -I../systemd-stable-249.6/src/libsystemd/sd-device -I../systemd-stable-249.6/src/libsystemd/sd-event -I../systemd-stable-249.6/src/libsystemd/sd-hwdb -I../systemd-stable-249.6/src/libsystemd/sd-id128 -I../systemd-stable-249.6/src/libsystemd/sd-journal -I../systemd-stable-249.6/src/libsystemd/sd-netlink -I../systemd-stable-249.6/src/libsystemd/sd-network -I../systemd-stable-249.6/src/libsystemd/sd-resolve -I/usr/include/blkid -I/usr/include/libmount -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-result -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wwrite-strings -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -ffast-math -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -O2 -march=native -mtune=native -pipe -O2 -march=native -mtune=native -D__UAPI_DEF_ETHHDR=0 -fPIC -pthread -fvisibility=default -MD -MQ src/shared/libsystemd-shared-249.a.p/uid-range.c.o -MF src/shared/libsystemd-shared-249.a.p/uid-range.c.o.d -o src/shared/libsystemd-shared-249.a.p/uid-range.c.o -c ../systemd-stable-249.6/src/shared/uid-range.c
ninja: build stopped: subcommand failed.
 * ERROR: sys-fs/udev-249.6::gentoo failed (compile phase):
 *   ninja -v -j2 -l6 libudev.so.1.7.2 src/libudev/libudev.pc udevadm src/udev/ata_id src/udev/cdrom_id src/udev/fido_id src/udev/mtd_probe src/udev/scsi_id src/udev/udev.pc src/udev/v4l_id man/udev.conf.5 man/systemd.link.5 man/hwdb.7 man/udev.7 man/systemd-udevd.service.8 man/udevadm.8 rules.d/50-udev-default.rules rules.d/64-btrfs.rules failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 4109:  Called meson-multilib_src_compile
 *   environment, line 2636:  Called multilib-minimal_src_compile
 *   environment, line 2874:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 3144:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2809:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2807:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  739:  Called multilib-minimal_abi_src_compile
 *   environment, line 2868:  Called multilib_src_compile
 *   environment, line 3361:  Called eninja 'libudev.so.1.7.2' 'src/libudev/libudev.pc' 'udevadm' 'src/udev/ata_id' 'src/udev/cdrom_id' 'src/udev/fido_id' 'src/udev/mtd_probe' 'src/udev/scsi_id' 'src/udev/udev.pc' 'src/udev/v4l_id' 'man/udev.conf.5' 'man/systemd.link.5' 'man/hwdb.7' 'man/udev.7' 'man/systemd-udevd.service.8' 'man/udevadm.8' 'rules.d/50-udev-default.rules' 'rules.d/64-btrfs.rules'
 *   environment, line 1771:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-fs/udev-249.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/udev-249.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/udev-249.6/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/udev-249.6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/udev-249.6/work/systemd-stable-249.6-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-fs/udev-249.6/work/systemd-stable-249.6'

>>> Failed to emerge sys-fs/udev-249.6, Log file:
[...]


Reproducible: Always
Comment 1 Lloyd 2021-12-01 20:03:02 UTC
Created attachment 757138 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2021-12-01 20:15:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85bfc2d792a68e38896c26958eaab0c2f035af62

commit 85bfc2d792a68e38896c26958eaab0c2f035af62
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-01 20:14:45 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-01 20:14:45 +0000

    sys-fs/udev: fix build on musl
    
    Closes: https://bugs.gentoo.org/827950
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-fs/udev/Manifest             | 2 +-
 sys-fs/udev/udev-249.6-r1.ebuild | 2 +-
 sys-fs/udev/udev-249.6.ebuild    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)