Skip to contentSkip to conversation

New: SYSTEMD build failed with GCC 7.x

Buildroot bugzilla at busybox.net 1 participant 2 messages Sep 11, 2020 – Jun 15, 2024

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 13201
Summary: SYSTEMD build failed with GCC 7.x
Product: buildroot
Version: 2020.08
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: oaivanov at elvees.com
CC: buildroot at uclibc.org
Target Milestone: ---

systemd 246 bring back 'nonnull' warning (see
https://github.com/systemd/systemd/pull/15704).
GCC 7.x produces false positive nonnull warnings and fails to compile systemd. GCC 9.x are OK.

../src/journal/sd-journal.c: In function ?sd_journal_open_files_fd?:
../src/journal/sd-journal.c:1293:28: error: argument 2 null where non-null expected [-Werror=nonnull]

                         fd = openat(j->toplevel_fd, skip_slash(path),

O_RDONLY|O_CLOEXEC|O_NONBLOCK);

~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../src/journal/sd-journal.c:1295:28: error: argument 1 null where non-null expected [-Werror=nonnull]

                         fd = open(path, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
                         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 13201] SYSTEMD build failed with GCC 7.x

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

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |MOVED

--- Comment #1 from Yann E. MORIN <[email protected]> --- Thank you for your report.

The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker.

Thank you!

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot