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

Path too long on windows #1083

Closed
cokeBeer opened this issue Feb 18, 2023 · 2 comments
Closed

Path too long on windows #1083

cokeBeer opened this issue Feb 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@cokeBeer
Copy link

cokeBeer commented Feb 18, 2023

Describe the bug
As mentioned in #1059 , libafl 0.9.0 has a problem. So I tried to use a specific rev like 7ed1ac9. However, when I ran cargo build on my windows 10 system, I got a new error.

To Reproduce
Steps to reproduce the behavior:

  1. a rev in cargo.toml, like libafl = { git = "https://github.com/AFLplusplus/LibAFL.git", rev = "7ed1ac9" }
  2. cargo build

Expected behavior
success

Screen output/Screenshots
image

@cokeBeer cokeBeer added the bug Something isn't working label Feb 18, 2023
@andreafioraldi
Copy link
Member

Hey @cokeBeer , this is not a LibAFL issue, but a cargo issue rust-lang/cargo#9770

As a workaround, you can enable long paths https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

@cokeBeer
Copy link
Author

@andreafioraldi I have known this before but it does not work well.
How I solve this problem in the end:
First change the reg as it mentioned in https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
Then run this in your terminal

git config --system core.longpaths true

Then everything is ok

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

No branches or pull requests

2 participants