Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/j9bhifsiqjhxknbzmx46884jnr1lffrc-source source root is source/codex-rs Executing cargoSetupPostUnpackHook Finished cargoSetupPostUnpackHook unpackPhase completed in 1 minutes 13 seconds Running phase: patchPhase applying patch /nix/store/fd5xyi1y5j2hnhbr4cljhqp19cr9kxxj-daemon-nix-store.patch patching file app-server-daemon/src/prepare_install.rs Executing cargoSetupPostPatchHook Validating consistency between /build/source/codex-rs/Cargo.lock and /build/codex-0.167.0-vendor/Cargo.lock Finished cargoSetupPostPatchHook Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase Running phase: buildPhase Executing cargoBuildHook cargoBuildHook flags: -j 8 --target x86_64-unknown-linux-gnu --offline --profile release --package codex-cli --package codex-code-mode-host Compiling proc-macro2 v1.0.106 Compiling unicode-ident v1.0.22 Compiling quote v1.0.45 Compiling serde v1.0.228 Compiling serde_core v1.0.228 Compiling libc v0.2.186 Compiling cfg-if v1.0.4 Compiling memchr v2.8.1 Compiling itoa v1.0.17 Compiling log v0.4.34 Compiling parking_lot_core v0.9.12 Compiling equivalent v1.0.2 Compiling scopeguard v1.2.0 Compiling allocator-api2 v0.2.21 Compiling lock_api v0.4.14 Compiling foldhash v0.2.0 Compiling pin-project-lite v0.2.16 Compiling critical-section v1.2.0 Compiling version_check v0.9.5 Compiling portable-atomic v1.13.1 Compiling hashbrown v0.17.1 Compiling typenum v1.20.0 Compiling syn v2.0.117 Compiling shlex v1.3.0 Compiling futures-core v0.3.34 Compiling thiserror v2.0.18 Compiling find-msvc-tools v0.1.9 Compiling bitflags v2.13.1 Compiling subtle v2.6.1 Compiling jobserver v0.1.34 Compiling autocfg v1.5.1 Compiling once_cell v1.21.4 Compiling getrandom v0.2.17 Compiling cc v1.2.55 Compiling generic-array v0.14.7 Compiling bytes v1.12.1 Compiling rand_core v0.6.4 Compiling zmij v1.0.19 Compiling errno v0.3.14 Compiling mio v1.2.4 Compiling stable_deref_trait v1.2.1 Compiling socket2 v0.6.3 Compiling signal-hook-registry v1.4.8 Compiling syn v3.0.3 Compiling indexmap v2.14.0 Compiling futures-io v0.3.34 Compiling tracing-core v0.1.36 Compiling futures-sink v0.3.34 Compiling slab v0.4.12 Compiling const-oid v0.9.6 Compiling pkg-config v0.3.32 Compiling regex-syntax v0.8.8 Compiling futures-channel v0.3.34 Compiling futures-task v0.3.34 Compiling aho-corasick v1.1.4 Compiling serde_json v1.0.149 Compiling num-traits v0.2.19 Compiling cpufeatures v0.2.17 Compiling getrandom v0.3.4 Compiling http v1.4.0 Compiling fastrand v2.5.0 Compiling percent-encoding v2.3.2 Compiling fnv v1.0.7 Compiling synstructure v0.13.2 Compiling regex-automata v0.4.13 Compiling http-body v1.0.1 Compiling base64 v0.22.1 Compiling serde_derive v1.0.228 Compiling zeroize_derive v1.4.3 Compiling thiserror-impl v2.0.18 Compiling displaydoc v0.2.5 Compiling zerofrom-derive v0.1.6 Compiling tracing-attributes v0.1.31 Compiling yoke-derive v0.8.2 Compiling tokio-macros v2.7.0 Compiling zerovec-derive v0.11.3 Compiling tracing v0.1.44 Compiling futures-macro v0.3.34 Compiling zerofrom v0.1.6 Compiling time-core v0.1.8 Compiling yoke v0.8.2 Compiling num-conv v0.2.0 Compiling powerfmt v0.2.0 Compiling time-macros v0.2.27 Compiling deranged v0.5.5 Compiling futures-util v0.3.34 Compiling zerovec v0.11.6 Compiling smallvec v1.15.1 Compiling zeroize v1.8.2 Compiling either v1.15.0 Compiling tinystr v0.8.3 Compiling zerocopy v0.8.37 Compiling num_threads v0.1.7 Compiling parking_lot v0.12.5 Compiling writeable v0.6.2 Compiling http-body-util v0.1.3 Compiling tokio v1.52.3 Compiling time v0.3.47 Compiling crypto-common v0.1.7 Compiling block-buffer v0.10.4 Compiling digest v0.10.7 Compiling potential_utf v0.1.4 Compiling cmake v0.1.57 Compiling fs_extra v1.3.0 Compiling dunce v1.0.5 Compiling litemap v0.8.1 Compiling icu_normalizer_data v2.2.0 Compiling icu_properties_data v2.2.0 Compiling icu_locale_core v2.2.0 Compiling aws-lc-sys v0.45.0 Compiling sha2 v0.10.9 Compiling ring v0.17.14 Compiling rand_core v0.10.1 Compiling zerotrie v0.2.4 Compiling rustix v1.1.4 Compiling getrandom v0.4.2 Compiling aws-lc-rs v1.18.1 Compiling utf8_iter v1.0.4 Compiling untrusted v0.9.0 Compiling linux-raw-sys v0.12.1 Compiling icu_collections v2.2.0 Compiling ppv-lite86 v0.2.21 Compiling icu_provider v2.2.0 Compiling ipnet v2.11.0 Compiling ryu v1.0.22 Compiling tokio-util v0.7.18 Compiling rustls-pki-types v1.14.0 Compiling form_urlencoded v1.2.2 Compiling crossbeam-utils v0.8.21 Compiling untrusted v0.7.1 Compiling atomic-waker v1.1.2 Compiling tinyvec_macros v0.1.1 Compiling tinyvec v1.10.0 Compiling sync_wrapper v1.0.2 Compiling httpdate v1.0.3 Compiling rustls v0.23.46 Compiling bstr v1.12.1 Compiling num-integer v0.1.46 Compiling semver v1.0.27 Compiling sha1_smol v1.0.1 Compiling httparse v1.10.1 Compiling uuid v1.20.0 Compiling futures-executor v0.3.34 Compiling icu_properties v2.2.0 Compiling icu_normalizer v2.2.0 Compiling rustc_version v0.4.1 Compiling mime v0.3.17 Compiling try-lock v0.2.5 Compiling idna_adapter v1.2.1 Compiling idna v1.1.0 Compiling want v0.3.1 Compiling gix-error v0.5.0 Compiling rand_core v0.9.5 Compiling byteorder v1.5.0 Compiling rand_chacha v0.9.0 Compiling h2 v0.4.19 Compiling heck v0.5.0 Compiling rustls-webpki v0.103.16 Compiling tower-service v0.3.3 Compiling rand v0.9.3 Compiling url v2.5.8 Compiling anyhow v1.0.103 Compiling futures v0.3.34 Compiling lazy_static v1.5.0 Compiling openssl-probe v0.2.1 Compiling unicode-normalization v0.1.25 Compiling rustls-native-certs v0.8.3 Compiling crc32fast v1.5.0 Compiling tower-layer v0.3.3 Compiling strsim v0.11.1 Compiling unicode-xid v0.2.6 Compiling prodash v31.0.1 Compiling winnow v1.0.4 Compiling hyper v1.11.1 Compiling hex v0.4.3 Compiling toml_parser v1.1.3+spec-1.1.0 Compiling gix-utils v0.5.0 Compiling tower v0.5.3 Compiling itertools v0.14.0 Compiling regex v1.12.3 Compiling winnow v0.7.14 Compiling psl-types v2.0.11 Compiling ident_case v1.0.1 Compiling toml_datetime v0.7.5+spec-1.1.0 Compiling webpki-roots v1.0.10 Compiling vcpkg v0.2.15 Compiling hmac v0.12.1 Compiling gix-validate v0.13.0 Compiling hyper-util v0.1.20 Compiling tokio-rustls v0.26.4 Compiling async-trait v0.1.89 Compiling spin v0.9.8 Compiling hashbrown v0.16.1 Compiling simd-adler32 v0.3.8 Compiling toml_edit v0.23.10+spec-1.0.0 Compiling sha1 v0.10.6 Compiling crossbeam-epoch v0.9.20 Compiling http v0.2.12 Compiling proc-macro-crate v3.4.0 Compiling nom v8.0.0 Compiling outref v0.5.2 Compiling cpufeatures v0.3.0 Compiling vsimd v0.8.0 Compiling adler2 v2.0.1 Compiling miniz_oxide v0.8.9 Compiling base64-simd v0.8.0 Compiling http-body v0.4.6 Compiling hyper-rustls v0.27.7 Compiling openssl-sys v0.9.111 Compiling num-bigint v0.4.6 Compiling bytes-utils v0.1.4 Compiling pin-utils v0.1.0 Compiling gix-trace v0.3.0 Compiling data-encoding v2.10.0 Compiling static_assertions v1.1.0 Compiling aws-smithy-types v1.4.7 warning: openssl-sys@0.9.111: Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the `OPENSSL_DIR` environment variable for the compilation process. See stderr section below for further information. error: failed to run custom build command for `openssl-sys v0.9.111` Caused by: process didn't exit successfully: `/build/source/codex-rs/target/release/build/openssl-sys-835b2e69611ad8c5/build-script-main` (exit status: 101) --- stdout cargo:rustc-check-cfg=cfg(osslconf, values("OPENSSL_NO_OCB", "OPENSSL_NO_SM4", "OPENSSL_NO_SEED", "OPENSSL_NO_CHACHA", "OPENSSL_NO_CAST", "OPENSSL_NO_IDEA", "OPENSSL_NO_CAMELLIA", "OPENSSL_NO_RC4", "OPENSSL_NO_BF", "OPENSSL_NO_PSK", "OPENSSL_NO_DEPRECATED_3_0", "OPENSSL_NO_SCRYPT", "OPENSSL_NO_SM3", "OPENSSL_NO_RMD160", "OPENSSL_NO_EC2M", "OPENSSL_NO_OCSP", "OPENSSL_NO_CMS", "OPENSSL_NO_COMP", "OPENSSL_NO_SOCK", "OPENSSL_NO_STDIO", "OPENSSL_NO_EC", "OPENSSL_NO_SSL3_METHOD", "OPENSSL_NO_KRB5", "OPENSSL_NO_TLSEXT", "OPENSSL_NO_SRP", "OPENSSL_NO_SRTP", "OPENSSL_NO_RFC3779", "OPENSSL_NO_SHA", "OPENSSL_NO_NEXTPROTONEG", "OPENSSL_NO_ENGINE", "OPENSSL_NO_BUF_FREELISTS", "OPENSSL_NO_RC2")) cargo:rustc-check-cfg=cfg(openssl) cargo:rustc-check-cfg=cfg(libressl) cargo:rustc-check-cfg=cfg(boringssl) cargo:rustc-check-cfg=cfg(awslc) cargo:rustc-check-cfg=cfg(libressl250) cargo:rustc-check-cfg=cfg(libressl251) cargo:rustc-check-cfg=cfg(libressl252) cargo:rustc-check-cfg=cfg(libressl261) cargo:rustc-check-cfg=cfg(libressl270) cargo:rustc-check-cfg=cfg(libressl271) cargo:rustc-check-cfg=cfg(libressl273) cargo:rustc-check-cfg=cfg(libressl280) cargo:rustc-check-cfg=cfg(libressl281) cargo:rustc-check-cfg=cfg(libressl291) cargo:rustc-check-cfg=cfg(libressl310) cargo:rustc-check-cfg=cfg(libressl321) cargo:rustc-check-cfg=cfg(libressl332) cargo:rustc-check-cfg=cfg(libressl340) cargo:rustc-check-cfg=cfg(libressl350) cargo:rustc-check-cfg=cfg(libressl360) cargo:rustc-check-cfg=cfg(libressl361) cargo:rustc-check-cfg=cfg(libressl370) cargo:rustc-check-cfg=cfg(libressl380) cargo:rustc-check-cfg=cfg(libressl381) cargo:rustc-check-cfg=cfg(libressl382) cargo:rustc-check-cfg=cfg(libressl390) cargo:rustc-check-cfg=cfg(libressl400) cargo:rustc-check-cfg=cfg(libressl410) cargo:rustc-check-cfg=cfg(libressl420) cargo:rustc-check-cfg=cfg(ossl101) cargo:rustc-check-cfg=cfg(ossl102) cargo:rustc-check-cfg=cfg(ossl102f) cargo:rustc-check-cfg=cfg(ossl102h) cargo:rustc-check-cfg=cfg(ossl110) cargo:rustc-check-cfg=cfg(ossl110f) cargo:rustc-check-cfg=cfg(ossl110g) cargo:rustc-check-cfg=cfg(ossl110h) cargo:rustc-check-cfg=cfg(ossl111) cargo:rustc-check-cfg=cfg(ossl111b) cargo:rustc-check-cfg=cfg(ossl111c) cargo:rustc-check-cfg=cfg(ossl111d) cargo:rustc-check-cfg=cfg(ossl300) cargo:rustc-check-cfg=cfg(ossl310) cargo:rustc-check-cfg=cfg(ossl320) cargo:rustc-check-cfg=cfg(ossl330) cargo:rustc-check-cfg=cfg(ossl340) cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset cargo:rerun-if-env-changed=OPENSSL_LIB_DIR OPENSSL_LIB_DIR unset cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR OPENSSL_INCLUDE_DIR unset cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset cargo:rerun-if-env-changed=OPENSSL_DIR OPENSSL_DIR unset cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=OPENSSL_STATIC cargo:rerun-if-env-changed=OPENSSL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR Could not find openssl via pkg-config: pkg-config exited with status code 1 > PKG_CONFIG_PATH=/nix/store/zv477ifk4wavnpgdaj2m3ll5p2dzl4df-aws-lc-5.12.0-dev/lib/pkgconfig:/nix/store/1l4z3jnbsavk63xvrqsz8m5sb49bci0j-jemalloc-5.4.0/lib/pkgconfig:/nix/store/90a7sjhrk6w7f3qcnz54pnn2nfm7ik5p-libgit2-1.9.7-dev/lib/pkgconfig:/nix/store/jfhsdcmajd3ym14y1v0ycqyr1hwwq7c8-oniguruma-6.9.10-dev/lib/pkgconfig:/nix/store/5h71csb2pwv1g8kh5hxrygjj6xd4b0yh-sqlite-3.54.0-dev/lib/pkgconfig:/nix/store/5q0g4w5b65dnrwr1adq72hzdq29yawsd-zlib-1.3.2-dev/share/pkgconfig:/nix/store/34mc2s7mv2gp2zahqi25ssqj2ajcyakb-zstd-1.5.7-dev/lib/pkgconfig:/nix/store/vksn46r5hvlq1257kxlxm2jwvh0k4j8n-libcap-2.78-dev/lib/pkgconfig PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags openssl The system library `openssl` required by crate `openssl-sys` was not found. The file `openssl.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. PKG_CONFIG_PATH contains the following: - /nix/store/zv477ifk4wavnpgdaj2m3ll5p2dzl4df-aws-lc-5.12.0-dev/lib/pkgconfig - /nix/store/1l4z3jnbsavk63xvrqsz8m5sb49bci0j-jemalloc-5.4.0/lib/pkgconfig - /nix/store/90a7sjhrk6w7f3qcnz54pnn2nfm7ik5p-libgit2-1.9.7-dev/lib/pkgconfig - /nix/store/jfhsdcmajd3ym14y1v0ycqyr1hwwq7c8-oniguruma-6.9.10-dev/lib/pkgconfig - /nix/store/5h71csb2pwv1g8kh5hxrygjj6xd4b0yh-sqlite-3.54.0-dev/lib/pkgconfig - /nix/store/5q0g4w5b65dnrwr1adq72hzdq29yawsd-zlib-1.3.2-dev/share/pkgconfig - /nix/store/34mc2s7mv2gp2zahqi25ssqj2ajcyakb-zstd-1.5.7-dev/lib/pkgconfig - /nix/store/vksn46r5hvlq1257kxlxm2jwvh0k4j8n-libcap-2.78-dev/lib/pkgconfig HINT: you may need to install a package such as openssl, openssl-dev or openssl-devel. cargo:warning=Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the `OPENSSL_DIR` environment variable for the compilation process. See stderr section below for further information. --- stderr Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the `OPENSSL_DIR` environment variable for the compilation process. Make sure you also have the development packages of openssl installed. For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora. If you're in a situation where you think the directory *should* be found automatically, please open a bug at https://github.com/rust-openssl/rust-openssl and include information about your system as well as this message. $HOST = x86_64-unknown-linux-gnu $TARGET = x86_64-unknown-linux-gnu openssl-sys = 0.9.111 warning: build failed, waiting for other jobs to finish...