shuttle-hq / synth

The Declarative Data Generator
https://www.getsynth.com/
Apache License 2.0
1.37k stars 107 forks source link

nix builds failing #353

Closed iamwacko closed 1 year ago

iamwacko commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

  1. CI tries to build for nix
  2. See error
    
    error: failed to run custom build command for `openssl-sys v0.9.75`

Caused by: process didn't exit successfully: /build/dummy-src/target/release/build/openssl-sys-4e4eb3d5fcef2aa7/build-script-main (exit status: 101) --- stdout cargo:rustc-cfg=const_fn cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR OPENSSL_NO_VENDOR unset CC_x86_64-unknown-linux-gnu = None CC_x86_64_unknown_linux_gnu = None HOST_CC = None CC = Some("gcc") CFLAGS_x86_64-unknown-linux-gnu = None CFLAGS_x86_64_unknown_linux_gnu = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running "perl" "./Configure" "--prefix=/build/dummy-src/target/release/build/openssl-sys-e8ec31a2c8346d81/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"

--- stderr thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /sources/openssl-src-111.22.0+1.1.1q/src/lib.rs:488:39 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: build failed [naersk] cargo returned with exit code 101, exiting error: builder for '/nix/store/0503sw0c5dwmimylw6xyg7hq92jwz5rl-synth-deps-0.6.2.drv' failed with exit code 101; last 10 log lines:

DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running "perl" "./Configure" "--prefix=/build/dummy-src/target/release/build/openssl-sys-e8ec31a2c8346d81/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"

--- stderr thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /sources/openssl-src-111.22.0+1.1.1q/src/lib.rs:488:39 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: build failed [naersk] cargo returned with exit code 101, exiting For full logs, run 'nix log /nix/store/0503sw0c5dwmimylw6xyg7hq92jwz5rl-synth-deps-0.6.2.drv'. error: 1 dependencies of derivation '/nix/store/bilryl1pvz15p3fc20f2i45g3mhr2ijj-synth-0.6.2.drv' failed to build

Expected behavior The build was expected to succeed.

Additional context This looks like a problem with our integration with OpenSSL.