pkgsrc-Bugs archive

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

Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build on NetBSD/i386 9.2



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

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: he%netbsd.org@localhost
Subject: Re: pkg/56304: pkgsrc-2021Q2 lang/rust fails to build on
 NetBSD/i386 9.2
Date: Sun, 11 Jul 2021 18:02:53 -0400

 In a sandboxed pbulk build, it fails sooner:
 
 finding compilers
 CC_i586-unknown-netbsd = "gcc"
 CFLAGS_i586-unknown-netbsd = ["-O2", "-ffunction-sections", "-fdata-
 sections", "-fPIC", "-m32", "-O2", "-march=i586", "-D_FORTIFY_SOURCE=2",
 "-I/usr/pkg/include", "-I/usr/include", "-I/usr/include/krb5", "-
 I/usr/pkg/include/python3.8"]
 CXX_i586-unknown-netbsd = "c++"
 CXXFLAGS_i586-unknown-netbsd = ["-O2", "-ffunction-sections", "-fdata-
 sections", "-fPIC", "-m32", "-O2", "-march=i586", "-D_FORTIFY_SOURCE=2",
 "-I/usr/pkg/include", "-I/usr/include", "-I/usr/include/krb5", "-
 I/usr/pkg/include/python3.8"]
 AR_i586-unknown-netbsd = "ar"
 running sanity check
 thread 'main' panicked at '
 
 couldn't find required command: "cmake"
 
 ', src/bootstrap/sanity.rs:60:13
 note: run with `RUST_BACKTRACE=1` environment variable to display a
 backtrace
 Traceback (most recent call last):
   File "./x.py", line 27, in <module>
     bootstrap.main()
   File "/tmp/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line
 1183, in main
     bootstrap(help_triggered)
   File "/tmp/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line
 1169, in bootstrap
     run(args, env=env, verbose=build.verbose)
   File "/tmp/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py", line
 153, in run
     raise RuntimeError(err)
 RuntimeError: failed to run: /tmp/work/rustc-1.52.1-
 src/build/bootstrap/debug/bootstrap -v build --stage 2 -j 1
 *** Error code 1
 
 This is consistent with what the TNF bulk build is reporting:
 http://victory.netbsd.org/pkgsrc/packages/reports/2021Q2/i386-9.0/20210625.0432/rust-1.52.1nb4/build.log
 
 Evidently, there are cases where cmake is required even when the
 rust-llvm option isn't enabled. I haven't looked into this in detail.
 
 Separately, there's also the issue that rust-bin doesn't package, for
 the much simpler reason that there's a distinfo mismatch between the
 package version and the supplied files.
 
 Dave
 
 


Home | Main Index | Thread Index | Old Index