clipboard-manager icon indicating copy to clipboard operation
clipboard-manager copied to clipboard

Build Error

Open daedaevibin opened this issue 7 months ago • 3 comments

Here is the output

~/clipboard-manager tags/0.1.0^0
❯ just build-release
cargo build --release
   Compiling sqlx v0.8.2
   Compiling tracing-journald v0.3.0
   Compiling directories v5.0.1
   Compiling derivative v2.2.0
   Compiling constcat v0.5.0
   Compiling mime v0.3.17
error: /home/dae/clipboard-manager/target/release/deps/libsqlx_macros-57a3b403ebb67682.so: undefined symbol: sqlite3_db_config
  --> /home/dae/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.2/src/lib.rs:58:1
   |
58 | pub extern crate sqlx_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved imports `self::encode::Encode`, `self::decode::Decode`, `super::Decode`, `super::Encode`, `super::FromRow`, `super::Type`
   --> /home/dae/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-0.8.2/src/lib.rs:127:9
    |
127 | pub use self::encode::Encode;
    |         ^^^^^^^^^^^^^^^^^^^^
...
138 | pub use self::decode::Decode;
    |         ^^^^^^^^^^^^^^^^^^^^
...
152 |     pub use super::Decode;
    |             ^^^^^^^^^^^^^
153 |     pub use super::Encode;
    |             ^^^^^^^^^^^^^
154 |     pub use super::Executor;
155 |     pub use super::FromRow;
    |             ^^^^^^^^^^^^^^
...
159 |     pub use super::Type;
    |             ^^^^^^^^^^^

For more information about this error, try `rustc --explain E0432`.
error: could not compile `sqlx` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: Recipe `build-release` failed on line 27 with exit code 101

daedaevibin avatar May 27 '25 18:05 daedaevibin

I assume you installed the required dependencies?

wiiznokes avatar May 27 '25 20:05 wiiznokes

I assume you installed the required dependencies?

Yes, plus the fact I am currently on CachyOS (Arch based) if it helps.

daedaevibin avatar May 27 '25 20:05 daedaevibin

With the same issue I added to CFLAGS -ffat-lto-objects and it compiled fine after that.

ZargEzey avatar Jun 06 '25 20:06 ZargEzey