-
Notifications
You must be signed in to change notification settings - Fork 315
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
MSYS2 build failed: file too small to be an archive #426
Comments
same problem while compiling to i686 target:
build command:
|
@abcfy2 Something went wrong downloading the pre-built rusty_v8.lib. Try to remove the directory |
@v3470 i686 windows targets are not supported and never will be supported. Build x64 instead. Reasons:
|
@abcfy2 I'm closing this issue, feel free to open a new one if this remains a problem. |
Still not fixed. error: failed to add native library C:\Users\abcfy\AppData\Local\Temp\cargo-installBJ9Giy\release\gn_out\obj\rusty_v8.lib: file too small to be an archive
error: aborting due to previous error
error: could not compile `rusty_v8`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v1.3.1`, intermediate artifacts can be found at `C:\Users\abcfy\AppData\Local\Temp\cargo-installBJ9Giy`
Caused by:
build failed And: cat /c/Users/abcfy/AppData/Local/Temp/cargo-installBJ9Giy/release/gn_out/obj/rusty_v8.lib
Not Found |
Compiling tracing-futures v0.2.4
Running `rustc --crate-name tracing_futures --edition=2018 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\tracing-futures-0.2.4\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="pin-project"' --cfg 'feature="std-future"' -C metadata=1f1e0c5653c4eefa -C extra-filename=-1f1e0c5653c4eefa --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'pin_project=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libpin_project-947e80dd813bbea2.rmeta' --extern 'tracing=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libtracing-7b1fe942143b4522.rmeta' --cap-lints allow`
Running `rustc --crate-name rusty_v8 --edition=2018 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.9.1\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=3a27730a96a1c863 -C extra-filename=-3a27730a96a1c863 --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'bitflags=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libbitflags-652fbca4a9a2b259.rmeta' --extern 'lazy_static=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblazy_static-a7bdb4faba14fa47.rmeta' --extern 'libc=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblibc-5a96e0dad9755a00.rmeta' --cap-lints allow -L 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\gn_out\obj' -l static=rusty_v8 -l dylib=winmm -l dylib=dbghelp`
Running `rustc --crate-name serde 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\serde-1.0.115\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=ac56e72b4cfa681a -C extra-filename=-ac56e72b4cfa681a --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'serde_derive=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\serde_derive-c3ea5127e7031b7e.dll' --cap-lints allow --cfg ops_bound --cfg core_reverse --cfg de_boxed_c_str --cfg de_boxed_path --cfg de_rc_dst --cfg core_duration --cfg integer128 --cfg range_inclusive --cfg num_nonzero --cfg core_try_from --cfg num_nonzero_signed --cfg std_atomic64 --cfg std_atomic`
error: failed to add native library C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\gn_out\obj\rusty_v8.lib: file too small to be an archive
error: aborting due to previous error
error: could not compile `rusty_v8`.
Caused by:
process didn't exit successfully: `rustc --crate-name rusty_v8 --edition=2018 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.9.1\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=3a27730a96a1c863 -C extra-filename=-3a27730a96a1c863 --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'bitflags=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libbitflags-652fbca4a9a2b259.rmeta' --extern 'lazy_static=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblazy_static-a7bdb4faba14fa47.rmeta' --extern 'libc=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblibc-5a96e0dad9755a00.rmeta' --cap-lints allow -L 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\gn_out\obj' -l static=rusty_v8 -l dylib=winmm -l dylib=dbghelp` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v1.3.3`, intermediate artifacts can be found at `C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y`
Caused by:
build failed
|
Does it work when you don't use msys2 and just do it the recommended way?
…On Mon, 7 Sep 2020 at 03:58 Feng Yu ***@***.***> wrote:
Compiling tracing-futures v0.2.4
Running `rustc --crate-name tracing_futures --edition=2018 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\tracing-futures-0.2.4\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="pin-project"' --cfg 'feature="std-future"' -C metadata=1f1e0c5653c4eefa -C extra-filename=-1f1e0c5653c4eefa --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'pin_project=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libpin_project-947e80dd813bbea2.rmeta' --extern 'tracing=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libtracing-7b1fe942143b4522.rmeta' --cap-lints allow`
Running `rustc --crate-name rusty_v8 --edition=2018 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.9.1\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=3a27730a96a1c863 -C extra-filename=-3a27730a96a1c863 --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'bitflags=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libbitflags-652fbca4a9a2b259.rmeta' --extern 'lazy_static=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblazy_static-a7bdb4faba14fa47.rmeta' --extern 'libc=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblibc-5a96e0dad9755a00.rmeta' --cap-lints allow -L 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\gn_out\obj' -l static=rusty_v8 -l dylib=winmm -l dylib=dbghelp`
Running `rustc --crate-name serde 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\serde-1.0.115\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=ac56e72b4cfa681a -C extra-filename=-ac56e72b4cfa681a --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'serde_derive=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\serde_derive-c3ea5127e7031b7e.dll' --cap-lints allow --cfg ops_bound --cfg core_reverse --cfg de_boxed_c_str --cfg de_boxed_path --cfg de_rc_dst --cfg core_duration --cfg integer128 --cfg range_inclusive --cfg num_nonzero --cfg core_try_from --cfg num_nonzero_signed --cfg std_atomic64 --cfg std_atomic`
error: failed to add native library C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\gn_out\obj\rusty_v8.lib: file too small to be an archive
error: aborting due to previous error
error: could not compile `rusty_v8`.
Caused by:
process didn't exit successfully: `rustc --crate-name rusty_v8 --edition=2018 'C:\Users\abcfy\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.9.1\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=3a27730a96a1c863 -C extra-filename=-3a27730a96a1c863 --out-dir 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' -L 'dependency=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps' --extern 'bitflags=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\libbitflags-652fbca4a9a2b259.rmeta' --extern 'lazy_static=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblazy_static-a7bdb4faba14fa47.rmeta' --extern 'libc=C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\deps\liblibc-5a96e0dad9755a00.rmeta' --cap-lints allow -L 'C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y\release\gn_out\obj' -l static=rusty_v8 -l dylib=winmm -l dylib=dbghelp` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v1.3.3`, intermediate artifacts can be found at `C:\Users\abcfy\AppData\Local\Temp\cargo-installJipJ7Y`
Caused by:
build failed
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#426 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABVJEIUWNBH5IFIKUBF7BTSEQ42XANCNFSM4PIRDRZQ>
.
|
Install from recommended way is working: rustup show
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\abcfy\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.46.0 (04488afe3 2020-08-24) Seems that |
@piscisaureus Hello, I am now using this project to build an experimental program, first thank you very much. However, I need to build 32-bit products (i686-pc-windows-msvc), I want to know if I use the nightly Rust, is it possible to build successfully (because you said "stable rust does not support the "thiscall" calling convention"), Can you give me some guidance or help? |
While I agree that stable Rust doesn't support the "syscall" calling convention, I disagree on i686 being dead. Many people rely on old hardware because new hardware can get quite expensive on some countries, which lead them to not be capable of running some software because devs tend to have higher specs and believe some tech is "dead". I understand the reason for Deno not being able to run on i686, but saying it is dead is not a good argument. But again, not criticizing the decision, I understand not supporting i686 because it can get very tricky. |
Our hand is forced here by V8, it doesn't support i686 (i.e., x86 without SSE2.) x86 with SSE2 still works (for now) but you probably can't build it natively anymore (takes too much memory to link) and cross-compiling V8 is a big hassle. I don't think there's a big enough user base anymore to make it a worthwhile cost/benefit tradeoff. Architecture support is not a trivial undertaking with V8. |
Windows 10 x64 using MSYS2.
The text was updated successfully, but these errors were encountered: