firefly icon indicating copy to clipboard operation
firefly copied to clipboard

Can't build from source on develop

Open jkbbwr opened this issue 2 years ago • 2 comments

Hi back again to try and build from source on develop.

I installed the recommended rust version nightly-2022-11-02 and I cloned the project. I have llvm15 installed.

I run cargo make and get this failure state.

firefly on  develop [!] is 📦 v0.1.0 via 🦀 v1.67.0-nightly took 25s 
❯ LLVM_PREFIX=/usr/lib cargo make
[cargo-make] INFO - cargo make 0.36.11
[cargo-make] INFO - Calling cargo metadata to extract project info
[cargo-make] INFO - Cargo metadata done
[cargo-make] INFO - Calling cargo metadata to extract project info
[cargo-make] INFO - Cargo metadata done
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: default
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: print-build-env
************************************* 
Build Environment: 
    Task: default 
    Task Arguments:  
    Command: cargo make 
    Working Directory: /home/kibb/projects/personal/firefly 
    Target Directory: /home/kibb/projects/personal/firefly/target 
    Profile: dev 
    Build Type: static 
    LTO Enabled: false 
    Bin Directory: /home/kibb/projects/personal/firefly/bin 
    Install Directory: /home/kibb/projects/personal/firefly/bin/x86_64-unknown-linux-gnu 
    Target Triple: x86_64-unknown-linux-gnu 
 
    RUST_BACKTRACE: 0 
    GECKODRIVER_VERSION: 0.27.0 
    CHROMEDRIVER_VERSION: 85.0.4183.87 
    FIREFLY_LLVM_LTO: OFF 
    LLVM_BUILD_STATIC: ON 
    LLVM_USE_LIBCXX: OFF 
    LLVM_LINK_LLVM_DYLIB: OFF 
    SANITIZER:  
    LLVM_USE_SANITIZER:  
************************************* 
[cargo-make] INFO - Skipping Task: print-ci-env 
[cargo-make] INFO - Running Task: print-rust-env
************************************* 
Rust: 
    Version: 1.67.0 
    Channel: nightly 
    Toolchain: nightly 
    Target Arch: x86_64 
    Target Env: gnu 
    Target OS: linux 
    Pointer Width: 64 
    Target Triple: x86_64-unknown-linux-gnu 
************************************* 
[cargo-make] INFO - Running Task: print-cargo-env
************************************* 
Cargo: 
    Home: /home/kibb/.cargo 
    Profile:  
************************************* 
[cargo-make] INFO - Running Task: require-ninja
[cargo-make] INFO - Running Task: require-cmake
[cargo-make] INFO - Execute Command: "rustup" "run" "nightly" "cargo" "-Z" "unstable-options" "build" "--manifest-path" "tools/firefly-make/Cargo.toml" "--release" "--out-dir" "/home/kibb/projects/personal/firefly/bin"
   Compiling proc-macro2 v1.0.51
   Compiling backtrace v0.3.67
   Compiling term v0.7.0
   Compiling indexmap v1.9.2
   Compiling tempfile v3.4.0
   Compiling clap_lex v0.2.4
   Compiling anyhow v1.0.69
   Compiling regex v1.7.1
   Compiling once_cell v1.17.1
   Compiling strsim v0.10.0
   Compiling lazy_static v1.4.0
   Compiling textwrap v0.16.0
   Compiling termcolor v1.2.0
   Compiling tar v0.4.38
   Compiling flate2 v1.0.25
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/kibb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.51/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.

jkbbwr avatar Jul 05 '23 02:07 jkbbwr

Install the nightly-2023-02-07 toolchain, the one you mentioned is too old for what's in develop currently, and make sure you use it when building the project, e.g. cargo +nightly-2023-02-07 make, it looks like you are just using the regular nightly channel in your pasted output. I'm assuming one or the other of those is why that library is failing to compile.

bitwalker avatar Jul 05 '23 04:07 bitwalker

I am also having trouble building source

  • I installed LLVM 16 in /usr/lib
Compiled regex 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)
Build finished with errors!
Build command completed, waiting for exit..
Error: command did not execute successfully: PATH="/usr/lib/bin:/home/gitpod/.sdkman/candidates/maven/current/bin:/home/gitpod/.sdkman/candidates/java/current/bin:/home/gitpod/.sdkman/candidates/gradle/current/bin:/workspace/.cargo/bin:/home/gitpod/.rvm/gems/ruby-3.2.1/bin:/home/gitpod/.rvm/gems/ruby-3.2.1@global/bin:/home/gitpod/.rvm/rubies/ruby-3.2.1/bin:/home/gitpod/.pyenv/shims:/workspace/go/bin:/home/gitpod/.nix-profile/bin:/ide/bin/remote-cli:/home/gitpod/go/bin:/home/gitpod/go-packages/bin:/home/gitpod/.nvm/versions/node/v18.16.1/bin:/home/gitpod/.yarn/bin:/home/gitpod/.pnpm:/home/gitpod/.pyenv/bin:/home/gitpod/.rvm/bin:/home/gitpod/.cargo/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:/home/gitpod/.local/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/gitpod/.nvm/versions/node/v18.16.1/bin:/home/gitpod/.rvm/bin" RUSTFLAGS="-Z unstable-options -C link-args=-Wl,-rpath,/usr/lib/lib -C opt-level=0 -C debuginfo=2 -C prefer-dynamic=no -Z remap-cwd-prefix=." "rustup" "run" "nightly-2023-02-07" "cargo" "rustc" "-p" "firefly" "--target" "x86_64-unknown-linux-gnu" "--message-format=json-diagnostic-rendered-ansi" "-vv" "--" "--remap-path-prefix" "/workspace/firefly=." "-Clink-args=-Wl,-v"
expected success, got: exit status: 101

twilson63 avatar Jul 27 '23 12:07 twilson63