pkgsrc-Users archive

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

2019Q3: failure to build rust on netbsd-8 i386



On a reasonably up-to-date (basically default build) netbsd-8 i386 box,
with pkgsrc 2019Q3 from November 19, building rust fails with not
finding libLLVM-7.so.  (I realize there have been bootstrap issues, but
it seems stable branches should build, at least on the current release
of NetBSD.)  Are others seeing this?

(Entire build log follows; it's short enough that saving bits by
trimming seems inadvised.)



=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for rust-1.37.0-i686-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-1.37.0-i686-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-1.37.0-i686-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rust-std-1.37.0-i686-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-std-1.37.0-i686-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-std-1.37.0-i686-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rustc-1.37.0-src.tar.gz
=> Checksum RMD160 OK for rustc-1.37.0-src.tar.gz
=> Checksum SHA512 OK for rustc-1.37.0-src.tar.gz
===> Installing dependencies for rust-1.37.0
==========================================================================
The supported build options for rust are:

	rust-llvm

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.rust (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
rust-1.37.0.  Their current value is shown below:

        * KRB5_DEFAULT = heimdal
        * PYTHON_VERSION_DEFAULT = 37
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private
        * TERMINFO_DEFAULT = terminfo

Based on these variables, the following variables have been set:

        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal
        * PYPACKAGE = python37
        * TERMINFO_TYPE = terminfo

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
=> Tool dependency bash-[0-9]*: found bash-5.0.11
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency gtar-base>=1.13.25: found gtar-base-1.32nb1
=> Tool dependency perl>=5.0: found perl-5.30.0
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.6.0
=> Tool dependency ccache-[0-9]*: found ccache-3.7.4
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency python37>=3.7.0: found python37-3.7.4
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency llvm>=8.0.0: found llvm-8.0.1nb1
=> Full dependency curl>=7.65.3nb3: found curl-7.66.0nb1
===> Overriding tools for rust-1.37.0
===> Extracting for rust-1.37.0
set -e;									 if test -e /usr/ANONCVS/pkgsrc/lang/rust/work/rust-1.37.0-i686-unknown-netbsd/install.sh	 -a ! -e /usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc; then  cd /usr/ANONCVS/pkgsrc/lang/rust/work/rust-1.37.0-i686-unknown-netbsd;		 /usr/pkg/bin/bash ./install.sh --prefix=/usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap;	 cd /usr/ANONCVS/pkgsrc/lang/rust/work/rust-std-1.37.0-i686-unknown-netbsd;		 /usr/pkg/bin/bash ./install.sh --prefix=/usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap;	 fi
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rls-preview'
install: installing component 'clippy-preview'
install: installing component 'miri-preview'
install: installing component 'rustfmt-preview'
install: installing component 'rust-analysis-i686-unknown-netbsd'
install: installing component 'rust-std-i686-unknown-netbsd'
install: installing component 'rust-docs'

    Rust is ready to roll.

install: uninstalling component 'rust-std-i686-unknown-netbsd'
install: installing component 'rust-std-i686-unknown-netbsd'

    std is standing at the ready.

/bin/cp /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/rand/.cargo-checksum.json  /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/rand/.cargo-checksum.json.orig
/usr/bin/sed -e 's/1e732c2e3b4bd1561f11e0979bf9d20669a96eae7afe0deff9dfbb980ee47bf1/bc03f2345d7cfa7000f9da817120b6afa073359789c21a9a790ebd8676c50cca/' /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/rand/.cargo-checksum.json.orig > /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/rand/.cargo-checksum.json
/bin/cp /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/libc/.cargo-checksum.json  /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/libc/.cargo-checksum.json.orig
/usr/bin/sed -e 's/0c6d148d84f2fa9feb86b464d30af9c52322553bf321ae4fe27184d274ccbe21/27dae4ec77f317c74e2c205658bcc8220c512f751802b754b07770c16e420dd1/' /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/libc/.cargo-checksum.json.orig > /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/libc/.cargo-checksum.json
/bin/cp /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/backtrace-sys/.cargo-checksum.json  /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/backtrace-sys/.cargo-checksum.json.orig
/usr/bin/sed -e 's/59763fc255248b54fba5d0761d61093a73d51fa4cb400b0df1b5f339b9c2f48a/ba66d192421fd536ceddb50616c4c4aea06f4e39450eb0bc2bbbaed0b1e684c1/' /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/backtrace-sys/.cargo-checksum.json.orig > /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/vendor/backtrace-sys/.cargo-checksum.json
SDIR=/usr/ANONCVS/pkgsrc/lang/rust/work/scripts;  /bin/mkdir -p ${SDIR};  cd ${SDIR};  /bin/rm -f c++-wrap;  /bin/rm -f clang++-wrap;  /bin/rm -f clang-wrap;  /bin/cp /usr/ANONCVS/pkgsrc/lang/rust/files/gcc-wrap .;  /bin/chmod +x gcc-wrap;  /bin/ln -s gcc-wrap c++-wrap;  /bin/ln -s gcc-wrap clang++-wrap;  /bin/ln -s gcc-wrap clang-wrap
===> Patching for rust-1.37.0
=> Applying pkgsrc patches for rust-1.37.0
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_bin_rustc.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_bin_rustc.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_bootstrap_bin_rustc.rs,v 1.5 2019/01/19 12:44:08 ryoon Exp $
|
|* Set RPATH for pkgsrc wrapper
|
|--- src/bootstrap/bin/rustc.rs.orig	2019-01-16 09:30:27.000000000 +0000
|+++ src/bootstrap/bin/rustc.rs
--------------------------
Patching file src/bootstrap/bin/rustc.rs using Plan A...
Hunk #1 succeeded at 254 (offset 17 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_bootstrap_bootstrap.py,v 1.3 2018/11/27 15:45:23 adam Exp $
|
|Use `uname -p` on NetBSD, as that is reliable and sensible there.
|Do not use debuginfo; optimize 'bootstrap' instead.
|Handle earmv7hf for NetBSD.
|
|--- src/bootstrap/bootstrap.py.orig	2018-11-07 03:22:38.000000000 +0000
|+++ src/bootstrap/bootstrap.py
--------------------------
Patching file src/bootstrap/bootstrap.py using Plan A...
Hunk #1 succeeded at 185 (offset -11 lines).
Hunk #2 succeeded at 287 (offset 7 lines).
Hunk #3 succeeded at 618 (offset -11 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_builder.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_builder.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_bootstrap_builder.rs,v 1.2 2019/03/03 09:16:21 he Exp $
|
|Do not install 'src'.
|
|--- src/bootstrap/builder.rs.orig	2018-11-25 15:56:35.000000000 +0000
|+++ src/bootstrap/builder.rs
--------------------------
Patching file src/bootstrap/builder.rs using Plan A...
Hunk #1 succeeded at 470 (offset 6 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_lib.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_bootstrap_lib.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_bootstrap_lib.rs,v 1.4 2019/01/19 12:44:08 ryoon Exp $
|
|Don't filter out optimization flags.
|FreeBSD has a particular C++ runtime library name
|
|--- src/bootstrap/lib.rs.orig	2019-01-16 09:30:27.000000000 +0000
|+++ src/bootstrap/lib.rs
--------------------------
Patching file src/bootstrap/lib.rs using Plan A...
Hunk #1 succeeded at 769 (offset -10 lines).
Hunk #2 succeeded at 779 (offset -10 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_build__helper_lib.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_build__helper_lib.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_build__helper_lib.rs,v 1.1 2019/09/09 16:19:49 adam Exp $
|
|On Darwin, do not use @rpath for internal libraries.
|
|--- src/build_helper/lib.rs.orig	2019-09-06 11:17:24.000000000 +0000
|+++ src/build_helper/lib.rs
--------------------------
Patching file src/build_helper/lib.rs using Plan A...
Hunk #1 succeeded at 212.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__codegen__ssa_back_linker.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__codegen__ssa_back_linker.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_librustc__codegen__ssa_back_linker.rs,v 1.1 2019/09/09 16:19:49 adam Exp $
|
|Do not use @rpath on Darwin.
|
|--- src/librustc_codegen_ssa/back/linker.rs.orig	2019-09-06 11:20:11.000000000 +0000
|+++ src/librustc_codegen_ssa/back/linker.rs
--------------------------
Patching file src/librustc_codegen_ssa/back/linker.rs using Plan A...
Hunk #1 succeeded at 362.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__llvm_build.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__llvm_build.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_librustc__llvm_build.rs,v 1.6 2019/09/19 17:37:29 jperkin Exp $
|
|fix build on NetBSD HEAD-llvm. XXX there is probably a better way to do this.
|
|--- src/librustc_llvm/build.rs.orig	2019-08-13 06:27:22.000000000 +0000
|+++ src/librustc_llvm/build.rs
--------------------------
Patching file src/librustc_llvm/build.rs using Plan A...
Hunk #1 succeeded at 261.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__target_spec_solaris__base.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__target_spec_solaris__base.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_librustc__target_spec_solaris__base.rs,v 1.2 2019/08/29 14:09:57 he Exp $
|
|Enable frame pointers on SunOS.
|
|--- src/librustc_target/spec/solaris_base.rs.orig	2019-08-13 06:27:22.000000000 +0000
|+++ src/librustc_target/spec/solaris_base.rs
--------------------------
Patching file src/librustc_target/spec/solaris_base.rs using Plan A...
Hunk #1 succeeded at 8.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__target_spec_x86__64__sun__solaris.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_librustc__target_spec_x86__64__sun__solaris.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_librustc__target_spec_x86__64__sun__solaris.rs,v 1.1 2019/05/31 14:11:23 jperkin Exp $
|
|Enable stack probes on SunOS.
|
|--- src/librustc_target/spec/x86_64_sun_solaris.rs.orig	2019-01-16 09:30:27.000000000 +0000
|+++ src/librustc_target/spec/x86_64_sun_solaris.rs
--------------------------
Patching file src/librustc_target/spec/x86_64_sun_solaris.rs using Plan A...
Hunk #1 succeeded at 5 (offset -10 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_libstd_build.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_libstd_build.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_libstd_build.rs,v 1.5 2019/09/19 17:37:29 jperkin Exp $
|
|SunOS support:
| - Support PKGSRC_USE_SSP (ugly for now).
| - Add libumem support.
| - Add libexecinfo for backtrace().
|
|--- src/libstd/build.rs.orig	2019-08-13 06:27:22.000000000 +0000
|+++ src/libstd/build.rs
--------------------------
Patching file src/libstd/build.rs using Plan A...
Hunk #1 succeeded at 18.
Hunk #2 succeeded at 28.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_libstd_sys_unix_thread.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_libstd_sys_unix_thread.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_libstd_sys_unix_thread.rs,v 1.5 2019/03/03 09:16:21 he Exp $
|
|Fix stack-clash on SunOS.
|
|--- src/libstd/sys/unix/thread.rs.orig	2018-07-30 22:15:53.000000000 +0000
|+++ src/libstd/sys/unix/thread.rs
--------------------------
Patching file src/libstd/sys/unix/thread.rs using Plan A...
Hunk #1 succeeded at 294 (offset -6 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_libunwind_build.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_libunwind_build.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_libunwind_build.rs,v 1.2 2019/03/07 20:19:11 jperkin Exp $
|
|fix build on NetBSD HEAD-llvm. XXX there is probably a better way to do this.
|
|--- src/libunwind/build.rs.orig	2018-12-18 23:11:17.000000000 +0000
|+++ src/libunwind/build.rs
--------------------------
Patching file src/libunwind/build.rs using Plan A...
Hunk #1 succeeded at 21 (offset -4 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_CMakeLists.txt
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_llvm-project_llvm_CMakeLists.txt,v 1.1 2019/04/14 12:42:03 he Exp $
|
|Don't implement sys/regset.h workaround, fix source instead.
|
|--- src/llvm-project/llvm/CMakeLists.txt.orig	2018-03-10 02:51:13.000000000 +0000
|+++ src/llvm-project/llvm/CMakeLists.txt
--------------------------
Patching file src/llvm-project/llvm/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 818 (offset 12 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake,v 1.1 2019/04/14 12:42:03 he Exp $
|
|"-z discard-unused" is only supported by Oracle Solaris ld.
|On Darwin, use correct install-name for shared libraries.
|
|--- src/llvm-project/llvm/cmake/modules/AddLLVM.cmake.orig	2018-08-01 16:32:37.000000000 +0000
|+++ src/llvm-project/llvm/cmake/modules/AddLLVM.cmake
--------------------------
Patching file src/llvm-project/llvm/cmake/modules/AddLLVM.cmake using Plan A...
Hunk #1 succeeded at 219.
Hunk #2 succeeded at 1666 (offset 66 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h,v 1.1 2019/04/14 12:42:03 he Exp $
|
|Don't implement sys/regset.h workaround, fix source instead.
|
|--- src/llvm-project/llvm/include/llvm-c/DataTypes.h.orig	2018-08-01 16:32:37.000000000 +0000
|+++ src/llvm-project/llvm/include/llvm-c/DataTypes.h
--------------------------
Patching file src/llvm-project/llvm/include/llvm-c/DataTypes.h using Plan A...
Hunk #1 succeeded at 87.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h,v 1.1 2019/04/14 12:42:03 he Exp $
|
|Fix SunOS CS conflict not handled by include/llvm-c/DataTypes.h
|
|--- src/llvm-project/llvm/include/llvm/Analysis/ConstantFolding.h.orig	2018-08-01 16:32:37.000000000 +0000
|+++ src/llvm-project/llvm/include/llvm/Analysis/ConstantFolding.h
--------------------------
Patching file src/llvm-project/llvm/include/llvm/Analysis/ConstantFolding.h using Plan A...
Hunk #1 succeeded at 20.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_lib_Support_Unix_Signals.inc
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_lib_Support_Unix_Signals.inc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_llvm-project_llvm_lib_Support_Unix_Signals.inc,v 1.1 2019/08/29 14:09:57 he Exp $
|
|Avoid warning about casting from "const void*" to "char*" via -Wcast-qual.
|
|--- src/llvm-project/llvm/lib/Support/Unix/Signals.inc.orig	2019-05-20 20:34:47.000000000 +0000
|+++ src/llvm-project/llvm/lib/Support/Unix/Signals.inc
--------------------------
Patching file src/llvm-project/llvm/lib/Support/Unix/Signals.inc using Plan A...
Hunk #1 succeeded at 544.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp,v 1.1 2019/05/22 09:43:14 jperkin Exp $
|
|Avoid ambiguous function call.
|
|--- src/llvm-project/llvm/utils/FileCheck/FileCheck.cpp.orig	2019-02-12 15:22:48.000000000 +0000
|+++ src/llvm-project/llvm/utils/FileCheck/FileCheck.cpp
--------------------------
Patching file src/llvm-project/llvm/utils/FileCheck/FileCheck.cpp using Plan A...
Hunk #1 succeeded at 403.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_tools_cargo_src_cargo_core_profiles.rs,v 1.3 2019/03/07 20:19:11 jperkin Exp $
|
|Turn off incremental builds for sparc64, ref.
|https://sources.debian.org/patches/cargo/0.29.0-1/2007_sparc64_disable_incremental_build.patch/
|
|--- src/tools/cargo/src/cargo/core/profiles.rs.orig	2018-10-24 20:01:28.000000000 +0000
|+++ src/tools/cargo/src/cargo/core/profiles.rs
--------------------------
Patching file src/tools/cargo/src/cargo/core/profiles.rs using Plan A...
Hunk #1 succeeded at 483 (offset 25 lines).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_tools_cargo_tests_testsuite_build.rs,v 1.5 2019/08/29 14:09:57 he Exp $
|
|Don't attempt incremental operations on sparc64, ref.
|https://sources.debian.org/patches/cargo/0.29.0-1/2007_sparc64_disable_incremental_build.patch/
|
|--- src/tools/cargo/tests/testsuite/build.rs.orig	2019-08-13 06:27:40.000000000 +0000
|+++ src/tools/cargo/tests/testsuite/build.rs
--------------------------
Patching file src/tools/cargo/tests/testsuite/build.rs using Plan A...
Hunk #1 succeeded at 38.
Hunk #2 succeeded at 61.
Hunk #3 succeeded at 104.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_rls_rls_src_cmd.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_rls_rls_src_cmd.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_tools_rls_rls_src_cmd.rs,v 1.1 2019/04/14 12:42:03 he Exp $
|
|Use 32-bit atomic instead of 64-bit; latter may not be available on
|32-bit platforms (powerpc, earmv7).
|
|--- src/tools/rls/rls/src/cmd.rs.orig	2019-04-10 18:46:16.000000000 +0000
|+++ src/tools/rls/rls/src/cmd.rs
--------------------------
Patching file src/tools/rls/rls/src/cmd.rs using Plan A...
Hunk #1 succeeded at 7 (offset -10 lines).
Hunk #2 succeeded at 324 (offset 1 line).
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_rls_rls_src_server_io.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_rls_rls_src_server_io.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_tools_rls_rls_src_server_io.rs,v 1.2 2019/05/31 14:11:23 jperkin Exp $
|
|Use 32-bit atomic instead of 64-bit; latter may not be available on
|32-bit platforms (powerpc, earmv7).
|
|--- src/tools/rls/rls/src/server/io.rs.orig	2019-05-20 12:10:32.000000000 +0000
|+++ src/tools/rls/rls/src/server/io.rs
--------------------------
Patching file src/tools/rls/rls/src/server/io.rs using Plan A...
Hunk #1 succeeded at 7.
Hunk #2 succeeded at 171.
Hunk #3 succeeded at 194.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_rust-installer_install-template.sh
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-src_tools_rust-installer_install-template.sh
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_tools_rust-installer_install-template.sh,v 1.3 2018/11/27 15:45:23 adam Exp $
|
|No logging to 'install.log'.
|Do not create 'uninstall.sh'.
|
|--- src/tools/rust-installer/install-template.sh.orig	2018-11-07 03:23:50.000000000 +0000
|+++ src/tools/rust-installer/install-template.sh
--------------------------
Patching file src/tools/rust-installer/install-template.sh using Plan A...
Hunk #1 succeeded at 15.
Hunk #2 succeeded at 964.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-vendor_backtrace-sys_src_libbacktrace_configure
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-vendor_backtrace-sys_src_libbacktrace_configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-vendor_backtrace-sys_src_libbacktrace_configure,v 1.1 2019/03/03 09:16:21 he Exp $
|
|Use pkgsrc libtool.
|
|--- vendor/backtrace-sys/src/libbacktrace/configure.orig	2019-02-28 10:22:21.000000000 +0000
|+++ vendor/backtrace-sys/src/libbacktrace/configure
--------------------------
Patching file vendor/backtrace-sys/src/libbacktrace/configure using Plan A...
Hunk #1 succeeded at 7352.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-vendor_libc_src_unix_solarish_mod.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-vendor_libc_src_unix_solarish_mod.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-vendor_libc_src_unix_solarish_mod.rs,v 1.1 2019/05/31 14:11:23 jperkin Exp $
|
|Fix xattr build.
|
|--- vendor/libc/src/unix/solarish/mod.rs.orig	2019-05-20 13:47:24.000000000 +0000
|+++ vendor/libc/src/unix/solarish/mod.rs
--------------------------
Patching file vendor/libc/src/unix/solarish/mod.rs using Plan A...
Hunk #1 succeeded at 981.
done
=> Verifying /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-vendor_rand_src_rngs_os.rs
=> Applying pkgsrc patch /usr/ANONCVS/pkgsrc/lang/rust/patches/patch-vendor_rand_src_rngs_os.rs
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-vendor_rand_src_rngs_os.rs,v 1.2 2019/06/13 19:06:30 tnn Exp $
|
|-Explicitly disable getrandom support on SunOS, the test fails.
|-https://github.com/rust-random/rand/issues/637
|
|The rand implementation for NetBSD drains a byte from /dev/random on every
|rustc invocation, with the intent to ensure /dev/urandom is seeded.
|This is inappropriate; seeding the rng should be handled by rc.d scripts only.
|The result is that rustc eventually blocks for very long times when generating
|temp file names, causing the lang/rust build to take days(!) in some cases.
|The fix is to delete the NetBSD specific implementation and instead use the
|FreeBSD implementation which relies on the kern.arandom sysctl instead of
|/dev/{u,}random.
|The bootstrap compiler of course has the same issue so I will raise a PR
|with upstream authors to address this.
|
|--- vendor/rand/src/rngs/os.rs.orig	2019-05-20 13:47:25.000000000 +0000
|+++ vendor/rand/src/rngs/os.rs
--------------------------
Patching file vendor/rand/src/rngs/os.rs using Plan A...
Hunk #1 succeeded at 246.
Hunk #2 succeeded at 487.
Hunk #3 succeeded at 627.
Hunk #4 succeeded at 775.
done
===> Creating toolchain wrappers for rust-1.37.0
===> Configuring for rust-1.37.0
=> Substituting "rpath" in src/bootstrap/bin/rustc.rs src/build_helper/lib.rs src/librustc_codegen_ssa/back/linker.rs
=> Checking for portability problems in extracted files
configure: processing command line
configure: 
configure: install.prefix       := /usr/pkg
configure: install.mandir       := /usr/pkg/man
configure: install.sysconfdir   := /usr/pkg/etc
configure: build.python         := /usr/pkg/bin/python3.7
configure: rust.channel         := stable
configure: build.rustc          := /usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootst ...
configure: build.cargo          := /usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootst ...
configure: build.extended       := True
configure: rust.rpath           := True
configure: rust.codegen-tests   := False
configure: rust.dist-src        := False
configure: llvm.static-libstdcpp := False
configure: llvm.ninja           := False
configure: build.vendor         := True
configure: llvm.link-shared     := True
configure: target.i686-unknown-netbsd.llvm-config := /usr/pkg/bin/llvm-config
configure: build.configure-args := ['--prefix=/usr/pkg', '--mandir=/usr/pkg/man', ...
configure: 
configure: writing `config.toml` in current directory
configure: 
configure: run `python /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/x.py --help`
configure: 
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
===> Building for rust-1.37.0
/usr/sbin/paxctl +am /usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo
cd /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src  && /usr/bin/env CARGO_BUILD_JOBS=1 USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= PYTHON=/usr/pkg/bin/python3.7 CC=gcc CFLAGS=-O2\ -march=i586\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\ -I/usr/include/krb5 CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\ -I/usr/include/krb5 CXX=c++ CXXFLAGS=-O2\ -march=i586\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.7\ -I/usr/include/krb5 COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/usr/ANONCVS/pkgsrc/lang/rust/work/.cwrapper/bin:/usr/ANONCVS/pkgsrc/lang/rust/work/.buildlink/bin:/usr/ANONCVS/pkgsrc/lang/rust/work/.ccache/bin:/usr/ANONCVS/pkgsrc/lang/rust/work/.gcc/bin:/usr/ANONCVS/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/home/gdt/bin:/home/gdt/bin/i386-NetBSD:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/usr/ANONCVS/pkgsrc/lang/rust/work/.home CWRAPPERS_CONFIG_DIR=/usr/ANONCVS/pkgsrc/lang/rust/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no LIBTOOL="/usr/ANONCVS/pkgsrc/lang/rust/work/.cwrapper/bin/libtool " BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/usr/ANONCVS/pkgsrc/lang/rust/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/usr/ANONCVS/pkgsrc/lang/rust/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/usr/ANONCVS/pkgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/usr/ANONCVS/pkgsrc/lang/rust/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/ANONCVS/pkgsrc/lang/rust/work/.pkg-config.log PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config CWRAPPERS_CONFIG_DIR=/usr/ANONCVS/pkgsrc/lang/rust/work/.cwrapper/config  /usr/pkg/bin/python3.7 ./x.py -v build -j 1
running: /usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/Cargo.toml --frozen
warning: /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/tools/miri/Cargo.toml: the cargo feature `default-run` is now stable and is no longer necessary to be listed in the manifest
error: process didn't exit successfully: `/usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc -vV` (exit code: 1)
--- stdout
rustc 1.37.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: i686-unknown-netbsd
release: 1.37.0

--- stderr
error: couldn't load codegen backend "/usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap/lib/rustlib/i686-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so": "Shared object \"libLLVM-7.so\" not found"


Traceback (most recent call last):
  File "./x.py", line 11, in <module>
    bootstrap.main()
  File "/usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 854, in main
    bootstrap(help_triggered)
  File "/usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 825, in bootstrap
    build.build_bootstrap()
  File "/usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 655, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/bootstrap.py", line 141, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/ANONCVS/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/ANONCVS/pkgsrc/lang/rust/work/rustc-1.37.0-src/src/bootstrap/Cargo.toml --frozen
*** Error code 1

Stop.
make[1]: stopped in /usr/ANONCVS/pkgsrc/lang/rust
*** Error code 1

Stop.
make: stopped in /usr/ANONCVS/pkgsrc/lang/rust
*** 'make replace' failed for package rust.


Home | Main Index | Thread Index | Old Index