Skip to content

Error on all version 4 releases on x86_64_unknown_linux_gnu #133

@connortsui20

Description

@connortsui20

I get this error (and similar errors for version 4.0.0 and 4.0.2) when trying to build tests using codspeed-divan-compat on my x86_64_unknown_linux_gnu machine (AMD CPU):

   Compiling codspeed v4.0.1
warning: [email protected]: instrument-hooks/dist/core.c:885:30: error: expected identifier or '(' before 'void'
warning: [email protected]:   885 | static zig_cold zig_noreturn void bincode_invalidProtocol__anon_2485__4217(void);
warning: [email protected]:       |                              ^~~~
warning: [email protected]: instrument-hooks/dist/core.c:890:21: error: expected identifier or '(' before 'void'
warning: [email protected]:   890 | static zig_noreturn void posix_exit__1442(uint8_t);
warning: [email protected]:       |                     ^~~~
warning: [email protected]: instrument-hooks/dist/core.c:907:30: error: expected identifier or '(' before 'void'
warning: [email protected]:   907 | static zig_cold zig_noreturn void debug_no_panic_call__5251(nav__5251_39, nav__5251_40);
warning: [email protected]:       |                              ^~~~
warning: [email protected]: instrument-hooks/dist/core.c:1071:25: error: expected identifier or '(' before 'void'
warning: [email protected]:  1071 | zig_extern zig_noreturn void exit(int);
warning: [email protected]:       |                         ^~~~
warning: [email protected]: instrument-hooks/dist/core.c: In function 'bincode_deserializePointerAlloc__anon_2448__4215':
warning: [email protected]: instrument-hooks/dist/core.c:1787:3: error: implicit declaration of function 'bincode_invalidProtocol__anon_2485__4217' [-Wimplicit-function-declaration]
warning: [email protected]:  1787 |   bincode_invalidProtocol__anon_2485__4217();
warning: [email protected]:       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: instrument-hooks/dist/core.c: In function 'instrument_hooks_init':
warning: [email protected]: instrument-hooks/dist/core.c:2720:3: error: implicit declaration of function 'posix_exit__1442'; did you mean 'posix_write__1452'? [-Wimplicit-function-declaration]
warning: [email protected]:  2720 |   posix_exit__1442(UINT8_C(1));
warning: [email protected]:       |   ^~~~~~~~~~~~~~~~
warning: [email protected]:       |   posix_write__1452
warning: [email protected]: instrument-hooks/dist/core.c: At top level:
warning: [email protected]: instrument-hooks/dist/core.c:3283:30: error: expected identifier or '(' before 'void'
warning: [email protected]:  3283 | static zig_cold zig_noreturn void bincode_invalidProtocol__anon_2485__4217(void) {
warning: [email protected]:       |                              ^~~~
warning: [email protected]: instrument-hooks/dist/core.c:3447:21: error: expected identifier or '(' before 'void'
warning: [email protected]:  3447 | static zig_noreturn void posix_exit__1442(uint8_t const a0) {
warning: [email protected]:       |                     ^~~~
warning: [email protected]: instrument-hooks/dist/core.c:4019:30: error: expected identifier or '(' before 'void'
warning: [email protected]:  4019 | static zig_cold zig_noreturn void debug_no_panic_call__5251(nav__5251_39 const a0, nav__5251_40 const a1) {
warning: [email protected]:       |                              ^~~~
error: failed to run custom build command for `codspeed v4.0.1`

Caused by:
  process didn't exit successfully: `/home/connor/spiral/vortex-data/vortex/target/debug/build/codspeed-fe27fa1f7dee9d39/build-script-build` (exit status: 1)
  --- stdout
  OUT_DIR = Some(/home/connor/spiral/vortex-data/vortex/target/debug/build/codspeed-9a25676020126dda/out)
  OPT_LEVEL = Some(0)
  TARGET = Some(x86_64-unknown-linux-gnu)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  CARGO_ENCODED_RUSTFLAGS = Some(-Cforce-frame-pointers=yes)
  OUT_DIR = Some(/home/connor/spiral/vortex-data/vortex/target/debug/build/codspeed-9a25676020126dda/out)
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  TARGET = Some(x86_64-unknown-linux-gnu)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:warning=instrument-hooks/dist/core.c:885:30: error: expected identifier or '(' before 'void'
  cargo:warning=  885 | static zig_cold zig_noreturn void bincode_invalidProtocol__anon_2485__4217(void);
  cargo:warning=      |                              ^~~~
  cargo:warning=instrument-hooks/dist/core.c:890:21: error: expected identifier or '(' before 'void'
  cargo:warning=  890 | static zig_noreturn void posix_exit__1442(uint8_t);
  cargo:warning=      |                     ^~~~
  cargo:warning=instrument-hooks/dist/core.c:907:30: error: expected identifier or '(' before 'void'
  cargo:warning=  907 | static zig_cold zig_noreturn void debug_no_panic_call__5251(nav__5251_39, nav__5251_40);
  cargo:warning=      |                              ^~~~
  cargo:warning=instrument-hooks/dist/core.c:1071:25: error: expected identifier or '(' before 'void'
  cargo:warning= 1071 | zig_extern zig_noreturn void exit(int);
  cargo:warning=      |                         ^~~~
  cargo:warning=instrument-hooks/dist/core.c: In function 'bincode_deserializePointerAlloc__anon_2448__4215':
  cargo:warning=instrument-hooks/dist/core.c:1787:3: error: implicit declaration of function 'bincode_invalidProtocol__anon_2485__4217' [-Wimplicit-function-declaration]
  cargo:warning= 1787 |   bincode_invalidProtocol__anon_2485__4217();
  cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=instrument-hooks/dist/core.c: In function 'instrument_hooks_init':
  cargo:warning=instrument-hooks/dist/core.c:2720:3: error: implicit declaration of function 'posix_exit__1442'; did you mean 'posix_write__1452'? [-Wimplicit-function-declaration]
  cargo:warning= 2720 |   posix_exit__1442(UINT8_C(1));
  cargo:warning=      |   ^~~~~~~~~~~~~~~~
  cargo:warning=      |   posix_write__1452
  cargo:warning=instrument-hooks/dist/core.c: At top level:
  cargo:warning=instrument-hooks/dist/core.c:3283:30: error: expected identifier or '(' before 'void'
  cargo:warning= 3283 | static zig_cold zig_noreturn void bincode_invalidProtocol__anon_2485__4217(void) {
  cargo:warning=      |                              ^~~~
  cargo:warning=instrument-hooks/dist/core.c:3447:21: error: expected identifier or '(' before 'void'
  cargo:warning= 3447 | static zig_noreturn void posix_exit__1442(uint8_t const a0) {
  cargo:warning=      |                     ^~~~
  cargo:warning=instrument-hooks/dist/core.c:4019:30: error: expected identifier or '(' before 'void'
  cargo:warning= 4019 | static zig_cold zig_noreturn void debug_no_panic_call__5251(nav__5251_39 const a0, nav__5251_40 const a1) {
  cargo:warning=      |                              ^~~~

  --- 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-4" "-fno-omit-frame-pointer" "-m64" "-I" "instrument-hooks/includes" "-Wall" "-Wextra" "-fno-omit-frame-pointer" "-w" "-o" "/home/connor/spiral/vortex-data/vortex/target/debug/build/codspeed-9a25676020126dda/out/b68c03e3d0475a32-core.o" "-c" "instrument-hooks/dist/core.c"


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

Reverting back to version 3.0.5 works fine for me. Not sure if #130 is related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions