Skip to content

ci: Allow `improper_ctypes` for MSRV checks

6c88eff
Select commit
Loading
Failed to load commit list.
Draft

Fix the soundness bug in the representation of extern types #5021

ci: Allow `improper_ctypes` for MSRV checks
6c88eff
Select commit
Loading
Failed to load commit list.
Cirrus CI / nightly freebsd-15 x86_64 failed Mar 16, 2026 in 1m 16s

Task Summary

Instruction test failed in 00:46

Details

✅ 00:11 clone
✅ 00:17 setup
❌ 00:46 test

  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_freebsd
  CFLAGS_x86_64_unknown_freebsd = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-freebsd
  CFLAGS_x86_64-unknown-freebsd = None
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:18792:57: error: invalid application of 'sizeof' to an incomplete type 'DIR' (aka 'struct _dirdesc')
  cargo:warning= 18792 | CTEST_EXTERN uint64_t ctest_size_of__DIR(void) { return sizeof(DIR); }
  cargo:warning=       |                                                         ^     ~~~~~
  cargo:warning=/usr/include/dirent.h:84:8: note: forward declaration of 'struct _dirdesc'
  cargo:warning=   84 | struct _dirdesc;
  cargo:warning=      |        ^
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:18793:58: error: invalid application of 'alignof' to an incomplete type 'DIR' (aka 'struct _dirdesc')
  cargo:warning= 18793 | CTEST_EXTERN uint64_t ctest_align_of__DIR(void) { return CTEST_ALIGNOF(DIR); }
  cargo:warning=       |                                                          ^~~~~~~~~~~~~~~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:128:30: note: expanded from macro 'CTEST_ALIGNOF'
  cargo:warning=  128 |     #define CTEST_ALIGNOF(T) _Alignof(T)
  cargo:warning=      |                              ^       ~~~
  cargo:warning=/usr/include/dirent.h:84:8: note: forward declaration of 'struct _dirdesc'
  cargo:warning=   84 | struct _dirdesc;
  cargo:warning=      |        ^
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:40671:35: error: invalid application of 'sizeof' to an incomplete type 'DIR' (aka 'struct _dirdesc')
  cargo:warning= 40671 |     const uint8_t is_padding_byte[sizeof(DIR)],
  cargo:warning=       |                                   ^     ~~~~~
  cargo:warning=/usr/include/dirent.h:84:8: note: forward declaration of 'struct _dirdesc'
  cargo:warning=   84 | struct _dirdesc;
  cargo:warning=      |        ^
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:40672:25: error: invalid application of 'sizeof' to an incomplete type 'DIR' (aka 'struct _dirdesc')
  cargo:warning= 40672 |     uint8_t value_bytes[sizeof(DIR)]
  cargo:warning=       |                         ^     ~~~~~
  cargo:warning=/usr/include/dirent.h:84:8: note: forward declaration of 'struct _dirdesc'
  cargo:warning=   84 | struct _dirdesc;
  cargo:warning=      |        ^
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:40670:9: error: variable has incomplete type 'DIR' (aka 'struct _dirdesc')
  cargo:warning= 40670 |     DIR value,
  cargo:warning=       |         ^
  cargo:warning=/usr/include/dirent.h:84:8: note: forward declaration of 'struct _dirdesc'
  cargo:warning=   84 | struct _dirdesc;
  cargo:warning=      |        ^
  cargo:warning=/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c:40674:21: error: invalid application of 'sizeof' to an incomplete type 'DIR' (aka 'struct _dirdesc')
  cargo:warning= 40674 |     int size = (int)sizeof(DIR);
  cargo:warning=       |                     ^     ~~~~~
  cargo:warning=/usr/include/dirent.h:84:8: note: forward declaration of 'struct _dirdesc'
  cargo:warning=   84 | struct _dirdesc;
  cargo:warning=      |        ^
  cargo:warning=6 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" "-m64" "--target=x86_64-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/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/23d3f82d16fbf303-ctest_output.o" "-c" "/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-9e4fa6ced92fb16c/out/ctest_output.c"


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

Exit status: 101