All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 15021] New: Buildroot not compiling with systemd and glibc.
@ 2022-09-27  7:26 bugzilla
  2022-09-27  9:06 ` [Buildroot] [Bug 15021] " bugzilla
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla @ 2022-09-27  7:26 UTC (permalink / raw)
  To: buildroot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-02 20:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27  7:26 [Buildroot] [Bug 15021] New: Buildroot not compiling with systemd and glibc bugzilla
2022-09-27  9:06 ` [Buildroot] [Bug 15021] " bugzilla
2022-09-27 10:11 ` bugzilla
2022-09-27 13:43 ` bugzilla
2022-11-02 20:57 ` bugzilla

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.