Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTBFS on mipse*el: ../src/basic/macro.h:415:9: error: static assertion failed: "__NR_close_range == systemd_NR_close_range" #17591

Closed
mbiebl opened this issue Nov 13, 2020 · 1 comment · Fixed by #17592
Labels
bug 🐛 Programming errors, that need preferential fixing util-lib
Milestone

Comments

@mbiebl
Copy link
Contributor

mbiebl commented Nov 13, 2020

Version: 247-rc2

systemd in experimental FTBFS on mipsel and mips64el
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=mips64el&ver=247%7Erc2-1&stamp=1605223087&raw=0
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=mipsel&ver=247%7Erc2-1&stamp=1605222663&raw=0

[56/2002] cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../src/basic -Isrc/boot -I../src/boot -Isrc/core -I../src/core -Isrc/home -I../src/home -Isrc/journal -I../src/journal -Isrc/journal-remote -I../src/journal-remote -Isrc/libsystemd-network -I../src/libsystemd-network -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-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/libudev -I../src/libudev -Isrc/login -I../src/login -Isrc/nspawn -I../src/nspawn -Isrc/resolve -I../src/resolve -Isrc/shared -I../src/shared -Isrc/shutdown -I../src/shutdown -Isrc/systemd -I../src/systemd -I../src/time-wait-sync -Isrc/timesync -I../src/timesync -Isrc/udev -I../src/udev -I../src/xdg-autostart-generator -I. -I.. -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -g -O2 '-fdebug-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/fd-util.c.o -MF src/basic/libbasic.a.p/fd-util.c.o.d -o src/basic/libbasic.a.p/fd-util.c.o -c ../src/basic/fd-util.c
FAILED: src/basic/libbasic.a.p/fd-util.c.o
cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../src/basic -Isrc/boot -I../src/boot -Isrc/core -I../src/core -Isrc/home -I../src/home -Isrc/journal -I../src/journal -Isrc/journal-remote -I../src/journal-remote -Isrc/libsystemd-network -I../src/libsystemd-network -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-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/libudev -I../src/libudev -Isrc/login -I../src/login -Isrc/nspawn -I../src/nspawn -Isrc/resolve -I../src/resolve -Isrc/shared -I../src/shared -Isrc/shutdown -I../src/shutdown -Isrc/systemd -I../src/systemd -I../src/time-wait-sync -Isrc/timesync -I../src/timesync -Isrc/udev -I../src/udev -I../src/xdg-autostart-generator -I. -I.. -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -g -O2 '-fdebug-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/fd-util.c.o -MF src/basic/libbasic.a.p/fd-util.c.o.d -o src/basic/libbasic.a.p/fd-util.c.o -c ../src/basic/fd-util.c
In file included from ../src/basic/fd-util.c:19:
../src/basic/missing_syscall.h:190:4: warning: #warning "name_to_handle_at number is not defined" [-Wcpp]
  190 | #  warning "name_to_handle_at number is not defined"
      |    ^~~~~~~
../src/basic/missing_syscall.h:243:4: warning: #warning "setns() syscall number unknown for your architecture" [-Wcpp]
  243 | #  warning "setns() syscall number unknown for your architecture"
      |    ^~~~~~~
In file included from ../src/basic/fd-util.c:19:
../src/basic/missing_syscall.h:409:4: warning: #warning "copy_file_range() syscall number unknown for your architecture" [-Wcpp]
  409 | #  warning "copy_file_range() syscall number unknown for your architecture"
      |    ^~~~~~~
../src/basic/missing_syscall.h:461:4: warning: #warning "bpf() syscall number unknown for your architecture" [-Wcpp]
  461 | #  warning "bpf() syscall number unknown for your architecture"
      |    ^~~~~~~
../src/basic/missing_syscall.h:554:4: warning: #warning "statx() syscall number unknown for your architecture" [-Wcpp]
  554 | #  warning "statx() syscall number unknown for your architecture"
      |    ^~~~~~~
In file included from ../src/basic/macro.h:4,
                 from ../src/basic/alloc-util.h:9,
                 from ../src/basic/fd-util.c:9:
../src/basic/macro.h:415:9: error: static assertion failed: "__NR_close_range == systemd_NR_close_range"
  415 |         static_assert(expr, #expr)
      |         ^~~~~~~~~~~~~
../src/basic/missing_syscall.h:745:1: note: in expansion of macro ‘assert_cc’
  745 | assert_cc(__NR_close_range == systemd_NR_close_range);
      | ^~~~~~~~~
[57/2002] cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../src/basic -Isrc/boot -I../src/boot -Isrc/core -I../src/core -Isrc/home -I../src/home -Isrc/journal -I../src/journal -Isrc/journal-remote -I../src/journal-remote -Isrc/libsystemd-network -I../src/libsystemd-network -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-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/libudev -I../src/libudev -Isrc/login -I../src/login -Isrc/nspawn -I../src/nspawn -Isrc/resolve -I../src/resolve -Isrc/shared -I../src/shared -Isrc/shutdown -I../src/shutdown -Isrc/systemd -I../src/systemd -I../src/time-wait-sync -Isrc/timesync -I../src/timesync -Isrc/udev -I../src/udev -I../src/xdg-autostart-generator -I. -I.. -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -g -O2 '-fdebug-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/cgroup-util.c.o -MF src/basic/libbasic.a.p/cgroup-util.c.o.d -o src/basic/libbasic.a.p/cgroup-util.c.o -c ../src/basic/cgroup-util.c
ninja: build stopped: subcommand failed.
@yuwata yuwata added bug 🐛 Programming errors, that need preferential fixing util-lib labels Nov 13, 2020
@yuwata yuwata added this to the v247 milestone Nov 13, 2020
yuwata added a commit to yuwata/systemd that referenced this issue Nov 13, 2020
@yuwata
Copy link
Member

yuwata commented Nov 13, 2020

@mbiebl Could you test #17592?

yuwata added a commit to yuwata/systemd that referenced this issue Nov 13, 2020
jkartseva pushed a commit to jkartseva/systemd that referenced this issue Nov 16, 2020
mikhailnov pushed a commit to mikhailnov/systemd that referenced this issue Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing util-lib
Development

Successfully merging a pull request may close this issue.

2 participants