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

Debian 10 cargo build fails. #8385

Closed
Nastradoomus opened this issue Nov 14, 2020 · 6 comments
Closed

Debian 10 cargo build fails. #8385

Nastradoomus opened this issue Nov 14, 2020 · 6 comments

Comments

@Nastradoomus
Copy link

Nastradoomus commented Nov 14, 2020

Debian 10

Linux 4.19.0-12-amd64 x86_64

rustc 1.47.0 (18bf6b4f0 2020-10-07)

cargo install deno --verbose

...
Compiling warp v0.2.5
Running rustc --crate-name warp --edition=2018 /home/manne/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/warp-0.2.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg feature="default" --cfg feature="multipart" --cfg feature="tls" --cfg feature="tokio-rustls" --cfg feature="tokio-tungstenite" --cfg feature="websocket" -C metadata=6188375bfe6ee2ca -C extra-filename=-6188375bfe6ee2ca --out-dir /tmp/cargo-installNENUxV/release/deps -L dependency=/tmp/cargo-installNENUxV/release/deps --extern bytes=/tmp/cargo-installNENUxV/release/deps/libbytes-721fbdc09f3a529f.rmeta --extern futures=/tmp/cargo-installNENUxV/release/deps/libfutures-247002804f2bf3d5.rmeta --extern headers=/tmp/cargo-installNENUxV/release/deps/libheaders-dcd0c7083ba04c08.rmeta --extern http=/tmp/cargo-installNENUxV/release/deps/libhttp-52071efac93a9dfa.rmeta --extern hyper=/tmp/cargo-installNENUxV/release/deps/libhyper-93a25bcd3caaa9f1.rmeta --extern log=/tmp/cargo-installNENUxV/release/deps/liblog-e72264b4878e7043.rmeta --extern mime=/tmp/cargo-installNENUxV/release/deps/libmime-e3a0a3170a46bea5.rmeta --extern mime_guess=/tmp/cargo-installNENUxV/release/deps/libmime_guess-fb5a7eb0e0c45c25.rmeta --extern multipart=/tmp/cargo-installNENUxV/release/deps/libmultipart-0ce983473405bad3.rmeta --extern pin_project=/tmp/cargo-installNENUxV/release/deps/libpin_project-fa020324454d53db.rmeta --extern scoped_tls=/tmp/cargo-installNENUxV/release/deps/libscoped_tls-798740bf37a4c26a.rmeta --extern serde=/tmp/cargo-installNENUxV/release/deps/libserde-0a173aa53f1bec5a.rmeta --extern serde_json=/tmp/cargo-installNENUxV/release/deps/libserde_json-2540cc0a9bf61b39.rmeta --extern serde_urlencoded=/tmp/cargo-installNENUxV/release/deps/libserde_urlencoded-178f38b26bb2f8b5.rmeta --extern tokio=/tmp/cargo-installNENUxV/release/deps/libtokio-2cef974a52c45e1c.rmeta --extern tokio_rustls=/tmp/cargo-installNENUxV/release/deps/libtokio_rustls-bdc3ed8910acbc62.rmeta --extern tokio_tungstenite=/tmp/cargo-installNENUxV/release/deps/libtokio_tungstenite-a3ea34785dd09ea4.rmeta --extern tower_service=/tmp/cargo-installNENUxV/release/deps/libtower_service-fb0fe2d23ed2a8bc.rmeta --extern tracing=/tmp/cargo-installNENUxV/release/deps/libtracing-5d31a2b0d394c0ed.rmeta --extern tracing_futures=/tmp/cargo-installNENUxV/release/deps/libtracing_futures-82856396df4b9099.rmeta --extern urlencoding=/tmp/cargo-installNENUxV/release/deps/liburlencoding-47c7bbce209f594e.rmeta --cap-lints allow -L native=/tmp/cargo-installNENUxV/release/build/ring-b58eab56701eef45/out
error: failed to build archive: bad archive: truncated or malformed archive (offset to next archive member past the end of the archive after member code-generator-x64.o)

error: aborting due to previous error

error: could not compile rusty_v8.
...

Not a guru so please ask for more information. Debian buster fresh install with KDE Plasma. Building from source just for fun so this is not an issue for me but i thought that you might want to know more about the this...

@Nastradoomus
Copy link
Author

Can't reproduce on Linux 4.19.0-9-amd64 x86_64 with another computer so maybe close?

@lucacasonato
Copy link
Member

Can you run cargo clean -p rusty_v8, and remove target/{debug,release]/gn_out?

@Nastradoomus
Copy link
Author

Didn't do anything...

I noticed that it fails every time with a different file:

error: failed to build archive: bad archive: truncated or malformed archive (offset to next archive member past the end of the archive after member log.o)

error: failed to build archive: bad archive: truncated or malformed archive (offset to next archive member past the end of the archive after member locale.o)

error: failed to build archive: bad archive: truncated or malformed archive (offset to next archive member past the end of the archive after member objects.o)

error: failed to build archive: bad archive: truncated or malformed archive (offset to next archive member past the end of the archive after member factory.o)

If i pull Deno from Github and build it everything works like it should. More likely Cargo is failing and not Deno?

@lucacasonato
Copy link
Member

You need to have either python2, or curl installed in your path. After building, are there any files in target/{debug,release]/gn_out?

@Nastradoomus
Copy link
Author

Both python and curl are installed.

ls /tmp/cargo-installfmZQMQ/release/gn_out/obj
librusty_v8.a

@mash-graz
Copy link
Contributor

this issue could be solved simply by denoland/rusty_v8#543 -- see: denoland/rusty_v8#545 and #8449

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

3 participants