Build issue (0.9.4 / 1.0.0) #800

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

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

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
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
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.