Skip to content

Dependencies with build script fail on FreeBSD + 1.39 nightly #64006

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
johalun opened this issue Aug 29, 2019 · 5 comments
Closed

Dependencies with build script fail on FreeBSD + 1.39 nightly #64006

johalun opened this issue Aug 29, 2019 · 5 comments
Labels
C-bug Category: This is a bug. O-freebsd Operating system: FreeBSD P-medium Medium priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@johalun
Copy link

johalun commented Aug 29, 2019

Tested on various crates like bindgen, backtrace, async-std, etc, that has one or more -sys dependencies that include a build.rs file. All such deps fail with errors like:

error: failed to run custom build command for `openssl-sys v0.9.49`

Caused by:
  process didn't exit successfully: `/usr/home/johannes/dev/curl-test/target/debug/build/openssl-sys-7d3ff8c9464a6e09/build-script-main` (signal: 11, SIGSEGV: invalid memory reference)
error: failed to run custom build command for `backtrace-sys v0.1.31`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installOYpgIo/release/build/backtrace-sys-8309d2ffb8202182/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)
--- stdout
cargo:rustc-cfg=rbt

warning: build failed, waiting for other jobs to finish...

stable and beta works fine, this only happens for nightly 1.39

johannes@jm:~/dev/curl-test % rustc -V
rustc 1.39.0-nightly (17e73e801 2019-08-28)
johannes@jm:~/dev/curl-test % cargo -V
cargo 1.39.0-nightly (22f7dd049 2019-08-27)
@jonas-schievink jonas-schievink added C-bug Category: This is a bug. O-freebsd Operating system: FreeBSD regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. I-nominated labels Aug 29, 2019
@cuviper
Copy link
Member

cuviper commented Aug 29, 2019

It could be this: rust-lang/libc#1489

@nikomatsakis
Copy link
Contributor

check-in from compiler triage:

Although this is a regression, it's also affecting freebsd only (right?) which is a lower tier platform, and therefore I'm marking as P-medium. There is a pending fix in #64019, although it sounds like that fix will need to be verified once it lands (not a guarantee). If @johalun you are able to do a custom build of rustc and give that fix a try, that'd be good too, but otherwise you can wait for it to land.

Feel free to re-nominate if you feel the priority is misassigned.

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Sep 6, 2019
@mati865
Copy link
Contributor

mati865 commented Sep 11, 2019

@johalun could you check if this works in latest nightly?

@johalun
Copy link
Author

johalun commented Sep 11, 2019

Tested with async-std and backtrace-rs and it is working as expected now.
Thanks!

@jonas-schievink
Copy link
Contributor

Closing as fixed

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. O-freebsd Operating system: FreeBSD P-medium Medium priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants