Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 14816] New: Build fails on latest master with a systemd build failure, implicit func declaration gettid() error
Date: Fri, 20 May 2022 05:24:51 +0000	[thread overview]
Message-ID: <bug-14816-163@https.bugs.busybox.net/> (raw)

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@buildroot.uclibc.org
          Reporter: amol.em33@gmail.com
                CC: buildroot@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.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2022-05-20  5:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20  5:24 bugzilla [this message]
2022-05-20  7:22 ` [Buildroot] [Bug 14816] Build fails on latest master with a systemd build failure, implicit func declaration gettid() error bugzilla
2022-05-20  7:37 ` bugzilla
2024-06-15 15:03 ` bugzilla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-14816-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@uclibc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox