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

bugzilla at busybox.net bugzilla at busybox.net
Fri Sep 11 14:02:21 UTC 2020


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);
                         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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


More information about the buildroot mailing list