All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 15021] New: Buildroot not compiling with systemd and glibc.
Date: Tue, 27 Sep 2022 07:26:02 +0000	[thread overview]
Message-ID: <bug-15021-163@https.bugs.busybox.net/> (raw)

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

            Bug ID: 15021
           Summary: Buildroot not compiling with systemd and glibc.
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: sergio@digien.io
                CC: buildroot@uclibc.org
  Target Milestone: ---

Buildroot does not compile when I activate systemd with glibc (the only
available library).

I would swear that this statx redefinition bug was resolved in 2018 but I keep
encountering it.


To reproduce:

- Defconfig of any arm architecture (raspberrypi4)
- make menuconfig:
    - glibc as c library
    - systemd as init

- compile the image (make).


[7/626] Compiling C object
src/libsystemd/libsystemd_static.a.p/sd-resolve_sd-resolve.c.o
FAILED: src/libsystemd/libsystemd_static.a.p/sd-resolve_sd-resolve.c.o
/usr/bin/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
-I/home/semedi/Workspace/digien/iiot-image/buildroot/output/host/include
-fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -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 -O2 -fPIC
-pthread -fvisibility=default -MD -MQ
src/libsystemd/libsystemd_static.a.p/sd-resolve_sd-resolve.c.o -MF
src/libsystemd/libsystemd_static.a.p/sd-resolve_sd-resolve.c.o.d -o
src/libsystemd/libsystemd_static.a.p/sd-resolve_sd-resolve.c.o -c
../src/libsystemd/sd-resolve/sd-resolve.c
In file included from ../src/basic/missing_syscall.h:25,
                 from ../src/libsystemd/sd-resolve/sd-resolve.c:24:
../src/basic/missing_stat.h:39:8: error: redefinition of ‘struct
statx_timestamp’
   39 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:465,
                 from ../src/basic/missing_stat.h:5:
/usr/include/linux/stat.h:56:8: note: originally defined here
   56 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
../src/basic/missing_stat.h:45:8: error: redefinition of ‘struct statx’
   45 | struct statx STATX_DEFINITION;
      |        ^~~~~
/usr/include/linux/stat.h:99:8: note: originally defined here
   99 | struct statx {
      |        ^~~~~


Thanks.

-- 
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-09-27  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27  7:26 bugzilla [this message]
2022-09-27  9:06 ` [Buildroot] [Bug 15021] Buildroot not compiling with systemd and glibc bugzilla
2022-09-27 10:11 ` bugzilla
2022-09-27 13:43 ` bugzilla
2022-11-02 20:57 ` 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-15021-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.