From: Michael Tremer Date: Wed, 14 May 2025 16:44:54 +0000 (+0000) Subject: udev: Don't fail if the linker emits any warnings X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cc5c8a2b79c58bca5a06887ffeda0159c50a3a6;p=ipfire-2.x.git udev: Don't fail if the linker emits any warnings This only appears on aarch64. [436/452] Linking target src/udev/v4l_id FAILED: src/udev/v4l_id cc -o src/udev/v4l_id src/udev/v4l_id.p/v4l_id_v4l_id.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -fstack-protector -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard -Wl,--start-group src/shared/libsystemd-shared-254.a src/libsystemd/libsystemd_static.a src/basic/libbasic.a src/basic/libbasic-compress.a -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections -pthread /usr/lib/libacl.so /usr/lib/libblkid.so /usr/lib/libcap.so /usr/lib/libcrypt.so -ldl /lib/libip4tc.so /lib/libip6tc.so /usr/lib/libkmod.so /usr/lib/libmount.so /usr/lib/libssl.so /usr/lib/libcrypto.so /usr/lib/libpam.so -lrt /usr/lib/liblzma.so /usr/lib/libzstd.so -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections -lm -Wl,--end-group -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections /usr/lib/libcrypto.so: warning: GCS is required by -z gcs, but this shared library lacks the necessary property note. The dynamic loader might not enable GCS or refuse to load the program unless all the shared library dependencies have the GCS marking. /usr/lib/libzstd.so: warning: GCS is required by -z gcs, but this shared library lacks the necessary property note. The dynamic loader might not enable GCS or refuse to load the program unless all the shared library dependencies have the GCS marking. collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Reported-by: Adolf Belka Signed-off-by: Michael Tremer --- diff --git a/lfs/udev b/lfs/udev index f182f1289..19e0557a3 100644 --- a/lfs/udev +++ b/lfs/udev @@ -76,6 +76,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/systemd-254-linux-6.12-fs.patch cd $(DIR_APP) && tar axf $(DIR_DL)/udev-lfs-$(RULES_VER).tar.xz + # Don't fail if the linker shows a warning + cd $(DIR_APP) && sed -e "/fatal-warnings/d" -i meson.build + # Remove two unneeded groups (render and sgx) from the default udev rules cd $(DIR_APP) && sed -i -e 's/GROUP="render"/GROUP="video"/' \ -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in