Skip to content

ctest: add suport for c enum

e4fc9d7
Select commit
Loading
Failed to load commit list.
Merged

ctest: add suport for C enum #4658

ctest: add suport for c enum
e4fc9d7
Select commit
Loading
Failed to load commit list.
Cirrus CI / nightly freebsd-13 i686 failed Aug 19, 2025 in 1m 15s

Task Summary

Instruction test failed in 00:49

Details

✅ 00:08 clone
✅ 00:16 setup
❌ 00:49 test

  cargo:warning=   73 | #define offsetof(type, field)   __offsetof(type, field)
  cargo:warning=      |                                 ^          ~~~~
  cargo:warning=/usr/include/sys/cdefs.h:460:34: note: expanded from macro '__offsetof'
  cargo:warning=  460 | #define __offsetof(type, field)  __builtin_offsetof(type, field)
  cargo:warning=      |                                  ^                  ~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37603:28: note: forward declaration of 'struct reg32'
  cargo:warning= 37603 |     return offsetof(struct reg32, r_edi);
  cargo:warning=       |                            ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37608:20: error: variable has incomplete type 'struct reg32'
  cargo:warning= 37608 |     return sizeof(((struct reg32){}).r_edi);
  cargo:warning=       |                    ^~~~~~~~~~~~~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37608:28: note: forward declaration of 'struct reg32'
  cargo:warning= 37608 |     return sizeof(((struct reg32){}).r_edi);
  cargo:warning=       |                            ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37613:12: error: offsetof of incomplete type 'struct reg32'
  cargo:warning= 37613 |     return offsetof(struct reg32, r_esi);
  cargo:warning=       |            ^        ~~~~~~
  cargo:warning=/usr/include/stddef.h:73:31: note: expanded from macro 'offsetof'
  cargo:warning=   73 | #define offsetof(type, field)   __offsetof(type, field)
  cargo:warning=      |                                 ^          ~~~~
  cargo:warning=/usr/include/sys/cdefs.h:460:34: note: expanded from macro '__offsetof'
  cargo:warning=  460 | #define __offsetof(type, field)  __builtin_offsetof(type, field)
  cargo:warning=      |                                  ^                  ~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37613:28: note: forward declaration of 'struct reg32'
  cargo:warning= 37613 |     return offsetof(struct reg32, r_esi);
  cargo:warning=       |                            ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37618:20: error: variable has incomplete type 'struct reg32'
  cargo:warning= 37618 |     return sizeof(((struct reg32){}).r_esi);
  cargo:warning=       |                    ^~~~~~~~~~~~~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37618:28: note: forward declaration of 'struct reg32'
  cargo:warning= 37618 |     return sizeof(((struct reg32){}).r_esi);
  cargo:warning=       |                            ^
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37623:12: error: offsetof of incomplete type 'struct reg32'
  cargo:warning= 37623 |     return offsetof(struct reg32, r_ebp);
  cargo:warning=       |            ^        ~~~~~~
  cargo:warning=/usr/include/stddef.h:73:31: note: expanded from macro 'offsetof'
  cargo:warning=   73 | #define offsetof(type, field)   __offsetof(type, field)
  cargo:warning=      |                                 ^          ~~~~
  cargo:warning=/usr/include/sys/cdefs.h:460:34: note: expanded from macro '__offsetof'
  cargo:warning=  460 | #define __offsetof(type, field)  __builtin_offsetof(type, field)
  cargo:warning=      |                                  ^                  ~~~~
  cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c:37623:28: note: forward declaration of 'struct reg32'
  cargo:warning= 37623 |     return offsetof(struct reg32, r_ebp);
  cargo:warning=       |                            ^
  cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
  cargo:warning=20 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-0a2538439ea190c0/out/5cd597e98fd4532d-ctest_output.o" "-c" "/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-0a2538439ea190c0/out/ctest_output.c"


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

Exit status: 101