[GH-ISSUE #7487] [Bug] Building from source error: could not compile flowy-database2 (lib) #3341

Closed
opened 2026-03-23 21:29:26 +00:00 by mirror · 5 comments
Owner

Originally created by @thornate on GitHub (Mar 9, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7487

Bug Description

Building on Debian (specifically Rasbperry Pi) for aarch64, I am following these instructions and got as far as the "Building the AppFlowy binary" step when it fails trying to build flowy-database2.

I use the following command:
cargo make --profile production-linux-aarch64 appflowy

The stdout is:

[cargo-make] INFO - cargo make 0.37.24
[cargo-make] INFO - 
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: appflowy
[cargo-make] INFO - Profile: production-linux-aarch64
[cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=production-linux-aarch64" "--makefile" "/home/nathan/AppFlowy/frontend/Makefile.toml" "appflowy"
[cargo-make][1] INFO - 
[cargo-make][1] INFO - Project: dart-ffi
[cargo-make][1] INFO - Build File: /home/nathan/AppFlowy/frontend/Makefile.toml
[cargo-make][1] INFO - Task: appflowy
[cargo-make][1] INFO - Profile: production-linux-aarch64
[cargo-make][1] INFO - Running Task: echo_env
-------- Env Parameters --------
CRATE_TYPE: cdylib
BUILD_FLAG: release
TARGET_OS: linux
RUST_COMPILE_TARGET: aarch64-unknown-linux-gnu
FEATURES: dart,openssl_vendored
PRODUCT_EXT:
APP_ENVIRONMENT: production
BUILD_ARCHS:
BUILD_VERSION:
/home/nathan/.pub-cache/bin/protoc-gen-dart
[cargo-make][1] INFO - Skipping Task: install_flutter_protobuf 
[cargo-make][1] INFO - Running Task: setup-crate-type
[cargo-make][1] INFO - Running Task: set-app-version
APP_VERSION: 0.8.6 
[cargo-make][1] INFO - Running Task: sdk-release-build
[cargo-make] INFO - Running Task: restore-crate-type
[cargo-make] ERROR - Task error detected, exit code: 105
[cargo-make] WARN - Build Failed.

The stderr is:
(note that the 'process didn't exit successfully' line is exceedingly long)

   Compiling flowy-error v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-error)
   Compiling flowy-notification v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-notification)
   Compiling flowy-storage v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-storage)
   Compiling flowy-user v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-user)
   Compiling flowy-folder v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-folder)
   Compiling flowy-ai v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-ai)
   Compiling flowy-document v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-document)
   Compiling flowy-database2 v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-database2)
   Compiling flowy-search v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-search)
   Compiling collab-integrate v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/collab-integrate)
   Compiling flowy-folder-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-folder-pub)
   Compiling flowy-storage-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-storage-pub)
   Compiling flowy-user-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-user-pub)
   Compiling flowy-search-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-search-pub)
   Compiling flowy-server-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-server-pub)
   Compiling flowy-ai-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-ai-pub)
   Compiling flowy-document-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-document-pub)
   Compiling flowy-database-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-database-pub)
   Compiling flowy-date v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-date)
   Compiling flowy-server v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-server)
error: could not compile `flowy-database2` (lib)

Caused by:
  process didn't exit successfully: `/home/nathan/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name flowy_database2 --edition=2021 flowy-database2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="dart"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("dart", "ts", "verbose_log"))' -C metadata=536b86cf8eb03adf -C extra-filename=-0b5bc577b87a3631 --out-dir /home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps --target aarch64-unknown-linux-gnu -C strip=debuginfo -L dependency=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps -L dependency=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps --extern anyhow=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libanyhow-905e9c83ee862250.rmeta --extern arc_swap=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libarc_swap-aef88eee9e224ae5.rmeta --extern async_stream=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libasync_stream-6c740681f99dc0b6.rmeta --extern async_trait=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libasync_trait-d792615da1435e79.so --extern bytes=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libbytes-f379586e837e6464.rmeta --extern chrono=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libchrono-1df914f3e41177e2.rmeta --extern chrono_tz=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libchrono_tz-acf0599042b07a11.rmeta --extern collab=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab-7c7880757cecc681.rlib --extern collab_database=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_database-0449a6aa2c02722f.rlib --extern collab_entity=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_entity-be9ca4fc40a8f3d5.rlib --extern collab_integrate=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_integrate.rlib --extern collab_plugins=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_plugins-f3608fd4dcf85f3a.rlib --extern csv=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcsv-0fe68fba8dbc4d6b.rmeta --extern dashmap=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libdashmap-41fbd5c21a8fe3c1.rmeta --extern fancy_regex=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libfancy_regex-5792873a30a1956b.rmeta --extern flowy_database_pub=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libflowy_database_pub-f09f931559a4a8d2.rmeta --extern flowy_derive=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libflowy_derive-c34e0a6f30e2b293.so --extern flowy_error=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libflowy_error.rlib --extern flowy_notification=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libflowy_notification.rlib --extern futures=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libfutures-3103fbb42c2b4684.rmeta --extern indexmap=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libindexmap-85c66b9fa908059c.rmeta --extern lazy_static=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liblazy_static-43e88ba2d2c0caed.rmeta --extern lib_dispatch=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liblib_dispatch.rlib --extern lib_infra=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liblib_infra.rlib --extern moka=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libmoka-3ef88b2bd365f9b9.rmeta --extern nanoid=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libnanoid-30a0d90cb22a6a12.rmeta --extern protobuf=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libprotobuf-82e949f1d9c7dec4.rmeta --extern rayon=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/librayon-4cd785aeb4a48c70.rmeta --extern rust_decimal=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/librust_decimal-9bae0ff5fa760984.rmeta --extern rusty_money=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/librusty_money-996763fe19a86870.rmeta --extern serde=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libserde-93b237ea5afbd20b.rmeta --extern serde_json=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libserde_json-3e0ecf1aab07fbd2.rmeta --extern serde_repr=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libserde_repr-66ba11161f37fef2.so --extern strum=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libstrum-9fe0bbe76df2edff.rmeta --extern strum_macros=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libstrum_macros-1b54b00dea16fce9.so --extern tokio=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libtokio-a9159ed441db1f98.rmeta --extern tokio_util=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libtokio_util-8b2c3891945c4417.rmeta --extern tracing=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libtracing-dafbde86af5baf8c.rmeta --extern url=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liburl-7025a454b4cb307d.rmeta --extern validator=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libvalidator-c5673a26286b69fe.rmeta -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/librocksdb-sys-91643ae92e7c4e9a/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/zstd-sys-26a3cbf8ceaeadd1/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/libsqlite3-sys-58b616cf89af52df/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/ring-b8b5d8c14ed50c21/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/openssl-sys-6244fc396b35c98d/out/openssl-build/install/lib -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/ring-814658503a3e676a/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/bzip2-sys-452372f038b0ff29/out/lib` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
Error while executing command, exit code: 101

How to Reproduce

Build for aarch64 on the Raspberry Pi 4 using the command:
cargo make --profile production-linux-aarch64 appflowy

Expected Behavior

Successful build

Operating System

Debian Linux v12 - 'Linux version 6.6.74+rpt-rpi-v8'

AppFlowy Version(s)

0.8.6

Screenshots

No response

Additional Context

I tried running the cargo make command with the -v flag but the output didn't have anything about flowy-database2 in it.

Originally created by @thornate on GitHub (Mar 9, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7487 ### Bug Description Building on Debian (specifically Rasbperry Pi) for aarch64, I am following [these instructions ](https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-linux) and got as far as the "Building the AppFlowy binary" step when it fails trying to build flowy-database2. I use the following command: `cargo make --profile production-linux-aarch64 appflowy` The stdout is: ``` [cargo-make] INFO - cargo make 0.37.24 [cargo-make] INFO - [cargo-make] INFO - Project: dart-ffi [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: appflowy [cargo-make] INFO - Profile: production-linux-aarch64 [cargo-make] INFO - Execute Command: "cargo" "make" "--disable-check-for-updates" "--no-on-error" "--loglevel=info" "--profile=production-linux-aarch64" "--makefile" "/home/nathan/AppFlowy/frontend/Makefile.toml" "appflowy" [cargo-make][1] INFO - [cargo-make][1] INFO - Project: dart-ffi [cargo-make][1] INFO - Build File: /home/nathan/AppFlowy/frontend/Makefile.toml [cargo-make][1] INFO - Task: appflowy [cargo-make][1] INFO - Profile: production-linux-aarch64 [cargo-make][1] INFO - Running Task: echo_env -------- Env Parameters -------- CRATE_TYPE: cdylib BUILD_FLAG: release TARGET_OS: linux RUST_COMPILE_TARGET: aarch64-unknown-linux-gnu FEATURES: dart,openssl_vendored PRODUCT_EXT: APP_ENVIRONMENT: production BUILD_ARCHS: BUILD_VERSION: /home/nathan/.pub-cache/bin/protoc-gen-dart [cargo-make][1] INFO - Skipping Task: install_flutter_protobuf [cargo-make][1] INFO - Running Task: setup-crate-type [cargo-make][1] INFO - Running Task: set-app-version APP_VERSION: 0.8.6 [cargo-make][1] INFO - Running Task: sdk-release-build [cargo-make] INFO - Running Task: restore-crate-type [cargo-make] ERROR - Task error detected, exit code: 105 [cargo-make] WARN - Build Failed. ``` The stderr is: (note that the 'process didn't exit successfully' line is exceedingly long) ``` Compiling flowy-error v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-error) Compiling flowy-notification v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-notification) Compiling flowy-storage v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-storage) Compiling flowy-user v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-user) Compiling flowy-folder v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-folder) Compiling flowy-ai v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-ai) Compiling flowy-document v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-document) Compiling flowy-database2 v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-database2) Compiling flowy-search v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-search) Compiling collab-integrate v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/collab-integrate) Compiling flowy-folder-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-folder-pub) Compiling flowy-storage-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-storage-pub) Compiling flowy-user-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-user-pub) Compiling flowy-search-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-search-pub) Compiling flowy-server-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-server-pub) Compiling flowy-ai-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-ai-pub) Compiling flowy-document-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-document-pub) Compiling flowy-database-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-database-pub) Compiling flowy-date v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-date) Compiling flowy-server v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-server) error: could not compile `flowy-database2` (lib) Caused by: process didn't exit successfully: `/home/nathan/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name flowy_database2 --edition=2021 flowy-database2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="dart"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("dart", "ts", "verbose_log"))' -C metadata=536b86cf8eb03adf -C extra-filename=-0b5bc577b87a3631 --out-dir /home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps --target aarch64-unknown-linux-gnu -C strip=debuginfo -L dependency=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps -L dependency=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps --extern anyhow=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libanyhow-905e9c83ee862250.rmeta --extern arc_swap=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libarc_swap-aef88eee9e224ae5.rmeta --extern async_stream=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libasync_stream-6c740681f99dc0b6.rmeta --extern async_trait=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libasync_trait-d792615da1435e79.so --extern bytes=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libbytes-f379586e837e6464.rmeta --extern chrono=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libchrono-1df914f3e41177e2.rmeta --extern chrono_tz=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libchrono_tz-acf0599042b07a11.rmeta --extern collab=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab-7c7880757cecc681.rlib --extern collab_database=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_database-0449a6aa2c02722f.rlib --extern collab_entity=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_entity-be9ca4fc40a8f3d5.rlib --extern collab_integrate=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_integrate.rlib --extern collab_plugins=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcollab_plugins-f3608fd4dcf85f3a.rlib --extern csv=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libcsv-0fe68fba8dbc4d6b.rmeta --extern dashmap=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libdashmap-41fbd5c21a8fe3c1.rmeta --extern fancy_regex=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libfancy_regex-5792873a30a1956b.rmeta --extern flowy_database_pub=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libflowy_database_pub-f09f931559a4a8d2.rmeta --extern flowy_derive=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libflowy_derive-c34e0a6f30e2b293.so --extern flowy_error=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libflowy_error.rlib --extern flowy_notification=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libflowy_notification.rlib --extern futures=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libfutures-3103fbb42c2b4684.rmeta --extern indexmap=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libindexmap-85c66b9fa908059c.rmeta --extern lazy_static=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liblazy_static-43e88ba2d2c0caed.rmeta --extern lib_dispatch=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liblib_dispatch.rlib --extern lib_infra=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liblib_infra.rlib --extern moka=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libmoka-3ef88b2bd365f9b9.rmeta --extern nanoid=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libnanoid-30a0d90cb22a6a12.rmeta --extern protobuf=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libprotobuf-82e949f1d9c7dec4.rmeta --extern rayon=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/librayon-4cd785aeb4a48c70.rmeta --extern rust_decimal=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/librust_decimal-9bae0ff5fa760984.rmeta --extern rusty_money=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/librusty_money-996763fe19a86870.rmeta --extern serde=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libserde-93b237ea5afbd20b.rmeta --extern serde_json=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libserde_json-3e0ecf1aab07fbd2.rmeta --extern serde_repr=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libserde_repr-66ba11161f37fef2.so --extern strum=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libstrum-9fe0bbe76df2edff.rmeta --extern strum_macros=/home/nathan/AppFlowy/frontend/rust-lib/target/release/deps/libstrum_macros-1b54b00dea16fce9.so --extern tokio=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libtokio-a9159ed441db1f98.rmeta --extern tokio_util=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libtokio_util-8b2c3891945c4417.rmeta --extern tracing=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libtracing-dafbde86af5baf8c.rmeta --extern url=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/liburl-7025a454b4cb307d.rmeta --extern validator=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/deps/libvalidator-c5673a26286b69fe.rmeta -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/librocksdb-sys-91643ae92e7c4e9a/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/zstd-sys-26a3cbf8ceaeadd1/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/libsqlite3-sys-58b616cf89af52df/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/ring-b8b5d8c14ed50c21/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/openssl-sys-6244fc396b35c98d/out/openssl-build/install/lib -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/ring-814658503a3e676a/out -L native=/home/nathan/AppFlowy/frontend/rust-lib/target/aarch64-unknown-linux-gnu/release/build/bzip2-sys-452372f038b0ff29/out/lib` (signal: 9, SIGKILL: kill) warning: build failed, waiting for other jobs to finish... Error while executing command, exit code: 101 ``` ### How to Reproduce Build for aarch64 on the Raspberry Pi 4 using the command: ` cargo make --profile production-linux-aarch64 appflowy` ### Expected Behavior Successful build ### Operating System Debian Linux v12 - 'Linux version 6.6.74+rpt-rpi-v8' ### AppFlowy Version(s) 0.8.6 ### Screenshots _No response_ ### Additional Context I tried running the `cargo make` command with the `-v` flag but the output didn't have anything about flowy-database2 in it.
mirror 2026-03-23 21:29:26 +00:00
Author
Owner

@LucasXu0 commented on GitHub (Mar 10, 2025):

Hi @thornate, we haven't verified the Linux build on aarch64 before. Can you execute the cargo build command in the rust-lib directory to check if there are more specific error logs?

Image
<!-- gh-comment-id:2709410026 --> @LucasXu0 commented on GitHub (Mar 10, 2025): Hi @thornate, we haven't verified the Linux build on aarch64 before. Can you execute the cargo build command in the rust-lib directory to check if there are more specific error logs? <img width="529" alt="Image" src="https://github.com/user-attachments/assets/cd29f2e9-213e-4222-a445-4ecccc32eda6" />
Author
Owner

@thornate commented on GitHub (Mar 11, 2025):

@LucasXu0 It still failed. Here are the full logs.

I think the most important part is:

Compiling flowy-database-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-database-pub)
error: linking with `cc` failed: exit status: 1

From googling it sounds like that error means there's a missing library, but I don't know how to tell what I need to install.

<!-- gh-comment-id:2712883107 --> @thornate commented on GitHub (Mar 11, 2025): @LucasXu0 It still failed. [Here are the full logs](https://pastebin.com/zCFqrKQ8). I think the most important part is: ``` Compiling flowy-database-pub v0.1.0 (/home/nathan/AppFlowy/frontend/rust-lib/flowy-database-pub) error: linking with `cc` failed: exit status: 1 ``` From googling it sounds like that error means there's a missing library, but I don't know how to tell what I need to install.
Author
Owner

@LucasXu0 commented on GitHub (Mar 13, 2025):

@thornate I did some research. This may be caused by your memory limit. May I know your CPU model and memory size?

collect2: fatal error: ld terminated with signal 9

The Killed message means you are out of memory. Check your limits by ulimit -a or available memory by free -m, then try to increase your stack size, e.g. ulimit -s 82768 or even more.

<!-- gh-comment-id:2719640526 --> @LucasXu0 commented on GitHub (Mar 13, 2025): @thornate I did some research. This may be caused by your memory limit. May I know your CPU model and memory size? ``` collect2: fatal error: ld terminated with signal 9 ``` > The Killed message means you are out of memory. Check your limits by ulimit -a or available memory by free -m, then try to increase your stack size, e.g. ulimit -s 82768 or even more.
Author
Owner

@thornate commented on GitHub (Mar 17, 2025):

May I know your CPU model and memory size?

@LucasXu0 It's an ARM Cortext-A72 with ~3.8GB of memory. I upped the limit to 1GB and it ran for much longer than it did previously, then ultimately failed. The first time it suggested rerunning with debug enabled so I reran and this is the stdout from that run and this is the stderr from the second run.

<!-- gh-comment-id:2728334241 --> @thornate commented on GitHub (Mar 17, 2025): > May I know your CPU model and memory size? @LucasXu0 It's an ARM Cortext-A72 with ~3.8GB of memory. I upped the limit to 1GB and it ran for much longer than it did previously, then ultimately failed. The first time it suggested rerunning with debug enabled so I reran and [this is the stdout ](https://pastebin.com/YpszDrZU)from that run and [this is the stderr](https://pastebin.com/k89CcuXp) from the second run.
Author
Owner

@thornate commented on GitHub (Mar 29, 2025):

@LucasXu0 I just wanted to check in on whether you'd had a chance to see this and if you had any insights?

<!-- gh-comment-id:2763242328 --> @thornate commented on GitHub (Mar 29, 2025): @LucasXu0 I just wanted to check in on whether you'd had a chance to see this and if you had any insights?
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#3341
No description provided.