Skip to content

Use a more type safe alternative for sigaction types

c7aad86
Select commit
Loading
Failed to load commit list.
Open

WIP: Use a more type safe alternative for sigaction types #5076

Use a more type safe alternative for sigaction types
c7aad86
Select commit
Loading
Failed to load commit list.
Cirrus CI / nightly freebsd-15 i686 failed May 1, 2026 in 1m 2s

Task Summary

Instruction test failed in 00:35

Details

✅ 00:09 clone
✅ 00:15 setup
❌ 00:35 test

  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:28189:27: note: forward declaration of 'union sighandler_t'
  cargo:warning= 28189 |     return sizeof(((union sighandler_t){}).sighandler_fn);
  cargo:warning=       |                           ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:36152:52: error: declaration of 'union sighandler_t' will not be visible outside of this function [-Werror,-Wvisibility]
  cargo:warning= 36152 | ctest_field_ptr__sighandler_t__sighandler_id(union sighandler_t *b) {
  cargo:warning=       |                                                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:36153:14: error: incomplete definition of type 'union sighandler_t'
  cargo:warning= 36153 |     return &b->sighandler_id;
  cargo:warning=       |             ~^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:36152:52: note: forward declaration of 'union sighandler_t'
  cargo:warning= 36152 | ctest_field_ptr__sighandler_t__sighandler_id(union sighandler_t *b) {
  cargo:warning=       |                                                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:36159:52: error: declaration of 'union sighandler_t' will not be visible outside of this function [-Werror,-Wvisibility]
  cargo:warning= 36159 | ctest_field_ptr__sighandler_t__sighandler_fn(union sighandler_t *b) {
  cargo:warning=       |                                                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:36160:14: error: incomplete definition of type 'union sighandler_t'
  cargo:warning= 36160 |     return &b->sighandler_fn;
  cargo:warning=       |             ~^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:36159:52: note: forward declaration of 'union sighandler_t'
  cargo:warning= 36159 | ctest_field_ptr__sighandler_t__sighandler_fn(union sighandler_t *b) {
  cargo:warning=       |                                                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42940:35: error: invalid application of 'sizeof' to an incomplete type 'union sighandler_t'
  cargo:warning= 42940 |     const uint8_t is_padding_byte[sizeof(union sighandler_t)],
  cargo:warning=       |                                   ^     ~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42938:20: note: forward declaration of 'union sighandler_t'
  cargo:warning= 42938 | CTEST_EXTERN union sighandler_t ctest_roundtrip__sighandler_t(
  cargo:warning=       |                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42941:25: error: invalid application of 'sizeof' to an incomplete type 'union sighandler_t'
  cargo:warning= 42941 |     uint8_t value_bytes[sizeof(union sighandler_t)]
  cargo:warning=       |                         ^     ~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42938:20: note: forward declaration of 'union sighandler_t'
  cargo:warning= 42938 | CTEST_EXTERN union sighandler_t ctest_roundtrip__sighandler_t(
  cargo:warning=       |                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42939:24: error: variable has incomplete type 'union sighandler_t'
  cargo:warning= 42939 |     union sighandler_t value,
  cargo:warning=       |                        ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42938:20: note: forward declaration of 'union sighandler_t'
  cargo:warning= 42938 | CTEST_EXTERN union sighandler_t ctest_roundtrip__sighandler_t(
  cargo:warning=       |                    ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42943:21: error: invalid application of 'sizeof' to an incomplete type 'union sighandler_t'
  cargo:warning= 42943 |     int size = (int)sizeof(union sighandler_t);
  cargo:warning=       |                     ^     ~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c:42938:20: note: forward declaration of 'union sighandler_t'
  cargo:warning= 42938 | CTEST_EXTERN union sighandler_t ctest_roundtrip__sighandler_t(
  cargo:warning=       |                    ^
  cargo:warning=17 errors generated.

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m32" "--target=i686-unknown-freebsd" "-Wall" "-Wextra" "-Wall" "-Wextra" "-Werror" "-Wno-unused-parameter" "-Wno-type-limits" "-Wno-address-of-packed-member" "-Wno-unknown-warning-option" "-Wno-deprecated-declarations" "-D_WITH_CPU_SET_T" "-D_WITH_GETLINE" "-D_WANT_FREEBSD11_STAT" "-o" "/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/9325319b297b34ea-ctest_output.o" "-c" "/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-05640abc0dc85218/out/ctest_output.c"


warning: build failed, waiting for other jobs to finish...

Exit status: 101