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

Compilation error due to addr_eq #1

Closed
adrienluitot opened this issue Nov 23, 2024 · 1 comment
Closed

Compilation error due to addr_eq #1

adrienluitot opened this issue Nov 23, 2024 · 1 comment

Comments

@adrienluitot
Copy link

Hello!
I've seen you worked on porting OpenVAF to LLVM-18, that's very cool!
I cloned the "llvm18reloaded" branch, I'm not sure it is very stable though, I didn't know which one to take.

When I try to compile, I have a problem with the preprocessorlib.
I have this error:

error[E0658]: use of unstable library feature 'ptr_addr_eq'
  --> openvaf/preprocessor/src/scoped_arc_arena.rs:44:40
   |
44 |             if !sources.iter().any(|x| std::ptr::addr_eq(x.as_ptr(), contents.as_ptr())) {
   |                                        ^^^^^^^^^^^^^^^^^
   |
   = note: see issue #116324 <https://github.com/rust-lang/rust/issues/116324> for more information

I don't know a lot about rust, and don't really have the time to work on a fix.
Do you know a work around for this? Or should I use a different branch?

I think OpenVAF is a very good tool, and it should not be abandoned, so I'm very happy to see someone working on it.

By the way, for my environment:
OS: Ubuntu 24.04 (arm64 version -> used on Raspberry Pi 4)
Rust version: rustc 1.75.0 (82e1608df 2023-12-21)

@adrienluitot
Copy link
Author

I actually found a solution by seeing the date of my rustc version, but I decided to leave the issue in case anyone has the same problem.

I saw the related issue dated from end of 2023, as my rustc version.
-> So I installed a more recent version of rustc (1.80) and there is no more problem with preprocessor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant