pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/52584: lang/rust build failure (bootstrap kit issue?)



The following reply was made to PR pkg/52584; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/52584: lang/rust build failure (bootstrap kit issue?)
Date: Fri, 6 Oct 2017 17:29:00 +0200

 On Sat, Sep 30, 2017 at 02:15:00PM +0000, Thomas Klausner wrote:
 > >Number:         52584
 > >Category:       pkg
 > >Synopsis:       lang/rust build failure (bootstrap kit issue?)
 
 The problem was that I had built my base system with "./build.sh .. -V
 HAVE_LIBGCC_EH=no ..." for better clang support.
 
 The rust bootstrap should really be built with -static-libgcc.
 
 
 When I don't do that, rust still fails to build, but differently:
 
 
 
 running: /scratch/lang/rust/work/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo build --manifest-path /scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
 error: failed to run `rustc` to learn about target-specific information
 
 Caused by:
   process didn't exit successfully: `/scratch/lang/rust/work/rust-1.19.0-x86_64-unknown-netbsd/rustc/bin/rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --target x86_64-unknown-netbsd` (exit code: 101)
 --- stderr
 error: internal compiler error: unexpected panic
 
 note: the compiler unexpectedly panicked. this is a bug.
 
 note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
 
 thread 'rustc' panicked at 'failed to get current_exe: No such file or directory (os error 2)', /checkout/src/librustc/session/filesearch.rs:169
 note: Run with `RUST_BACKTRACE=1` for a backtrace.
 
 
 Traceback (most recent call last):
   File "./x.py", line 20, in <module>
     bootstrap.main()
   File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 694, in main
     bootstrap()
   File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 675, in bootstrap
     rb.build_bootstrap()
   File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 423, in build_bootstrap
     run(args, env=env, verbose=self.verbose)
   File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 147, in run
     raise RuntimeError(err)
 RuntimeError: failed to run: /scratch/lang/rust/work/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo build --manifest-path /scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
 *** Error code 1
 
 
 From the error message I guessed that /proc needs to contain a procfs,
 and that seems to make the build proceed.
  Thomas
 


Home | Main Index | Thread Index | Old Index