Re: A problem building systemd-257

"Bruce Dubbs" ([email protected] via lfs-support Mailing List) <[email protected]> Mon, 10 Mar 2025 10:56:51 -0500
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
Please reply to the mailing list.

On 3/10/25 8:19 AM, Roman Pushkov wrote:
> On Sun, 2025-03-09 at 16:22 -0500, Bruce Dubbs wrote:
>> On 3/9/25 4:12 PM, Roman Pushkov ([email protected] 
>> <mailto:[email protected]> via Owner Address of
>> lfs-support Mailing List) wrote:
>>> Hello!
>>>
>>> I've tried to build latest LFS (stable 12.3 or development).
>>> When I'm building with kernel 6.11.x headers, all done and systemd 257.3 built
>>> successfully.
>>> But, when I'm using 6.12+ kernels, I have a problem:
>>>
>>> FAILED: src/udev/libudev-core.a.p/udev-builtin-keyboard.c.o
>>> cc -Isrc/udev/libudev-core.a.p -Isrc/udev -I../src/udev -Isrc/basic -I../src/basic -
>>> Isrc/fundamental -I../src/fundamental -Isrc/systemd -I../src/systemd -I. -I.. -I../
>>> src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -
>>> I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-
>>> journal -I../src/libsystemd/sd-json -I../src/libsystemd/sd-netlink -I../src/
>>> libsystemd/sd-network -I../src/libsystemd/sd-path -I../src/libsystemd/sd-resolve -
>>> I../src/libsystemd/sd-varlink -Isrc/shared -I../src/shared -I../src/udev/net -I/usr/
>>> include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -
>>> Wextra -std=gnu11 -O3 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-
>>> nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -
>>> Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -
>>> Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -
>>> Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -
>>> Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-
>>> overflow=2 -Werror=strict-flex-arrays -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 -Wunused-function
>>> -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-
>>> protector -fstack-protector-strong -fstrict-flex-arrays=3 --param=ssp-buffer-size=4 -
>>> Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -
>>> Werror=shadow -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -
>>> ffunction-sections -fdata-sections -include config.h -MD -MQ src/udev/libudev-
>>> core.a.p/udev-builtin-keyboard.c.o -MF src/udev/libudev-core.a.p/udev-builtin-
>>> keyboard.c.o.d -o src/udev/libudev-core.a.p/udev-builtin-keyboard.c.o -c ../src/udev/
>>> udev-builtin-keyboard.c
>>> In file included from ../src/udev/udev-builtin-keyboard.c:18:
>>> src/udev/keyboard-keys-from-name.gperf: In function 'keyboard_lookup_key':
>>> src/udev/keyboard-keys-from-name.gperf:259:26: error: 'KEY_LINK_PHONE' undeclared
>>> (first use in this function); did you mean 'KEY_PICKUP_PHONE'?
>>> 259 | key_link_phone, KEY_LINK_PHONE
>>>> ^~~~~
>>>> KEY_PICKUP_PHONE
>>> src/udev/keyboard-keys-from-name.gperf:259:26: note: each undeclared identifier is
>>> reported only once for each function it appears in
>>> [737/2289] Compiling C object src/udev/libudev-core.a.p/udev-rules.c.o
>>> ninja: build stopped: subcommand failed.
>>>
>>> I've checked kernel headers. Headers: input-event-codes.h and input.h in the right
>>> place (/usr/include/linux). Headers before 6.12 doesn't have a #define for
>>> KEY_LINK_PHONE and all is good, but headers 6.12+ have this constant and systemd
>>> cannot be built.
>>>
>>> Do you have any thoughts about it?
>>
>> That's a major reason we needed to do an -rc2 before we released 12.3.  You need to
>> be using systemd-257.3.

> Thank you for answer, but I'm compiling systemd-257.3 already (and tried 257.4) and 
> problem exits ((

What version of the kernel are you using?  The 6.13.2 kernel worked with systemd-257, 
but with 6.13.4 we needed to go to systemd-257.3.

   -- Bruce

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page