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

tests fail on windows due to long path #2

Open
goertzenator opened this issue Mar 9, 2017 · 0 comments
Open

tests fail on windows due to long path #2

goertzenator opened this issue Mar 9, 2017 · 0 comments

Comments

@goertzenator
Copy link
Owner

The test suite fails on Windows because the Rust compiler cannot handle paths longer than 260 characters. Erlang common test and rebar add a lot of length to the path, so this issue is unlikely to arise in normal use of the rebar3_rust plugin. Ref rust-lang/rust#32689

Excerpt of common test log:

 Downloading erlang_nif-sys v0.4.2

 Downloading libc v0.2.20

   Compiling libc v0.2.20

     Running `rustc --crate-name libc C:\Users\home\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.20\src\lib.rs --crate-type lib -g --cfg "feature=\"default\"" --cfg "feature=\"use_std\"" -C metadata=83c2bd88b43ecde3 -C extra-filename=-83c2bd88b43ecde3 --out-dir c:\Users\home\rebar3_rust\_build\test\logs\ct_run.nonode@nohost.2017-03-09_14.13.19\rebar3_rust.ct.logs\run.2017-03-09_14.13.19\log_private\test_app\crates\nifsys\target\debug\deps --emit=dep-info,link -L dependency=c:\Users\home\rebar3_rust\_build\test\logs\ct_run.nonode@nohost.2017-03-09_14.13.19\rebar3_rust.ct.logs\run.2017-03-09_14.13.19\log_private\test_app\crates\nifsys\target\debug\deps --cap-lints allow`

   Compiling erlang_nif-sys v0.4.2

     Running `rustc --crate-name build_script_build C:\Users\home\.cargo\registry\src\github.com-1ecc6299db9ec823\erlang_nif-sys-0.4.2\build.rs --crate-type bin -g -C metadata=2829a1e81beb4d26 -C extra-filename=-2829a1e81beb4d26 --out-dir c:\Users\home\rebar3_rust\_build\test\logs\ct_run.nonode@nohost.2017-03-09_14.13.19\rebar3_rust.ct.logs\run.2017-03-09_14.13.19\log_private\test_app\crates\nifsys\target\debug\build\erlang_nif-sys-2829a1e81beb4d26 --emit=dep-info,link -L dependency=c:\Users\home\rebar3_rust\_build\test\logs\ct_run.nonode@nohost.2017-03-09_14.13.19\rebar3_rust.ct.logs\run.2017-03-09_14.13.19\log_private\test_app\crates\nifsys\target\debug\deps --extern libc=c:\Users\home\rebar3_rust\_build\test\logs\ct_run.nonode@nohost.2017-03-09_14.13.19\rebar3_rust.ct.logs\run.2017-03-09_14.13.19\log_private\test_app\crates\nifsys\target\debug\deps\liblibc-83c2bd88b43ecde3.rlib --cap-lints allow`

error: failed to remove c:\Users\home\rebar3_rust\_build\test\logs\ct_run.nonode@nohost.2017-03-09_14.13.19\rebar3_rust.ct.logs\run.2017-03-09_14.13.19\log_private\test_app\crates\nifsys\target\debug\build\erlang_nif-sys-2829a1e81beb4d26\build_script_build-2829a1e81beb4d26.metadata.o: The system cannot find the path specified. (os error 3)



error: could not rename dep info: "c:\\Users\\home\\rebar3_rust\\_build\\test\\logs\\ct_run.nonode@nohost.2017-03-09_14.13.19\\rebar3_rust.ct.logs\\run.2017-03-09_14.13.19\\log_private\\test_app\\crates\\nifsys\\target\\debug\\build\\erlang_nif-sys-2829a1e81beb4d26\\build_script_build-2829a1e81beb4d26.d"



Caused by:

  The system cannot find the path specified. (os error 3)
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