bitemyapp / brotli2-rs

Brotli encoders/decoers for Rust
Apache License 2.0
28 stars 13 forks source link

Failed to run custom build command for `brotli-sys v0.3.2` #46

Open Ifechukwudaniel opened 1 month ago

Ifechukwudaniel commented 1 month ago

OS Linux

target : wasm-unknown-unknown

The following warnings were emitted during compilation:

warning: brotli-sys@0.3.2: In file included from brotli/common/dictionary.c:7:
warning: brotli-sys@0.3.2: In file included from brotli/common/./dictionary.h:13:
warning: brotli-sys@0.3.2: In file included from brotli/include/brotli/types.h:27:
warning: brotli-sys@0.3.2: In file included from /usr/include/stdint.h:26:
warning: brotli-sys@0.3.2: In file included from /usr/include/bits/libc-header-start.h:33:
warning: brotli-sys@0.3.2: In file included from /usr/include/features.h:535:
warning: brotli-sys@0.3.2: /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
warning: brotli-sys@0.3.2:     7 | # include <gnu/stubs-32.h>
warning: brotli-sys@0.3.2:       |           ^~~~~~~~~~~~~~~~
warning: brotli-sys@0.3.2: 1 error generated.

error: failed to run custom build command for `brotli-sys v0.3.2`

Caused by:
  process didn't exit successfully: `/home/daniel/development/pyth-crosschain/target_chains/ethereum/sdk/stylus/target/release/build/brotli-sys-b9ac752706873162/build-script-build` (exit status: 1)
  --- stdout
  cargo:include=/home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/brotli-sys-0.3.2/brotli/include
  OUT_DIR = Some(/home/daniel/development/pyth-crosschain/target_chains/ethereum/sdk/stylus/target/wasm32-unknown-unknown/release/build/brotli-sys-c9dc32800439e63f/out)
  TARGET = Some(wasm32-unknown-unknown)
  OPT_LEVEL = Some(z)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown
  CC_wasm32-unknown-unknown = None
  cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown
  CC_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_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
  cargo:rerun-if-env-changed=WASI_SYSROOT
  WASI_SYSROOT = None
  DEBUG = Some(false)
  cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
  CFLAGS_wasm32-unknown-unknown = None
  cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
  CFLAGS_wasm32_unknown_unknown = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=In file included from brotli/common/dictionary.c:7:
  cargo:warning=In file included from brotli/common/./dictionary.h:13:
  cargo:warning=In file included from brotli/include/brotli/types.h:27:
  cargo:warning=In file included from /usr/include/stdint.h:26:
  cargo:warning=In file included from /usr/include/bits/libc-header-start.h:33:
  cargo:warning=In file included from /usr/include/features.h:535:
  cargo:warning=/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
  cargo:warning=    7 | # include <gnu/stubs-32.h>
  cargo:warning=      |           ^~~~~~~~~~~~~~~~
  cargo:warning=1 error generated.

  --- stderr

  error occurred: Command "clang" "-Oz" "-ffunction-sections" "-fdata-sections" "-fPIC" "-fno-exceptions" "--target=wasm32-unknown-unknown" "-I" "brotli/include" "-o" "/home/daniel/development/pyth-crosschain/target_chains/ethereum/sdk/stylus/target/wasm32-unknown-unknown/release/build/brotli-sys-c9dc32800439e63f/out/619ddc8c6d8cbb58-dictionary.o" "-c" "brotli/common/dictionary.c" with args clang did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
Ifechukwudaniel commented 1 month ago

@alexcrichton