[Bug 225994] lang/rust - update bootstrap to 1.23

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 17 21:31:54 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225994

            Bug ID: 225994
           Summary: lang/rust - update bootstrap to 1.23
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust at FreeBSD.org
          Reporter: truckman at FreeBSD.org
            Blocks: 225899
             Flags: maintainer-feedback?(rust at FreeBSD.org)
          Assignee: rust at FreeBSD.org

There is a bug in the gmake jobserver implmentation that can cause it do
deadlock when it is configured to use pselect(), which it is on FreeBSD.  The
upstream fix is to make the jobserver pipe descriptor non-blocking. 
Unfortunately the jobserver implementation in rust was not updated for
compatibility until version 1.23.  With the patch to gmake to fix the deadlock
problem, the rust bootstrap fails like this:

   Compiling rls-data v0.12.0
   Compiling syntax_pos v0.0.0
(file:///wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/src/libsyntax_pos)
error: failed to acquire jobserver token

Caused by:
  Resource temporarily unavailable (os error 35)
thread 'main' panicked at 'command did not execute successfully:
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/build/x86_64-unknown-freebsd/stage0/bi
n/cargo" "build" "--target" "x86_64-unknown-freebsd" "--release" "--frozen"
"--features" " jemalloc llvm" "--manifest-path" "/wrkdirs/usr/ports/lang/rust/w
ork/rustc-1.23.0-src/src/rustc/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', src/bootstrap/compile.rs:882:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/x.py", line 20, in
<module>
    bootstrap.main()
  File
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/src/bootstrap/bootstrap.py",
line 758, in main
    bootstrap()
  File
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/src/bootstrap/bootstrap.py",
line 749, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/src/bootstrap/bootstrap.py",
line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run:
/wrkdirs/usr/ports/lang/rust/work/rustc-1.23.0-src/build/bootstrap/debug/bootstrap
build --verbose --config ./config.toml --jo
bs 8
*** Error code 1


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225899
[Bug 225899] [exp-run] devel/gmake: parallel builds sometimes deadlock
-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list