Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Compile error in release flag. #3939

Closed
2 tasks done
Vignesh1-art opened this issue Apr 24, 2024 · 3 comments · Fixed by #3943
Closed
2 tasks done

Bug: Compile error in release flag. #3939

Vignesh1-art opened this issue Apr 24, 2024 · 3 comments · Fixed by #3943
Labels
bug Something isn't working

Comments

@Vignesh1-art
Copy link

Vignesh1-art commented Apr 24, 2024

Describe the bug

When trying to build with release flag with following flag
cargo build --release --locked --target aarch64-apple-darwin, I'm getting compile error.
While building without --release flag works.

I get error following error message:

cargo build --release --locked --target aarch64-apple-darwin
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
   Compiling surrealdb-core v2.0.0-1.5.0 (/User/surrealdb/core)
error[E0425]: cannot find value `k` in this scope
   --> core/src/kvs/lq_cf.rs:44:44
    |
44  |         if self.local_live_queries.contains_key(&k) {
    |                                                  ^ help: a tuple variant with a similar name exists: `Ok`
    |
   ::: /Users/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:506:5
    |
506 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     -- similarly named tuple variant `Ok` defined here

error[E0425]: cannot find value `k` in this scope
   --> core/src/kvs/lq_cf.rs:48:18
    |
48  |         let selector = k.selector.clone();
    |                        ^ help: a tuple variant with a similar name exists: `Ok`
    |
   ::: /Users/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:506:5
    |
506 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     -- similarly named tuple variant `Ok` defined here

error[E0425]: cannot find value `k` in this scope
   --> core/src/kvs/lq_cf.rs:49:34
    |
49  |         self.local_live_queries.insert(k, v);
    |                                        ^ help: a tuple variant with a similar name exists: `Ok`
    |
   ::: /Users/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:506:5
    |
506 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     -- similarly named tuple variant `Ok` defined here

For more information about this error, try `rustc --explain E0425`.
error: could not compile `surrealdb-core` (lib) due to 3 previous errors

Steps to reproduce

Try to build with release flag.

Expected behaviour

Should get build without compile error in release mode.

SurrealDB version

SurrealDB command-line interface and server 1.5.0+20240424.8172753a for macos on aarch64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Vignesh1-art Vignesh1-art added bug Something isn't working triage This issue is new labels Apr 24, 2024
@DelSkayn
Copy link
Member

Could you supply the error message that happens when you build surrealdb?

Without the error message it will be hard to diagnose the error.

@DelSkayn DelSkayn added question Further information is requested and removed triage This issue is new labels Apr 24, 2024
@Vignesh1-art
Copy link
Author

Could you supply the error message that happens when you build surrealdb?

Without the error message it will be hard to diagnose the error.
I have posted the error message I get

@DelSkayn DelSkayn removed the question Further information is requested label Apr 25, 2024
@DelSkayn DelSkayn mentioned this issue Apr 25, 2024
1 task
@DelSkayn
Copy link
Member

Thanks! Found the issue. It will be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants