Skip to content

Build of v4 fails on i686-unknown-linux-gnu/x86_64-unknown-linux-gnu with cross #139

@cakebaker

Description

@cakebaker

Hi,

I noticed in our CI that the renovate PR that updates codspeed from 3.0.5 to 4.0.4 fails on i686-unknown-linux-gnu and x86_64-unknown-linux-gnu with cross. It works fine on i686-unknown-linux-musl and x86_64-unknown-linux-musl with cross.

Here is the error:

   Compiling codspeed v4.0.4
error: failed to run custom build command for `codspeed v4.0.4`

Caused by:
  process didn't exit successfully: `/target/debug/build/codspeed-3bad860d7e90d5b8/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=instrument-hooks/dist/core.c
  cargo:rerun-if-changed=instrument-hooks/includes/core.h
  cargo:rerun-if-changed=build.rs
  OUT_DIR = Some(/target/x86_64-unknown-linux-gnu/debug/build/codspeed-7b6f0295c0fb4125/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()

  --- stderr


  ERROR: Failed to compile instrument-hooks native library with cc-rs. Ensure you have an up-to-date C compiler installed.
  Compiler information: Tool { path: "cc", cc_wrapper_path: None, cc_wrapper_args: [], args: ["-O0", "-ffunction-sections", "-fdata-sections", "-fPIC", "-gdwarf-4", "-fno-omit-frame-pointer", "-m64", "-I", "instrument-hooks/includes", "-std=gnu17"], env: [("LC_ALL", "C")], family: Gnu, cuda: false, removed_args: [], has_internal_target_arg: false }
  Compilation error: ToolExecError: 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" "-std=gnu17" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/codspeed-7b6f0295c0fb4125/out/b68c03e3d0475a32-core.o" "-c" "instrument-hooks/dist/core.c"

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