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

Compilation fails #110

Closed
actionless opened this issue Jan 19, 2019 · 11 comments
Closed

Compilation fails #110

actionless opened this issue Jan 19, 2019 · 11 comments

Comments

@actionless
Copy link

Rust 1.32.0

   Compiling resvg-capi v0.5.0 (/home/user/.cache/pikaur/build/resvg-git/src/resvg/capi)
error: Could not compile `resvg-capi`.

Caused by:
  process didn't exit successfully: `rustc --crate-name resvg capi/src/lib.rs --color always --crate-type cdylib --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="cairo-backend"' --cfg 'feature="cairo-sys-rs"' --cfg 'feature="glib"' --cfg 'feature="qt-backend"' --cfg 'feature="resvg"' -C metadata=34044ee5526873f1 --out-dir /home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps -L dependency=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps --extern cairo_sys=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libcairo_sys-a11059b04a916894.rlib --extern fern=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libfern-f758ae3d5f3ac504.rlib --extern glib=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libglib-42c67ca816dc468b.rlib --extern log=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/liblog-4fed47ee5064f102.rlib --extern resvg=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libresvg-9bfdf02a73881248.rlib -L native=/home/user/.cache/pikaur/build/resvg-git/src/resvg/target/release/build/resvg-qt-529ad70e8602e985/out` (signal: 11, SIGSEGV: invalid memory reference)

@RazrFalcon
Copy link
Collaborator

  1. resvg version?
  2. OS?
  3. Backend?
  4. cargo command?

@Patricol
Copy link

I have the same issue; running Arch Linux, installing resvg-capi with this script.

Might be the fault of the script; wouldn't be commenting if there hadn't already been an issue posted.

@Patricol
Copy link

Patricol commented Jan 19, 2019

To reproduce:

docker run --rm --it patricol/arch /bin/bash
yes | aurman -Syu
aurman -S resvg-git
#answer 3 to choose the solution that doesn't install anything extra. (doesnt really matter, but saves time.)
#answer yes to continue
#answer no to skip seeing the script if desired
#yes to proceed

The definition of the environment used is here.

Edit: To clarify, this happens outside of docker too; I'm just providing that for easy replication.

@RazrFalcon
Copy link
Collaborator

Well, it works on Gentoo. And it actually looks like a Rust bug itself. Will ask on their bug tracker.

@RazrFalcon
Copy link
Collaborator

@Patricol can you try building resvg/capi manually, without pacman? Also try building only tools/rendersvg.

@Patricol
Copy link

@RazrFalcon Probably not, sorry. I'm unfamiliar with the process; and was just checking to see whether this issue was caused by my specific configuration. I don't have a baseline of success to use to interpret whether a failed compilation would be caused by my own mistakes.

If you have any questions about the replication process I posted, I can help.

If that replication process is not working for you, and you want to know the output of specific commands, I might also be able to help.

@RazrFalcon
Copy link
Collaborator

@Patricol I forgot that I actually have an Arch in VirtualBox, so I will try it myself now.

@actionless
Copy link
Author

with cairo:

	cargo build --release --features='cairo-backend'
  process didn't exit successfully: `rustc --crate-name resvg capi/src/lib.rs --color always --crate-type cdylib --crate-type staticlib --emit=dep-info,link -
C opt-level=3 -C lto --cfg 'feature="cairo-backend"' --cfg 'feature="cairo-sys-rs"' --cfg 'feature="glib"' --cfg 'feature="resvg"' -C metadata=34044ee5526873f1 --out-dir /home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps -L dependency=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/relea
se/deps --extern cairo_sys=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libcairo_sys-a11059b04a916894.rlib --extern fern=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libfern-f758ae3d5f3ac504.rlib --extern glib=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target
/release/deps/libglib-42c67ca816dc468b.rlib --extern log=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/liblog-4fed47ee5064f102.rlib --
extern resvg=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libresvg-d5e160964f4dc715.rlib` (signal: 11, SIGSEGV: invalid memory refere
nce)

with qt:

	cargo build --release --features='qt-backend'
  process didn't exit successfully: `rustc --crate-name resvg capi/src/lib.rs --color always --crate-type cdylib --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="qt-backend"' --cfg 'feature="resvg"' -C metadata=34044ee5526873f1 --out-dir /home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps -L dependency=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps --extern fern=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libfern-f758ae3d5f3ac504.rlib --extern log=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/liblog-4fed47ee5064f102.rlib --extern resvg=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/deps/libresvg-54ed4b190f46545f.rlib -L native=/home/lie/.cache/pikaur/build/resvg-git/src/resvg/target/release/build/resvg-qt-529ad70e8602e985/out` (signal: 11, SIGSEGV: invalid memory reference)

@RazrFalcon
Copy link
Collaborator

Yep. The same error.

@RazrFalcon
Copy link
Collaborator

@actionless Looks like an Arch bug. Because Rust, installed via rustup works just fine.

@actionless
Copy link
Author

i can confirm it works with rust from rustup, i've created a ticket in arch bugtracker: https://bugs.archlinux.org/task/61484

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