mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #106] [Bug] Build failed on Ubuntu 20.04 #53
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andywang0607 on GitHub (Nov 30, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/106
Describe the bug
I follow the BUILD_ON_LINUX.md and failed on step 10
cargo make --profile development-linux-x86 flowy-sdk-dev
To Reproduce
Steps to reproduce the behavior:
Screenshots
[cargo-make] INFO - cargo make 0.35.6
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: flowy-sdk-dev
[cargo-make] INFO - Profile: development-linux-x86
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: echo_env
-------- Env Parameters --------
CRATE_TYPE: cdylib
BUILD_FLAG: debug
TARGET_OS: linux
RUST_COMPILE_TARGET: x86_64-unknown-linux-gnu
FEATURES: flutter
PRODUCT_EXT:
-------- Flutter --------
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 2.6.0-11.0.pre, on Ubuntu 20.04.3 LTS 5.11.0-40-generic, locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.62.3)
[✓] Connected device (2 available)
! Doctor found issues in 2 categories.
-------- Rust --------
Default host: x86_64-unknown-linux-gnu
rustup home: /home/ubuntu/.rustup
installed toolchains
stable-x86_64-unknown-linux-gnu
nightly-2021-04-24-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
active toolchain
nightly-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
rustc 1.59.0-nightly (6db0a0e9a 2021-11-29)
[cargo-make] INFO - Running Task: setup-crate-type
[cargo-make] INFO - Running Task: sdk-build
cargo build --package=dart-ffi --target x86_64-unknown-linux-gnu --features=flutter
Compiling proc-macro2 v1.0.32
Compiling unicode-xid v0.2.2
Compiling syn v1.0.82
Compiling cfg-if v1.0.0
Compiling autocfg v1.0.1
Compiling libc v0.2.108
Compiling memchr v2.4.1
Compiling log v0.4.14
Compiling serde_derive v1.0.130
Compiling serde v1.0.130
Compiling lazy_static v1.4.0
Compiling cc v1.0.72
Compiling pkg-config v0.3.22
Compiling pin-project-lite v0.2.7
Compiling smallvec v1.7.0
Compiling scopeguard v1.1.0
Compiling once_cell v1.8.0
Compiling itoa v0.4.8
Compiling parking_lot_core v0.8.5
Compiling ryu v1.0.6
Compiling futures-core v0.3.18
Compiling serde_json v1.0.72
Compiling regex-syntax v0.6.25
Compiling futures-sink v0.3.18
Compiling futures-task v0.3.18
Compiling futures-channel v0.3.18
Compiling futures-util v0.3.18
Compiling matches v0.1.9
Compiling tinyvec_macros v0.1.0
Compiling futures-io v0.3.18
Compiling percent-encoding v2.1.0
Compiling pin-utils v0.1.0
Compiling slab v0.4.5
Compiling unicode-bidi v0.3.7
Compiling fnv v1.0.7
Compiling protobuf v2.25.2
Compiling byteorder v1.4.3
Compiling httparse v1.5.1
Compiling typenum v1.14.0
Compiling version_check v0.9.3
Compiling foreign-types-shared v0.1.1
Compiling gimli v0.26.1
Compiling adler v1.0.2
Compiling openssl v0.10.38
Compiling bitflags v1.3.2
Compiling unicode-segmentation v1.8.0
Compiling rustc-demangle v0.1.21
Compiling ident_case v1.0.1
Compiling hashbrown v0.11.2
Compiling strsim v0.10.0
Compiling crossbeam-utils v0.8.5
Compiling native-tls v0.2.8
Compiling convert_case v0.4.0
Compiling openssl-probe v0.1.4
Compiling try-lock v0.2.3
Compiling ppv-lite86 v0.2.15
Compiling rustversion v1.0.5
Compiling base64 v0.13.0
Compiling tower-service v0.3.1
Compiling strum v0.21.0
Compiling httpdate v1.0.2
Compiling bit-vec v0.6.3
Compiling encoding_rs v0.8.29
Compiling bytecount v0.6.2
Compiling anyhow v1.0.51
Compiling md5 v0.7.0
Compiling cpufeatures v0.2.1
Compiling opaque-debug v0.3.0
Compiling validator_types v0.12.0
Compiling termcolor v1.1.2
Compiling paste v1.0.6
Compiling ipnet v2.3.1
Compiling humantime v2.1.0
Compiling utf-8 v0.7.6
Compiling mime v0.3.16
Compiling crossbeam-epoch v0.9.5
Compiling dyn-clone v1.0.4
Compiling crossbeam-queue v0.3.2
Compiling ansi_term v0.12.1
Compiling eyre v0.6.5
Compiling indenter v0.3.3
Compiling owo-colors v1.3.0
Compiling instant v0.1.12
Compiling tracing-core v0.1.21
Compiling sharded-slab v0.1.4
Compiling lock_api v0.4.5
Compiling tokio v1.14.0
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling miniz_oxide v0.4.4
Compiling indexmap v1.7.0
Compiling atomic v0.5.1
Compiling memoffset v0.6.4
Compiling thread_local v1.1.3
Compiling tinyvec v1.5.1
Compiling form_urlencoded v1.0.1
Compiling foreign-types v0.3.2
Compiling generic-array v0.14.4
Compiling libsqlite3-sys v0.22.2
Compiling openssl-sys v0.9.71
Compiling backtrace v0.3.63
Compiling regex-automata v0.1.10
Compiling heck v0.3.3
Compiling bit-set v0.5.2
Compiling addr2line v0.17.0
Compiling unicode-normalization v0.1.19
Compiling want v0.3.0
Compiling tracing-log v0.1.2
Compiling ffi-support v0.4.4
Compiling matchers v0.0.1
Compiling aho-corasick v0.7.18
Compiling object v0.27.1
Compiling quote v1.0.10
Compiling num_cpus v1.13.0
Compiling signal-hook-registry v1.4.0
Compiling mio v0.7.14
Compiling getrandom v0.2.3
Compiling time v0.1.44
Compiling socket2 v0.4.2
Compiling atty v0.2.14
Compiling thread-id v3.3.0
Compiling gethostname v0.2.1
Compiling crossbeam-channel v0.5.1
Compiling idna v0.2.3
Compiling regex v1.5.4
Compiling parking_lot v0.11.2
Compiling dashmap v4.0.2
Compiling rand_core v0.6.3
Compiling digest v0.9.0
Compiling block-buffer v0.9.0
Compiling url v2.2.2
Compiling scheduled-thread-pool v0.2.5
Compiling rand_chacha v0.3.1
Compiling crossbeam-deque v0.8.1
Compiling fancy-regex v0.5.0
Compiling env_logger v0.8.4
Compiling sha-1 v0.9.8
Compiling chrono v0.4.19
Compiling error-chain v0.12.0
Compiling color-eyre v0.5.11
Compiling r2d2 v0.8.9
Compiling rand v0.8.4
Compiling crossbeam v0.8.1
Compiling flowy-ast v0.1.0 (/home/ubuntu/workspace/github/appflowy/shared-lib/flowy-ast)
Compiling darling_core v0.13.0
Compiling tracing-attributes v0.1.18
Compiling tokio-macros v1.6.0
Compiling futures-macro v0.3.18
Compiling diesel_derives v1.4.1
Compiling pin-project-internal v1.0.8
Compiling flowy-derive v0.1.0 (/home/ubuntu/workspace/github/appflowy/shared-lib/flowy-derive)
Compiling derive_more v0.99.17
warning: variant is never constructed:
Protobuf--> /home/ubuntu/workspace/github/appflowy/shared-lib/flowy-derive/src/derive_cache/derive_cache.rs:6:5
|
6 | Protobuf,
| ^^^^^^^^
|
= note:
#[warn(dead_code)]on by defaultwarning: variant is never constructed:
Enum--> /home/ubuntu/workspace/github/appflowy/shared-lib/flowy-derive/src/derive_cache/derive_cache.rs:8:5
|
8 | Enum,
| ^^^^
Compiling strum_macros v0.21.1
Compiling thiserror-impl v1.0.30
warning:
flowy-derive(lib) generated 2 warningsCompiling serde_repr v0.1.7
Compiling derivative v2.2.0
Compiling async-stream-impl v0.3.2
Compiling darling_macro v0.13.0
Compiling tracing v0.1.29
Compiling pin-project v1.0.8
Compiling async-stream v0.3.2
Compiling thiserror v1.0.30
Compiling allo-isolate v0.1.11
Compiling tracing-futures v0.2.5
Compiling darling v0.13.0
Compiling serde_with_macros v1.5.1
Compiling futures-executor v0.3.18
Compiling futures v0.3.18
Compiling diesel v1.4.8
Compiling bytes v1.1.0
Compiling uuid v0.8.2
Compiling serde_urlencoded v0.7.0
Compiling serde_with v1.11.0
Compiling tracing-serde v0.1.2
Compiling bincode v1.3.3
Compiling http v0.2.5
Compiling lib-ot v0.1.0 (/home/ubuntu/workspace/github/appflowy/shared-lib/lib-ot)
Compiling validator v0.12.0
Compiling tracing-subscriber v0.2.25
Compiling flowy-user-infra v0.1.0 (/home/ubuntu/workspace/github/appflowy/shared-lib/flowy-user-infra)
Compiling http-body v0.4.4
Compiling tungstenite v0.14.0
Compiling tracing-bunyan-formatter v0.2.6
Compiling tracing-appender v0.1.2
Compiling lib-log v0.1.0 (/home/ubuntu/workspace/github/appflowy/frontend/rust-lib/lib-log)
Compiling tokio-util v0.6.9
Compiling tokio-native-tls v0.3.0
Compiling flowy-document-infra v0.1.0 (/home/ubuntu/workspace/github/appflowy/shared-lib/flowy-document-infra)
Compiling tokio-tungstenite v0.15.0
Compiling lib-dispatch v0.1.0 (/home/ubuntu/workspace/github/appflowy/frontend/rust-lib/lib-dispatch)
Compiling migrations_internals v1.4.1
Compiling h2 v0.3.7
error[E0308]: mismatched types
--> /home/ubuntu/workspace/github/appflowy/shared-lib/flowy-document-infra/src/entities/doc/revision.rs:60:41
|
60 | #[derive(PartialEq, Eq, Clone, Default, ProtoBuf)]
| ^^^^^^^^
| |
| expected enum
entities::doc::revision::RevType, found enummodel::revision::RevType| expected due to the type of this binding
|
= note: this error originates in the derive macro
ProtoBuf(in Nightly builds, run with -Z macro-backtrace for more info)error[E0308]: mismatched types
--> /home/ubuntu/workspace/github/appflowy/shared-lib/flowy-document-infra/src/entities/doc/revision.rs:60:41
|
60 | #[derive(PartialEq, Eq, Clone, Default, ProtoBuf)]
| ^^^^^^^^
| |
| expected enum
model::revision::RevType, found enumentities::doc::revision::RevType| expected due to the type of this binding
|
= note: this error originates in the derive macro
ProtoBuf(in Nightly builds, run with -Z macro-backtrace for more info)error[E0308]: mismatched types
--> /home/ubuntu/workspace/github/appflowy/shared-lib/flowy-document-infra/src/entities/ws/ws.rs:31:10
|
31 | #[derive(ProtoBuf, Default, Debug, Clone)]
| ^^^^^^^^
| |
| expected enum
entities::ws::ws::WsDataType, found enummodel::ws::WsDataType| expected due to the type of this binding
|
= note: this error originates in the derive macro
ProtoBuf(in Nightly builds, run with -Z macro-backtrace for more info)error[E0308]: mismatched types
--> /home/ubuntu/workspace/github/appflowy/shared-lib/flowy-document-infra/src/entities/ws/ws.rs:31:10
|
31 | #[derive(ProtoBuf, Default, Debug, Clone)]
| ^^^^^^^^
| |
| expected enum
model::ws::WsDataType, found enumentities::ws::ws::WsDataType| expected due to the type of this binding
|
= note: this error originates in the derive macro
ProtoBuf(in Nightly builds, run with -Z macro-backtrace for more info)For more information about this error, try
rustc --explain E0308.error: could not compile
flowy-document-infradue to 4 previous errorswarning: build failed, waiting for other jobs to finish...
error: build failed
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.
Desktop (please complete the following information):
@irfanbacker commented on GitHub (Dec 1, 2021):
I have encountered the same. There are some issues in protobuf generation of appflowy on linux. If you skip that step, you can get it working. Protobuf has already been generated and is tracked in the repository. So it will work without regeneration as of now.
Edit: The issue is the same as #114
@yolo2h commented on GitHub (Dec 6, 2021):
I was have same issue, but now(commit hash:
a935f25344) it looks like the problem has been fixed.@irfanbacker commented on GitHub (Dec 6, 2021):
Not that particular commit.
63082418beseems to have fixed this.@annieappflowy You can close this issue.