You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build my Anchor project, I'm encountering consistent errors related to the typenum crate. The build process is unable to read the "op.rs" file, resulting in multiple errors.
Error message:
error: couldn't read \?\F:\scaff\journal\anchor\target\release\build\typenum-b4aec6864503f063\out/op.rs: The filename, directory name, or volume label syntax is incorrect. (os error 123)
--> C:\Users\Om Chillure.cargo\registry\src\index.crates.io-6f17d22bba15001f\typenum-1.17.0\src\lib.rs:72:5
|
72 | include!(concat!(env!("OUT_DIR"), "/op.rs"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Steps
Create a new Anchor project
Add necessary dependencies
Run anchor build
Possible Solution(s)
No response
Notes
This error occurs consistently across multiple builds.
I've tried cleaning the project and rebuilding, but the issue persists.
The error seems to be related to file paths, possibly due to Windows path length limitations or permissions issues.
Problem
When attempting to build my Anchor project, I'm encountering consistent errors related to the typenum crate. The build process is unable to read the "op.rs" file, resulting in multiple errors.
Steps
anchor build
Possible Solution(s)
No response
Notes
Version
The text was updated successfully, but these errors were encountered: