Help to compile Zed on Fedora 40 #11972
-
I'm trying to compile Zed on a fresh instalation of Fedora 40, but I'm getting an error. I installed Rust, run the
full output:$ cargo build --release
Compiling openssl-sys v0.9.93
Compiling lock_api v0.4.10
Compiling wayland-backend v0.3.3
Compiling cranelift-isle v0.106.0
Compiling wayland-sys v0.31.1
Compiling target-lexicon v0.12.13
Compiling pin-project v1.1.3
Compiling crossbeam-epoch v0.9.15
Compiling polling v3.3.2
Compiling curl-sys v0.4.67+curl-8.3.0
Compiling async-process v1.7.0
Compiling async-net v1.7.0
Compiling downcast-rs v1.2.0
Compiling byteorder v1.4.3
Compiling winnow v0.5.15
Compiling simd-adler32 v0.3.7
Compiling scoped-tls v1.0.1
Compiling toml_datetime v0.6.5
Compiling crossbeam-deque v0.8.3
Compiling globset v0.4.14
Compiling libz-sys v1.1.12
Compiling parking_lot_core v0.9.8
Compiling hashbrown v0.13.2
Compiling quick-xml v0.31.0
Compiling bytemuck_derive v1.5.0
Compiling wasmtime-versioned-export-macros v19.0.0
Compiling dirs-sys v0.3.7
Compiling indexmap v1.9.3
Compiling arbitrary v1.3.2
Compiling rayon-core v1.12.0
Compiling leb128 v0.2.5
Compiling slice-group-by v0.3.1
Compiling wasm-encoder v0.201.0
Compiling bytemuck v1.14.0
Compiling regalloc2 v0.9.3
Compiling wayland-scanner v0.31.1
Compiling cranelift-codegen v0.106.0
Compiling cranelift-control v0.106.0
Compiling miniz_oxide v0.7.1
Compiling cranelift-bforest v0.106.0
Compiling unicase v2.7.0
Compiling async-fs v1.6.0
Compiling bincode v1.3.3
Compiling zeroize_derive v1.4.2
Compiling num_cpus v1.16.0
Compiling num-iter v0.1.43
Compiling hashbrown v0.12.3
Compiling cpp_demangle v0.4.3
Compiling bumpalo v3.14.0
Compiling cranelift-codegen-shared v0.106.0
Compiling arrayvec v0.7.4
Compiling zeroize v1.6.0
Compiling wayland-client v0.31.2
Compiling parking_lot v0.12.1
Compiling rust-embed-utils v8.4.0
Compiling wasmtime-types v19.0.0
Compiling object v0.32.1
Compiling num-bigint v0.4.4
Compiling curl v0.4.44
Compiling mime v0.3.17
Compiling rustc-demangle v0.1.23
Compiling signal-hook v0.3.17
Compiling rayon v1.8.0
Compiling rust-embed v8.4.0
Compiling flate2 v1.0.27
Compiling toml_edit v0.21.1
Compiling dirs v3.0.2
Compiling wasmprinter v0.201.0
Compiling zvariant_utils v1.1.0
Compiling collections v0.1.0 (/home/chico/repositories/github/zed-industries/zed/crates/collections)
Compiling signal-hook-registry v1.4.1
Compiling wasmtime-component-util v19.0.0
Compiling static_assertions v1.1.0
Compiling isahc v1.7.2
Compiling take-until v0.2.0
Compiling util v0.1.0 (/home/chico/repositories/github/zed-industries/zed/crates/util)
Compiling proc-macro-crate v3.1.0
Compiling wasmtime-environ v19.0.0
Compiling wasmtime-fiber v19.0.0
Compiling tracing-futures v0.2.5
Compiling sluice v0.5.5
Compiling wasmparser v0.201.0
Compiling enumflags2_derive v0.7.9
Compiling castaway v0.1.2
Compiling paste v1.0.14
Compiling unicode-xid v0.2.4
Compiling cursor-icon v1.1.0
error: failed to run custom build command for `openssl-sys v0.9.93`
Caused by:
process didn't exit successfully: `/home/chico/repositories/github/zed-industries/zed/target/release/build/openssl-sys-0acaa6385adf63f3/build-script-main` (exit status: 101)
--- stdout
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
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
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_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:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
AR_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
AR_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
ARFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
ARFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
cargo:rerun-if-env-changed=RANLIB_x86_64-unknown-linux-gnu
RANLIB_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=RANLIB_x86_64_unknown_linux_gnu
RANLIB_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_RANLIB
HOST_RANLIB = None
cargo:rerun-if-env-changed=RANLIB
RANLIB = None
cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64-unknown-linux-gnu
RANLIBFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64_unknown_linux_gnu
RANLIBFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_RANLIBFLAGS
HOST_RANLIBFLAGS = None
cargo:rerun-if-env-changed=RANLIBFLAGS
RANLIBFLAGS = None
running cd "/home/chico/repositories/github/zed-industries/zed/target/release/build/openssl-sys-df465ffaf83aee3e/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/home/chico/repositories/github/zed-industries/zed/target/release/build/openssl-sys-df465ffaf83aee3e/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64"
Configuring OpenSSL version 3.2.1 for target linux-x86_64
Using os-specific seed configuration
Created configdata.pm
Running configdata.pm
--- stderr
Can't locate File/Compare.pm in @INC (you may need to install the File::Compare module) (@INC entries checked: /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at configdata.pm line 22095.
BEGIN failed--compilation aborted at configdata.pm line 22095.
thread 'main' panicked at /home/chico/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.2.3+3.2.1/src/lib.rs:611:9:
Error configuring OpenSSL build:
Command: cd "/home/chico/repositories/github/zed-industries/zed/target/release/build/openssl-sys-df465ffaf83aee3e/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/home/chico/repositories/github/zed-industries/zed/target/release/build/openssl-sys-df465ffaf83aee3e/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64"
Exit status: exit status: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish... $ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.78.0 (9b00956e5 2024-04-29)`
$ cargo --version
cargo 1.78.0 (54d8815d0 2024-03-26)
$ rustc --version
rustc 1.78.0 (9b00956e5 2024-04-29) |
Beta Was this translation helpful? Give feedback.
Answered by
SomeoneToIgnore
May 17, 2024
Replies: 1 comment 1 reply
-
There seems to be an issue created for that: #11953 and #11868 created to fix that for Fedora specifically. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
arslivinski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There seems to be an issue created for that: #11953 and #11868 created to fix that for Fedora specifically.