[Buildroot] [Bug 14816] New: Build fails on latest master with a systemd build failure, implicit func declaration gettid() error

bugzilla at busybox.net bugzilla at busybox.net
Fri May 20 05:24:51 UTC 2022


https://bugs.busybox.net/show_bug.cgi?id=14816

            Bug ID: 14816
           Summary: Build fails on latest master with a systemd build
                    failure, implicit func declaration gettid() error
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: amol.em33 at gmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

I building a root filesystem for Raspberry Pi 2 on my Ubuntu 20.04 machine and
my local Linaro precompiled cross-compilation toolchain. Not attempting to
build the kernel or bootloader since I've compiled that separately from source.

Following is the console error log. I have configured lot of packages and libs
for this build so attaching a .config file instead of listing them out here.

>>> systemd 250.4 Building
PATH="/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/host/bin:/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/host/sbin:/home/amol/anaconda3/condabin:/home/amol/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/amol/Projects/BBB/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin:/usr/local/bin/gm"
LC_ALL=C.UTF-8 PYTHONNOUSERSITE=y
/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/host/bin/ninja   -C
/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/build/systemd-250.4//build
ninja: Entering directory
`/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/build/systemd-250.4//build'
[3/748] Compiling C object
src/libsystemd/libsystemd_static.a.p/sd-journal_journal-send.c.o
FAILED: src/libsystemd/libsystemd_static.a.p/sd-journal_journal-send.c.o 
/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/host/bin/arm-linux-gnueabihf-gcc
-Isrc/libsystemd/libsystemd_static.a.p -Isrc/libsystemd -I../src/libsystemd
-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-netlink
-I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve
-fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=gnu99 -O3
-Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter
-Wdate-time -Wendif-labels -Werror=format=2
-Werror=implicit-function-declaration -Werror=incompatible-pointer-types
-Werror=int-conversion -Werror=overflow -Werror=override-init
-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
-Wunused-function -Wwrite-strings -Wno-maybe-uninitialized -Wno-unused-result
-Werror=missing-declarations -Werror=missing-prototypes
-fdiagnostics-show-option -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
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0
-D_FORTIFY_SOURCE=1 -fPIC -pthread -fvisibility=default -MD -MQ
src/libsystemd/libsystemd_static.a.p/sd-journal_journal-send.c.o -MF
src/libsystemd/libsystemd_static.a.p/sd-journal_journal-send.c.o.d -o
src/libsystemd/libsystemd_static.a.p/sd-journal_journal-send.c.o -c
../src/libsystemd/sd-journal/journal-send.c
../src/libsystemd/sd-journal/journal-send.c: In function ‘close_journal_fd’:
../src/libsystemd/sd-journal/journal-send.c:76:25: error: implicit declaration
of function ‘gettid’; did you mean ‘getgid’?
[-Werror=implicit-function-declaration]
         if (getpid() != gettid())
                         ^~~~~~
                         getgid
../src/libsystemd/sd-journal/journal-send.c:76:25: warning: nested extern
declaration of ‘gettid’ [-Wnested-externs]
cc1: some warnings being treated as errors
[10/743] Compiling C object
src/libsystemd/libsystemd_static.a.p/sd-event_sd-event.c.o
ninja: build stopped: subcommand failed.
make[1]: *** [package/pkg-generic.mk:293:
/home/amol/Projects/EmbeddedLinuxTools/buildroot/output/build/systemd-250.4/.stamp_built]
Error 1
make: *** [Makefile:84: _all] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the buildroot mailing list