[GH-ISSUE #68] [Bug] Can't build application on Mac OS #39

Closed
opened 2026-03-23 20:30:48 +00:00 by mirror · 5 comments
Owner

Originally created by @Maksimka101 on GitHub (Nov 21, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/68

Describe the bug
I can't build application on mac os. I followed the instruction in readme but I face an error in build_sdk.sh

Start building rust sdk
Default host: x86_64-apple-darwin
rustup home:  /Users/maksimzemlyanikin/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin (default)
nightly-2021-04-24-x86_64-apple-darwin
nightly-x86_64-apple-darwin

active toolchain
----------------

nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend')
rustc 1.58.0-nightly (2885c4748 2021-11-20)

[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-mac
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: echo_env
CRATE_TYPE: staticlib 
BUILD_FLAG: debug 
TARGET_OS: macos 
RUST_COMPILE_TARGET: x86_64-apple-darwin 
FEATURES: flutter 
PRODUCT_EXT: app 
 
[cargo-make] INFO - Running Task: setup-crate-type
[cargo-make] INFO - Running Task: sdk-build
cargo build --package=dart-ffi --target x86_64-apple-darwin --features=flutter
   Compiling flowy-document v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-document)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> flowy-document/src/lib.rs:1:1
  |
1 | #![feature(vecdeque_binary_search)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `flowy-document` due to previous error
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.

To Reproduce
Steps to reproduce the behavior:

  1. Follow steps 2, 3 and 4 in instruction
  2. Install rust using brew install rust
  3. Optionally run rustup override set nightly ; rustup install nightly
  4. Run ./frontend/scripts/build_sdk.sh
  5. See error

Desktop:

  • OS: Mac OS Monterey
  • Browser Firefox
  • Version main branch (e66c8ac7)

Additional context
flutter doctor -v

[✓] Flutter (Channel dev, 2.6.0-11.0.pre, on macOS 12.0.1 21A559 darwin-x64, locale en-GB)
    • Flutter version 2.6.0-11.0.pre at /Users/maksimzemlyanikin/fvm/versions/dev
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4b330ddbed (9 weeks ago), 2021-09-16 17:29:58 -0700
    • Engine revision 5b81c6d615
    • Dart version 2.15.0 (build 2.15.0-116.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/maksimzemlyanikin/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2021.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5632

[✓] VS Code (version 1.62.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.28.0

[✓] Connected device (1 available)
    • macOS (desktop) • macos • darwin-x64 • macOS 12.0.1 21A559 darwin-x64
    ! Error: iPhone 11 is not connected. Xcode will continue when iPhone 11 is connected. (code -13)

! Doctor found issues in 3 categories.

rustup show

Default host: x86_64-apple-darwin
rustup home:  /Users/maksimzemlyanikin/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin (default)
nightly-2021-04-24-x86_64-apple-darwin
nightly-x86_64-apple-darwin

active toolchain
----------------

nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend')
Originally created by @Maksimka101 on GitHub (Nov 21, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/68 **Describe the bug** I can't build application on mac os. I followed the instruction in readme but I face an error in `build_sdk.sh` ``` Start building rust sdk Default host: x86_64-apple-darwin rustup home: /Users/maksimzemlyanikin/.rustup installed toolchains -------------------- stable-x86_64-apple-darwin (default) nightly-2021-04-24-x86_64-apple-darwin nightly-x86_64-apple-darwin active toolchain ---------------- nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend') rustc 1.58.0-nightly (2885c4748 2021-11-20) [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-mac [cargo-make] INFO - Running Task: legacy-migration [cargo-make] INFO - Running Task: echo_env CRATE_TYPE: staticlib BUILD_FLAG: debug TARGET_OS: macos RUST_COMPILE_TARGET: x86_64-apple-darwin FEATURES: flutter PRODUCT_EXT: app [cargo-make] INFO - Running Task: setup-crate-type [cargo-make] INFO - Running Task: sdk-build cargo build --package=dart-ffi --target x86_64-apple-darwin --features=flutter Compiling flowy-document v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-document) error[E0554]: `#![feature]` may not be used on the stable release channel --> flowy-document/src/lib.rs:1:1 | 1 | #![feature(vecdeque_binary_search)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For more information about this error, try `rustc --explain E0554`. error: could not compile `flowy-document` due to previous error [cargo-make] ERROR - Error while executing command, exit code: 101 [cargo-make] WARN - Build Failed. ``` **To Reproduce** Steps to reproduce the behavior: 1. Follow steps 2, 3 and 4 in instruction 2. Install rust using `brew install rust` 3. Optionally run `rustup override set nightly ; rustup install nightly` 4. Run `./frontend/scripts/build_sdk.sh` 5. See error **Desktop:** - OS: Mac OS Monterey - Browser Firefox - Version main branch (e66c8ac7) **Additional context** `flutter doctor -v` ``` [✓] Flutter (Channel dev, 2.6.0-11.0.pre, on macOS 12.0.1 21A559 darwin-x64, locale en-GB) • Flutter version 2.6.0-11.0.pre at /Users/maksimzemlyanikin/fvm/versions/dev • Upstream repository https://github.com/flutter/flutter.git • Framework revision 4b330ddbed (9 weeks ago), 2021-09-16 17:29:58 -0700 • Engine revision 5b81c6d615 • Dart version 2.15.0 (build 2.15.0-116.0.dev) [!] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/maksimzemlyanikin/Library/Android/sdk ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 13.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.2 [✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). [✓] IntelliJ IDEA Community Edition (version 2021.2.3) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 61.2.4 • Dart plugin version 212.5632 [✓] VS Code (version 1.62.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.28.0 [✓] Connected device (1 available) • macOS (desktop) • macos • darwin-x64 • macOS 12.0.1 21A559 darwin-x64 ! Error: iPhone 11 is not connected. Xcode will continue when iPhone 11 is connected. (code -13) ! Doctor found issues in 3 categories. ``` `rustup show` ``` Default host: x86_64-apple-darwin rustup home: /Users/maksimzemlyanikin/.rustup installed toolchains -------------------- stable-x86_64-apple-darwin (default) nightly-2021-04-24-x86_64-apple-darwin nightly-x86_64-apple-darwin active toolchain ---------------- nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend') ```
Author
Owner

@hexcola commented on GitHub (Nov 22, 2021):

I faced the same issue.

I fixed by using cargo nightly version:

rustup install nightly
rustup default nightly

and, btw, I'm using Apple M1, have to install x86_64-apple-darwin toolchain specifically (https://github.com/rust-lang/rust/issues/63519) since flutter won't work directly on aarch64-apple-darwin.

even after this, you still may face a new problem, Exception: Error running pod install, try this https://github.com/flutter/flutter/issues/70796#issue-746115543 will fix that.

<!-- gh-comment-id:975033846 --> @hexcola commented on GitHub (Nov 22, 2021): I faced the same issue. I fixed by using cargo `nightly` version: ```sh rustup install nightly rustup default nightly ``` and, btw, I'm using `Apple M1`, have to install `x86_64-apple-darwin` toolchain specifically (https://github.com/rust-lang/rust/issues/63519) since flutter won't work directly on `aarch64-apple-darwin`. even after this, you still may face a new problem, **Exception: Error running pod install**, try this https://github.com/flutter/flutter/issues/70796#issue-746115543 will fix that.
Author
Owner

@appflowy commented on GitHub (Nov 22, 2021):

I have updated the install_rust command with the default-toolchain specified.

install_rust:
brew bundle
rustup-init -y --default-toolchain=nightly

<!-- gh-comment-id:975317856 --> @appflowy commented on GitHub (Nov 22, 2021): I have updated the install_rust command with the default-toolchain specified. install_rust: brew bundle rustup-init -y --default-toolchain=nightly
Author
Owner

@Maksimka101 commented on GitHub (Nov 22, 2021):

I switched to the nightly (using rustup install nightly ; rustup default nightly)
Cleaned cache by running cargo clean in frontend/rust-lib directory
And finally face the same error ¯_(ツ)_/¯

Start building rust sdk
Default host: x86_64-apple-darwin
rustup home:  /Users/maksimzemlyanikin/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-2021-04-24-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

active toolchain
----------------

nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend')
rustc 1.58.0-nightly (2885c4748 2021-11-20)

[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-mac
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: echo_env
CRATE_TYPE: staticlib 
BUILD_FLAG: debug 
TARGET_OS: macos 
RUST_COMPILE_TARGET: x86_64-apple-darwin 
FEATURES: flutter 
PRODUCT_EXT: app 
 
[cargo-make] INFO - Running Task: setup-crate-type
[cargo-make] INFO - Running Task: sdk-build
cargo build --package=dart-ffi --target x86_64-apple-darwin --features=flutter
   Compiling proc-macro2 v1.0.32
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.81
   Compiling autocfg v1.0.1
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.108
   Compiling memchr v2.4.1
   Compiling serde_derive v1.0.130
   Compiling lazy_static v1.4.0
   Compiling serde v1.0.130
   Compiling log v0.4.14
   Compiling pin-project-lite v0.2.7
   Compiling smallvec v1.7.0
   Compiling scopeguard v1.1.0
   Compiling itoa v0.4.8
   Compiling parking_lot_core v0.8.5
   Compiling once_cell v1.8.0
   Compiling cc v1.0.72
   Compiling futures-core v0.3.17
   Compiling ryu v1.0.5
   Compiling pkg-config v0.3.22
   Compiling proc-macro-hack v0.5.19
   Compiling serde_json v1.0.71
   Compiling regex-syntax v0.6.25
   Compiling proc-macro-nested v0.1.7
   Compiling futures-sink v0.3.17
   Compiling futures-channel v0.3.17
   Compiling futures-task v0.3.17
   Compiling tinyvec_macros v0.1.0
   Compiling matches v0.1.9
   Compiling slab v0.4.5
   Compiling pin-utils v0.1.0
   Compiling percent-encoding v2.1.0
   Compiling ppv-lite86 v0.2.15
   Compiling futures-io v0.3.17
   Compiling core-foundation-sys v0.8.3
   Compiling unicode-bidi v0.3.7
   Compiling protobuf v2.25.2
   Compiling fnv v1.0.7
   Compiling byteorder v1.4.3
   Compiling httparse v1.5.1
   Compiling typenum v1.14.0
   Compiling version_check v0.9.3
   Compiling adler v1.0.2
   Compiling gimli v0.26.1
   Compiling rustc-demangle v0.1.21
   Compiling ident_case v1.0.1
   Compiling unicode-segmentation v1.8.0
   Compiling convert_case v0.4.0
   Compiling bitflags v1.3.2
   Compiling hashbrown v0.11.2
   Compiling crossbeam-utils v0.8.5
   Compiling remove_dir_all v0.5.3
   Compiling strsim v0.10.0
   Compiling native-tls v0.2.8
   Compiling try-lock v0.2.3
   Compiling rustversion v1.0.5
   Compiling tower-service v0.3.1
   Compiling httpdate v1.0.2
   Compiling base64 v0.13.0
   Compiling encoding_rs v0.8.29
   Compiling bytecount v0.6.2
   Compiling bit-vec v0.6.3
   Compiling strum v0.21.0
   Compiling cpufeatures v0.2.1
   Compiling opaque-debug v0.3.0
   Compiling anyhow v1.0.47
   Compiling validator_types v0.12.0
   Compiling md5 v0.7.0
   Compiling termcolor v1.1.2
   Compiling mime v0.3.16
   Compiling humantime v2.1.0
   Compiling ipnet v2.3.1
   Compiling paste v1.0.6
   Compiling utf-8 v0.7.6
   Compiling dyn-clone v1.0.4
   Compiling crossbeam-epoch v0.9.5
   Compiling ansi_term v0.12.1
   Compiling crossbeam-queue v0.3.2
   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 thread_local v1.1.3
   Compiling tinyvec v1.5.1
   Compiling form_urlencoded v1.0.1
   Compiling tokio v1.14.0
   Compiling futures-macro v0.3.17
   Compiling futures-util v0.3.17
   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 generic-array v0.14.4
   Compiling heck v0.3.3
   Compiling bit-set v0.5.2
   Compiling libsqlite3-sys v0.22.2
   Compiling backtrace v0.3.63
   Compiling regex-automata v0.1.10
   Compiling want v0.3.0
   Compiling tracing-log v0.1.2
   Compiling ffi-support v0.4.4
   Compiling unicode-normalization v0.1.19
   Compiling aho-corasick v0.7.18
   Compiling object v0.27.1
   Compiling addr2line v0.17.0
   Compiling quote v1.0.10
   Compiling getrandom v0.2.3
   Compiling num_cpus v1.13.0
   Compiling mio v0.7.14
   Compiling signal-hook-registry v1.4.0
   Compiling time v0.1.44
   Compiling core-foundation v0.9.2
   Compiling security-framework-sys v2.4.2
   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 matchers v0.0.1
   Compiling idna v0.2.3
   Compiling parking_lot v0.11.2
   Compiling rand_core v0.6.3
   Compiling dashmap v4.0.2
   Compiling regex v1.5.4
   Compiling security-framework v2.4.2
   Compiling scheduled-thread-pool v0.2.5
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling rand_chacha v0.3.1
   Compiling url v2.2.2
   Compiling chrono v0.4.19
   Compiling r2d2 v0.8.9
   Compiling sha-1 v0.9.8
   Compiling crossbeam-deque v0.8.1
   Compiling rand v0.8.4
   Compiling crossbeam v0.8.1
   Compiling fancy-regex v0.5.0
   Compiling env_logger v0.8.4
   Compiling tempfile v3.2.0
   Compiling error-chain v0.12.0
   Compiling color-eyre v0.5.11
   Compiling flowy-ast v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-ast)
   Compiling darling_core v0.13.0
   Compiling tracing-attributes v0.1.18
   Compiling tokio-macros v1.6.0
   Compiling diesel_derives v1.4.1
   Compiling pin-project-internal v1.0.8
   Compiling flowy-derive v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-derive)
   Compiling derive_more v0.99.16
   Compiling strum_macros v0.21.1
   Compiling thiserror-impl v1.0.30
   Compiling serde_repr v0.1.7
   Compiling derivative v2.2.0
   Compiling async-stream-impl v0.3.2
   Compiling darling_macro v0.13.0
   Compiling darling v0.13.0
   Compiling serde_with_macros v1.5.1
   Compiling async-stream v0.3.2
   Compiling tracing v0.1.29
   Compiling pin-project v1.0.8
   Compiling allo-isolate v0.1.11
   Compiling tracing-futures v0.2.5
   Compiling thiserror v1.0.30
   Compiling diesel v1.4.8
   Compiling futures-executor v0.3.17
   Compiling futures v0.3.17
   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 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/lib-ot)
   Compiling validator v0.12.0
   Compiling tracing-subscriber v0.2.25
   Compiling flowy-user-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-user-infra)
   Compiling http-body v0.4.4
   Compiling tungstenite v0.14.0
   Compiling tracing-appender v0.1.2
   Compiling tracing-bunyan-formatter v0.2.6
   Compiling lib-log v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-log)
   Compiling migrations_internals v1.4.1
   Compiling migrations_macros v1.4.2
   Compiling tokio-util v0.6.9
   Compiling tokio-native-tls v0.3.0
   Compiling flowy-document-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-document-infra)
   Compiling lib-dispatch v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-dispatch)
   Compiling tokio-tungstenite v0.15.0
   Compiling h2 v0.3.7
   Compiling diesel_migrations v1.4.0
   Compiling lib-sqlite v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-sqlite)
   Compiling dart-notify v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/dart-notify)
   Compiling lib-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-infra)
   Compiling flowy-database v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-database)
   Compiling flowy-workspace-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-workspace-infra)
   Compiling hyper v0.14.15
   Compiling hyper-tls v0.5.0
   Compiling reqwest v0.11.6
   Compiling backend-service v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/backend-service)
   Compiling lib-ws v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/lib-ws)
   Compiling flowy-document v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-document)
   Compiling flowy-user v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-user)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> flowy-document/src/lib.rs:1:1
  |
1 | #![feature(vecdeque_binary_search)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `flowy-document` due to previous error
warning: 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.
<!-- gh-comment-id:975367435 --> @Maksimka101 commented on GitHub (Nov 22, 2021): I switched to the nightly (using `rustup install nightly ; rustup default nightly`) Cleaned cache by running `cargo clean` in `frontend/rust-lib` directory And finally face the same error ¯\_(ツ)_/¯ ``` Start building rust sdk Default host: x86_64-apple-darwin rustup home: /Users/maksimzemlyanikin/.rustup installed toolchains -------------------- stable-x86_64-apple-darwin nightly-2021-04-24-x86_64-apple-darwin nightly-x86_64-apple-darwin (default) active toolchain ---------------- nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend') rustc 1.58.0-nightly (2885c4748 2021-11-20) [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-mac [cargo-make] INFO - Running Task: legacy-migration [cargo-make] INFO - Running Task: echo_env CRATE_TYPE: staticlib BUILD_FLAG: debug TARGET_OS: macos RUST_COMPILE_TARGET: x86_64-apple-darwin FEATURES: flutter PRODUCT_EXT: app [cargo-make] INFO - Running Task: setup-crate-type [cargo-make] INFO - Running Task: sdk-build cargo build --package=dart-ffi --target x86_64-apple-darwin --features=flutter Compiling proc-macro2 v1.0.32 Compiling unicode-xid v0.2.2 Compiling syn v1.0.81 Compiling autocfg v1.0.1 Compiling cfg-if v1.0.0 Compiling libc v0.2.108 Compiling memchr v2.4.1 Compiling serde_derive v1.0.130 Compiling lazy_static v1.4.0 Compiling serde v1.0.130 Compiling log v0.4.14 Compiling pin-project-lite v0.2.7 Compiling smallvec v1.7.0 Compiling scopeguard v1.1.0 Compiling itoa v0.4.8 Compiling parking_lot_core v0.8.5 Compiling once_cell v1.8.0 Compiling cc v1.0.72 Compiling futures-core v0.3.17 Compiling ryu v1.0.5 Compiling pkg-config v0.3.22 Compiling proc-macro-hack v0.5.19 Compiling serde_json v1.0.71 Compiling regex-syntax v0.6.25 Compiling proc-macro-nested v0.1.7 Compiling futures-sink v0.3.17 Compiling futures-channel v0.3.17 Compiling futures-task v0.3.17 Compiling tinyvec_macros v0.1.0 Compiling matches v0.1.9 Compiling slab v0.4.5 Compiling pin-utils v0.1.0 Compiling percent-encoding v2.1.0 Compiling ppv-lite86 v0.2.15 Compiling futures-io v0.3.17 Compiling core-foundation-sys v0.8.3 Compiling unicode-bidi v0.3.7 Compiling protobuf v2.25.2 Compiling fnv v1.0.7 Compiling byteorder v1.4.3 Compiling httparse v1.5.1 Compiling typenum v1.14.0 Compiling version_check v0.9.3 Compiling adler v1.0.2 Compiling gimli v0.26.1 Compiling rustc-demangle v0.1.21 Compiling ident_case v1.0.1 Compiling unicode-segmentation v1.8.0 Compiling convert_case v0.4.0 Compiling bitflags v1.3.2 Compiling hashbrown v0.11.2 Compiling crossbeam-utils v0.8.5 Compiling remove_dir_all v0.5.3 Compiling strsim v0.10.0 Compiling native-tls v0.2.8 Compiling try-lock v0.2.3 Compiling rustversion v1.0.5 Compiling tower-service v0.3.1 Compiling httpdate v1.0.2 Compiling base64 v0.13.0 Compiling encoding_rs v0.8.29 Compiling bytecount v0.6.2 Compiling bit-vec v0.6.3 Compiling strum v0.21.0 Compiling cpufeatures v0.2.1 Compiling opaque-debug v0.3.0 Compiling anyhow v1.0.47 Compiling validator_types v0.12.0 Compiling md5 v0.7.0 Compiling termcolor v1.1.2 Compiling mime v0.3.16 Compiling humantime v2.1.0 Compiling ipnet v2.3.1 Compiling paste v1.0.6 Compiling utf-8 v0.7.6 Compiling dyn-clone v1.0.4 Compiling crossbeam-epoch v0.9.5 Compiling ansi_term v0.12.1 Compiling crossbeam-queue v0.3.2 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 thread_local v1.1.3 Compiling tinyvec v1.5.1 Compiling form_urlencoded v1.0.1 Compiling tokio v1.14.0 Compiling futures-macro v0.3.17 Compiling futures-util v0.3.17 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 generic-array v0.14.4 Compiling heck v0.3.3 Compiling bit-set v0.5.2 Compiling libsqlite3-sys v0.22.2 Compiling backtrace v0.3.63 Compiling regex-automata v0.1.10 Compiling want v0.3.0 Compiling tracing-log v0.1.2 Compiling ffi-support v0.4.4 Compiling unicode-normalization v0.1.19 Compiling aho-corasick v0.7.18 Compiling object v0.27.1 Compiling addr2line v0.17.0 Compiling quote v1.0.10 Compiling getrandom v0.2.3 Compiling num_cpus v1.13.0 Compiling mio v0.7.14 Compiling signal-hook-registry v1.4.0 Compiling time v0.1.44 Compiling core-foundation v0.9.2 Compiling security-framework-sys v2.4.2 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 matchers v0.0.1 Compiling idna v0.2.3 Compiling parking_lot v0.11.2 Compiling rand_core v0.6.3 Compiling dashmap v4.0.2 Compiling regex v1.5.4 Compiling security-framework v2.4.2 Compiling scheduled-thread-pool v0.2.5 Compiling digest v0.9.0 Compiling block-buffer v0.9.0 Compiling rand_chacha v0.3.1 Compiling url v2.2.2 Compiling chrono v0.4.19 Compiling r2d2 v0.8.9 Compiling sha-1 v0.9.8 Compiling crossbeam-deque v0.8.1 Compiling rand v0.8.4 Compiling crossbeam v0.8.1 Compiling fancy-regex v0.5.0 Compiling env_logger v0.8.4 Compiling tempfile v3.2.0 Compiling error-chain v0.12.0 Compiling color-eyre v0.5.11 Compiling flowy-ast v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-ast) Compiling darling_core v0.13.0 Compiling tracing-attributes v0.1.18 Compiling tokio-macros v1.6.0 Compiling diesel_derives v1.4.1 Compiling pin-project-internal v1.0.8 Compiling flowy-derive v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-derive) Compiling derive_more v0.99.16 Compiling strum_macros v0.21.1 Compiling thiserror-impl v1.0.30 Compiling serde_repr v0.1.7 Compiling derivative v2.2.0 Compiling async-stream-impl v0.3.2 Compiling darling_macro v0.13.0 Compiling darling v0.13.0 Compiling serde_with_macros v1.5.1 Compiling async-stream v0.3.2 Compiling tracing v0.1.29 Compiling pin-project v1.0.8 Compiling allo-isolate v0.1.11 Compiling tracing-futures v0.2.5 Compiling thiserror v1.0.30 Compiling diesel v1.4.8 Compiling futures-executor v0.3.17 Compiling futures v0.3.17 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 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/lib-ot) Compiling validator v0.12.0 Compiling tracing-subscriber v0.2.25 Compiling flowy-user-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-user-infra) Compiling http-body v0.4.4 Compiling tungstenite v0.14.0 Compiling tracing-appender v0.1.2 Compiling tracing-bunyan-formatter v0.2.6 Compiling lib-log v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-log) Compiling migrations_internals v1.4.1 Compiling migrations_macros v1.4.2 Compiling tokio-util v0.6.9 Compiling tokio-native-tls v0.3.0 Compiling flowy-document-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-document-infra) Compiling lib-dispatch v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-dispatch) Compiling tokio-tungstenite v0.15.0 Compiling h2 v0.3.7 Compiling diesel_migrations v1.4.0 Compiling lib-sqlite v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-sqlite) Compiling dart-notify v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/dart-notify) Compiling lib-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-infra) Compiling flowy-database v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-database) Compiling flowy-workspace-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-workspace-infra) Compiling hyper v0.14.15 Compiling hyper-tls v0.5.0 Compiling reqwest v0.11.6 Compiling backend-service v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/backend-service) Compiling lib-ws v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/lib-ws) Compiling flowy-document v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-document) Compiling flowy-user v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-user) error[E0554]: `#![feature]` may not be used on the stable release channel --> flowy-document/src/lib.rs:1:1 | 1 | #![feature(vecdeque_binary_search)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For more information about this error, try `rustc --explain E0554`. error: could not compile `flowy-document` due to previous error warning: 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. ```
Author
Owner

@Maksimka101 commented on GitHub (Nov 22, 2021):

@hexcola Could you help me again?)

<!-- gh-comment-id:975774835 --> @Maksimka101 commented on GitHub (Nov 22, 2021): @hexcola Could you help me again?)
Author
Owner

@RanKKI commented on GitHub (Nov 23, 2021):

Got same error here, however it's works if I run flutter run in the folder frontend/app_flowy

updated:
ok I see why, debugging in VS code will run pre-build task build_flowy_sdk, and flutter run in that folder will skip this task.

replacing one line from frontend/scripts/build_sdk.sh can solve it.

# cargo make --profile development-mac flowy-sdk-dev
rustup run nightly cargo make --profile development-mac flowy-sdk-dev
<!-- gh-comment-id:976448988 --> @RanKKI commented on GitHub (Nov 23, 2021): Got same error here, however it's works if I run `flutter run` in the folder `frontend/app_flowy` updated: ok I see why, debugging in VS code will run pre-build task `build_flowy_sdk`, and `flutter run` in that folder will skip this task. replacing one line from `frontend/scripts/build_sdk.sh` can solve it. ``` # cargo make --profile development-mac flowy-sdk-dev rustup run nightly cargo make --profile development-mac flowy-sdk-dev ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#39
No description provided.