Build issue (0.9.4 / 1.0.0): fails to build when lmdb is disabled #800

Closed
opened 2024-04-09 10:12:26 +00:00 by faust · 1 comment
Contributor

Hi!
garage 0.9.4 refuse to build with the following:

cargo build \
  --no-default-features \
  --features sqlite,system-libs,metrics \
  --release

[...]

error[E0609]: no field `lmdb` on type `OpenDbOpt`
  --> src/garage/cli/convert_db.rs:55:31
   |
55 |         lmdb_map_size: args.db_open.lmdb.map_size.map(|x| x.as_u64() as usize),
   |                                     ^^^^ unknown field

For more information about this error, try `rustc --explain E0609`.
error: could not compile `garage` (bin "garage") due to 1 previous error
~/garage tags/v0.9.4
❯ rustc --explain E0609

Attempted to access a nonexistent field in a struct.

Erroneous code example:

struct StructWithFields {
    x: u32,
}

let s = StructWithFields { x: 0 };
println!("{}", s.foo); // error: no field `foo` on type `StructWithFields`

To fix this error, check that you didn't misspell the field's name or that the field actually
exists. Example:

struct StructWithFields {
    x: u32,
}

let s = StructWithFields { x: 0 };
println!("{}", s.x); // ok!

I am not sure why since I disabled lmdb.

Setup:

❯ rustc --version 
rustc 1.76.0 (07dca489a 2024-02-04) (Alpine Linux 1.76.0-r0)
Hi! garage 0.9.4 refuse to build with the following: ``` cargo build \ --no-default-features \ --features sqlite,system-libs,metrics \ --release [...] error[E0609]: no field `lmdb` on type `OpenDbOpt` --> src/garage/cli/convert_db.rs:55:31 | 55 | lmdb_map_size: args.db_open.lmdb.map_size.map(|x| x.as_u64() as usize), | ^^^^ unknown field For more information about this error, try `rustc --explain E0609`. error: could not compile `garage` (bin "garage") due to 1 previous error ``` ``` ~/garage tags/v0.9.4 ❯ rustc --explain E0609 Attempted to access a nonexistent field in a struct. Erroneous code example: struct StructWithFields { x: u32, } let s = StructWithFields { x: 0 }; println!("{}", s.foo); // error: no field `foo` on type `StructWithFields` To fix this error, check that you didn't misspell the field's name or that the field actually exists. Example: struct StructWithFields { x: u32, } let s = StructWithFields { x: 0 }; println!("{}", s.x); // ok! ``` I am not sure why since I disabled `lmdb`. Setup: ``` ❯ rustc --version rustc 1.76.0 (07dca489a 2024-02-04) (Alpine Linux 1.76.0-r0) ```
Author
Contributor

Same thing with the v1.0.0 release.

Same thing with the `v1.0.0` release.
faust changed title from Build issue (0.9.4) to Build issue (0.9.4 / 1.0.0) 2024-04-11 16:30:07 +00:00
lx changed title from Build issue (0.9.4 / 1.0.0) to Build issue (0.9.4 / 1.0.0): fails to build when lmdb is disabled 2024-05-24 17:13:48 +00:00
lx added the
kind
wrong-behavior
label 2024-05-24 17:13:52 +00:00
lx added this to the v1.1 milestone 2024-05-24 17:13:55 +00:00
lx closed this issue 2024-08-25 10:00:41 +00:00
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: Deuxfleurs/garage#800
No description provided.