Cannot compile from source #935

Open
opened 3 months ago by iamdoubz · 3 comments

Using this as latest pull from main branch, I receive this error when compiling the plm (cargo install --path plume-cli --force --features DATABASE):

plume@computer:~/Plume$ RUST_BACKTRACE=full cargo install --path plume-cli --force --features postgres
  Installing plume-cli v0.6.1-dev (/home/plume/Plume/plume-cli)
    Updating crates.io index
    Updating git repository `https://github.com/Plume-org/rocket_i18n`
    Updating git repository `https://git.joinplu.me/Plume/pulldown-cmark`
    Updating git repository `https://github.com/Plume-org/gettext/`
   Compiling backtrace-sys v0.1.37
   Compiling unicode-normalization v0.1.19
   Compiling openssl-sys v0.9.65
   Compiling onig_sys v69.7.0
   Compiling futures-core v0.3.15
   Compiling unicase v1.4.2
   Compiling rocket v0.4.10
error: failed to run custom build command for `rocket v0.4.10`

Caused by:
  process didn't exit successfully: `/home/plume/Plume/target/release/build/rocket-ce7b63c435c1e775/build-script-build` (exit status: 101)
  --- stderr
  Error: Rocket (core) requires a more recent version of rustc.
  Installed version: 1.53.0 (2021-03-30)
  Minimum required:  1.54.0-nightly (2021-05-18)
  thread 'main' panicked at 'Aborting compilation due to incompatible compiler.', /home/plume/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.10/build.rs:34:13
  stack backtrace:
     0:     0x557cba9196e0 - std::backtrace_rs::backtrace::libunwind::trace::h4dee703919bfd40a
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
     1:     0x557cba9196e0 - std::backtrace_rs::backtrace::trace_unsynchronized::h457e839f1a563e20
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
     2:     0x557cba9196e0 - std::sys_common::backtrace::_print_fmt::h86a55fb30f8393c8
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:67:5
     3:     0x557cba9196e0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h7b3d6cac46d277e1
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:46:22
     4:     0x557cba936daf - core::fmt::write::h127419eb46f2ecc9
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/core/src/fmt/mod.rs:1094:17
     5:     0x557cba9173f5 - std::io::Write::write_fmt::h6010cfbb4726588b
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/io/mod.rs:1578:15
     6:     0x557cba91b20b - std::sys_common::backtrace::_print::h79b4f9652330cc9d
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:49:5
     7:     0x557cba91b20b - std::sys_common::backtrace::print::h330bb326a76af8cf
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:36:9
     8:     0x557cba91b20b - std::panicking::default_hook::{{closure}}::heb6a42a7d50a472e
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:208:50
     9:     0x557cba91aced - std::panicking::default_hook::h17e521ba6d68d6e1
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:225:9
    10:     0x557cba91b7bd - std::panicking::rust_panic_with_hook::h70db735e3a6e70cb
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:591:17
    11:     0x557cba8ecdff - std::panicking::begin_panic::{{closure}}::h08b4ad4c6f3186af
    12:     0x557cba8efbe5 - std::sys_common::backtrace::__rust_end_short_backtrace::h9b8f72e23b873969
    13:     0x557cba8ecd48 - std::panicking::begin_panic::h484836404827d162
    14:     0x557cba8ec960 - build_script_build::main::h21f649285ed72483
    15:     0x557cba8ed106 - core::ops::function::FnOnce::call_once::h1c0f7f9a1efb8bfe
    16:     0x557cba8efc19 - std::sys_common::backtrace::__rust_begin_short_backtrace::haaea225b7de44299
    17:     0x557cba8ecb3c - std::rt::lang_start::{{closure}}::ha095e48542402c03
    18:     0x557cba91bbba - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hbcc915e668c7ca11
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/core/src/ops/function.rs:259:13
    19:     0x557cba91bbba - std::panicking::try::do_call::h6b0f430d48122ddf
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:379:40
    20:     0x557cba91bbba - std::panicking::try::h6ba420e2e21b5afa
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:343:19
    21:     0x557cba91bbba - std::panic::catch_unwind::h8366719d1f615eee
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panic.rs:431:14
    22:     0x557cba91bbba - std::rt::lang_start_internal::h965c28c9ce06ee73
                                 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/rt.rs:51:25
    23:     0x557cba8ecb21 - std::rt::lang_start::h36ee9ca728736398
    24:     0x557cba8ecaf3 - main
    25:     0x7f4bb9d590b3 - __libc_start_main
    26:     0x557cba8eb6ee - _start
    27:                0x0 - <unknown>
warning: build failed, waiting for other jobs to finish...
error: failed to compile `plume-cli v0.6.1-dev (/home/plume/Plume/plume-cli)`, intermediate artifacts can be found at `/home/plume/Plume/target`

Caused by:
  build failed

So, I upgrade rust to said version 1.54.0-nightly (2021-05-18). And run command again. This time rocket compiles, but fails to build any plume-% binaries.

Here is that error in a 7 day paste here.

Using [this](https://git.joinplu.me/Plume/Plume/commit/5424f9110f8749eb7d9f01b44ac8074fc13e0e68) as latest pull from main branch, I receive this error when compiling the plm (`cargo install --path plume-cli --force --features DATABASE`): ``` plume@computer:~/Plume$ RUST_BACKTRACE=full cargo install --path plume-cli --force --features postgres Installing plume-cli v0.6.1-dev (/home/plume/Plume/plume-cli) Updating crates.io index Updating git repository `https://github.com/Plume-org/rocket_i18n` Updating git repository `https://git.joinplu.me/Plume/pulldown-cmark` Updating git repository `https://github.com/Plume-org/gettext/` Compiling backtrace-sys v0.1.37 Compiling unicode-normalization v0.1.19 Compiling openssl-sys v0.9.65 Compiling onig_sys v69.7.0 Compiling futures-core v0.3.15 Compiling unicase v1.4.2 Compiling rocket v0.4.10 error: failed to run custom build command for `rocket v0.4.10` Caused by: process didn't exit successfully: `/home/plume/Plume/target/release/build/rocket-ce7b63c435c1e775/build-script-build` (exit status: 101) --- stderr Error: Rocket (core) requires a more recent version of rustc. Installed version: 1.53.0 (2021-03-30) Minimum required: 1.54.0-nightly (2021-05-18) thread 'main' panicked at 'Aborting compilation due to incompatible compiler.', /home/plume/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.10/build.rs:34:13 stack backtrace: 0: 0x557cba9196e0 - std::backtrace_rs::backtrace::libunwind::trace::h4dee703919bfd40a at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 1: 0x557cba9196e0 - std::backtrace_rs::backtrace::trace_unsynchronized::h457e839f1a563e20 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x557cba9196e0 - std::sys_common::backtrace::_print_fmt::h86a55fb30f8393c8 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:67:5 3: 0x557cba9196e0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h7b3d6cac46d277e1 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:46:22 4: 0x557cba936daf - core::fmt::write::h127419eb46f2ecc9 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/core/src/fmt/mod.rs:1094:17 5: 0x557cba9173f5 - std::io::Write::write_fmt::h6010cfbb4726588b at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/io/mod.rs:1578:15 6: 0x557cba91b20b - std::sys_common::backtrace::_print::h79b4f9652330cc9d at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:49:5 7: 0x557cba91b20b - std::sys_common::backtrace::print::h330bb326a76af8cf at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/sys_common/backtrace.rs:36:9 8: 0x557cba91b20b - std::panicking::default_hook::{{closure}}::heb6a42a7d50a472e at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:208:50 9: 0x557cba91aced - std::panicking::default_hook::h17e521ba6d68d6e1 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:225:9 10: 0x557cba91b7bd - std::panicking::rust_panic_with_hook::h70db735e3a6e70cb at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:591:17 11: 0x557cba8ecdff - std::panicking::begin_panic::{{closure}}::h08b4ad4c6f3186af 12: 0x557cba8efbe5 - std::sys_common::backtrace::__rust_end_short_backtrace::h9b8f72e23b873969 13: 0x557cba8ecd48 - std::panicking::begin_panic::h484836404827d162 14: 0x557cba8ec960 - build_script_build::main::h21f649285ed72483 15: 0x557cba8ed106 - core::ops::function::FnOnce::call_once::h1c0f7f9a1efb8bfe 16: 0x557cba8efc19 - std::sys_common::backtrace::__rust_begin_short_backtrace::haaea225b7de44299 17: 0x557cba8ecb3c - std::rt::lang_start::{{closure}}::ha095e48542402c03 18: 0x557cba91bbba - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hbcc915e668c7ca11 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/core/src/ops/function.rs:259:13 19: 0x557cba91bbba - std::panicking::try::do_call::h6b0f430d48122ddf at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:379:40 20: 0x557cba91bbba - std::panicking::try::h6ba420e2e21b5afa at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panicking.rs:343:19 21: 0x557cba91bbba - std::panic::catch_unwind::h8366719d1f615eee at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/panic.rs:431:14 22: 0x557cba91bbba - std::rt::lang_start_internal::h965c28c9ce06ee73 at /rustc/74874a690bc95443292496ff5df5cc5c8cb56e0b/library/std/src/rt.rs:51:25 23: 0x557cba8ecb21 - std::rt::lang_start::h36ee9ca728736398 24: 0x557cba8ecaf3 - main 25: 0x7f4bb9d590b3 - __libc_start_main 26: 0x557cba8eb6ee - _start 27: 0x0 - <unknown> warning: build failed, waiting for other jobs to finish... error: failed to compile `plume-cli v0.6.1-dev (/home/plume/Plume/plume-cli)`, intermediate artifacts can be found at `/home/plume/Plume/target` Caused by: build failed ``` So, I upgrade rust to said version 1.54.0-nightly (2021-05-18). And run command again. This time rocket compiles, but fails to build any plume-% binaries. Here is that error in a 7 day paste [here](https://txt.dou.bet/?7982e0f876cc3dd6#Hd2qX5bNyMsw4zN6uvFMHEHBJhi6V7Pt7mgM5sVL5fS9).

I meet the same problem. Finally I change all rocket = "0.4.6" to rocket = "=0.4.6", and it works.

I meet the same problem. Finally I change all `rocket = "0.4.6"` to `rocket = "=0.4.6"`, and it works.

I just installed git version of rustup and updated to nightly. And I got the latest version of rustc.

I just installed git version of `rustup` and updated to nightly. And I got the latest version of rustc.

@Horhik I think you just need to change https://git.joinplu.me/Plume/Plume/src/branch/main/rust-toolchain if you want to use any other version of rustc.

But it will cause compile error if you use the lastest version.

@Horhik I think you just need to change https://git.joinplu.me/Plume/Plume/src/branch/main/rust-toolchain if you want to use any other version of rustc. But it will cause compile error if you use the lastest version.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.