Discussion:
Trying to build rust 1.24 on -current
(too old to reply)
Patrick Marchand
2018-03-11 22:08:23 UTC
Permalink
Sent this to ports, but maybe it's better for misc? Tell me if I'm
wrong.
Date: Sun, 11 Mar 2018 17:05:03 -0400
Subject: Trying to build rust 1.24 on -current
=20
So I updated to -current yesterday and noticed that there was no binary
package for rust available in snapshots. So I setup ports, pkg installed
all of it's dependencies and then tried running make install.=20
=20
It error's out and I'm not sure I understand why. I attached the output
as a .txt file.
=3D=3D=3D> Checking files for rust-1.24.0
`/usr/ports/distfiles/rust/rustc-1.24.0-src.tar.gz' is up to date.
`/usr/ports/distfiles/rust/rustc-bootstrap-amd64-1.24.0-20180213.tar.gz' =
is up to date.
(SHA256) rust/rustc-1.24.0-src.tar.gz: OK
(SHA256) rust/rustc-bootstrap-amd64-1.24.0-20180213.tar.gz: OK
=3D=3D=3D> rust-1.24.0 depends on: cmake-* -> cmake-3.9.3
=3D=3D=3D> rust-1.24.0 depends on: bash-* -> bash-4.4.19
=3D=3D=3D> rust-1.24.0 depends on: llvm-* -> llvm-5.0.1p1
=3D=3D=3D> rust-1.24.0 depends on: ninja-* -> ninja-1.8.2
=3D=3D=3D> rust-1.24.0 depends on: python->=3D2.7,<2.8 -> python-2.7.14p0
=3D=3D=3D> rust-1.24.0 depends on: gmake-* -> gmake-4.2.1
=3D=3D=3D> rust-1.24.0 depends on: libtool-* -> libtool-2.4.2p0
=3D=3D=3D> rust-1.24.0 depends on: libgit2-* -> libgit2-0.26.0p1
=3D=3D=3D> rust-1.24.0 depends on: curl-* -> curl-7.58.0p0
=3D=3D=3D> rust-1.24.0 depends on: libssh2-* -> libssh2-1.8.0
=3D=3D=3D> Verifying specs: c++ c++abi pthread c crypto curl git2 m pth=
read ssh2 ssl z=20
=3D=3D=3D> found c++.1.0 c++abi.0.0 pthread.25.1 c.92.3 crypto.42.7 curl=
=2E25.14 git2.10.0 m.10.0 ssh2.8.0 ssl.44.8 z.5.0
=3D=3D=3D> Extracting for rust-1.24.0
=3D=3D=3D> Patching for rust-1.24.0
=3D=3D=3D> Applying OpenBSD patch patch-src_bootstrap_bin_rustc_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_bootstrap_bin_rustc_rs,v 1.2 2018/02/23 16:38:16 lan=
dry Exp $
| - small code size to optimize (more codegen-units)
| - optimization level to 1 (instead of 2) to reduce the work in memory
| - reduce memory use by retaining fewer names within compilation artifac=
ts
|Index: src/bootstrap/bin/rustc.rs
|--- src/bootstrap/bin/rustc.rs.orig
|+++ src/bootstrap/bin/rustc.rs
--------------------------
Patching file src/bootstrap/bin/rustc.rs using Plan A...
Hunk #1 succeeded at 179.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_bootstrap_builder_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_bootstrap_builder_rs,v 1.2 2018/02/23 16:38:16 landr=
y Exp $
|disable Bootstrap test as it requires network access.
|pass RUSTC_ERROR_METADATA_DST as absolute path (8c9bf663d4a8074e4955d1ad=
3f85a3b82e946297).
|Index: src/bootstrap/builder.rs
|--- src/bootstrap/builder.rs.orig
|+++ src/bootstrap/builder.rs
--------------------------
Patching file src/bootstrap/builder.rs using Plan A...
Hunk #1 succeeded at 251.
Hunk #2 succeeded at 484.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_bootstrap_check_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_bootstrap_check_rs,v 1.1 2018/02/23 16:38:16 landry =
Exp $
|pass RUSTC_ERROR_METADATA_DST as absolute path (8c9bf663d4a8074e4955d1ad=
3f85a3b82e946297).
|Index: src/bootstrap/check.rs
|--- src/bootstrap/check.rs.orig
|+++ src/bootstrap/check.rs
--------------------------
Patching file src/bootstrap/check.rs using Plan A...
Hunk #1 succeeded at 980.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_bootstrap_dist_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_bootstrap_dist_rs,v 1.3 2018/02/23 16:38:16 landry E=
xp $
|Stop in the middle of "Extended" step: we have generated tarballs for ru=
stc,
|rust-std and cargo: it is enough and generating a combined tarball in me=
mory
|requires too much RAM for i386
|Index: src/bootstrap/dist.rs
|--- src/bootstrap/dist.rs.orig
|+++ src/bootstrap/dist.rs
--------------------------
Patching file src/bootstrap/dist.rs using Plan A...
Hunk #1 succeeded at 1292.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_bootstrap_doc_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_bootstrap_doc_rs,v 1.1 2018/02/23 16:38:16 landry Ex=
p $
|pass RUSTC_ERROR_METADATA_DST as absolute path (8c9bf663d4a8074e4955d1ad=
3f85a3b82e946297).
|Index: src/bootstrap/doc.rs
|--- src/bootstrap/doc.rs.orig
|+++ src/bootstrap/doc.rs
--------------------------
Patching file src/bootstrap/doc.rs using Plan A...
Hunk #1 succeeded at 671.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_bootstrap_lib_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_bootstrap_lib_rs,v 1.10 2018/02/23 16:38:16 landry E=
xp $
|let us compilation choice to be honored.
|define extended_error as absolute path (8c9bf663d4a8074e4955d1ad3f85a3b8=
2e946297).
|Index: src/bootstrap/lib.rs
|--- src/bootstrap/lib.rs.orig
|+++ src/bootstrap/lib.rs
--------------------------
Patching file src/bootstrap/lib.rs using Plan A...
Hunk #1 succeeded at 632.
Hunk #2 succeeded at 718.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_etc_cat-and-grep_sh
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_etc_cat-and-grep_sh,v 1.1 2018/02/23 16:38:16 landry=
Exp $
|Use ggrep instead of grep.
|Index: src/etc/cat-and-grep.sh
|--- src/etc/cat-and-grep.sh.orig
|+++ src/etc/cat-and-grep.sh
--------------------------
Patching file src/etc/cat-and-grep.sh using Plan A...
Hunk #1 succeeded at 36.
Hunk #2 succeeded at 49.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_etc_rust-gdb
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_etc_rust-gdb,v 1.3 2017/06/17 02:06:53 danj Exp $
|only compatible with egdb (gdb from ports)
|Index: src/etc/rust-gdb
|--- src/etc/rust-gdb.orig
|+++ src/etc/rust-gdb
--------------------------
Patching file src/etc/rust-gdb using Plan A...
Hunk #1 succeeded at 12.
Hunk #2 succeeded at 24.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_libcompiler_builtins_build_=
rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_libcompiler_builtins_build_rs,v 1.1 2018/01/27 09:22=
:00 landry Exp $
|Use local compiler_rt
|Index: src/libcompiler_builtins/build.rs
|--- src/libcompiler_builtins/build.rs.orig
|+++ src/libcompiler_builtins/build.rs
--------------------------
Patching file src/libcompiler_builtins/build.rs using Plan A...
Hunk #1 succeeded at 12.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_librustc_back_target_i686_u=
nknown_openbsd_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_librustc_back_target_i686_unknown_openbsd_rs,v 1.4 2=
017/12/04 17:31:49 landry Exp $
|i386 should be pentiumpro (no SSE2, no ...)
|Index: src/librustc_back/target/i686_unknown_openbsd.rs
|--- src/librustc_back/target/i686_unknown_openbsd.rs.orig
|+++ src/librustc_back/target/i686_unknown_openbsd.rs
--------------------------
Patching file src/librustc_back/target/i686_unknown_openbsd.rs using Plan=
A...
Hunk #1 succeeded at 13.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_librustc_binaryen_build_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_librustc_binaryen_build_rs,v 1.1 2018/01/27 09:22:00=
landry Exp $
|Using ninja as cmake generator. Avoid calling "make" when "gmake" is exp=
ected.
|Index: src/librustc_binaryen/build.rs
|--- src/librustc_binaryen/build.rs.orig
|+++ src/librustc_binaryen/build.rs
--------------------------
Patching file src/librustc_binaryen/build.rs using Plan A...
Hunk #1 succeeded at 27.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_librustc_driver_target_feat=
ures_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_librustc_driver_target_features_rs,v 1.1 2017/12/04 =
17:31:49 landry Exp $
|Declare "sse2" feature on amd64 to be always present.
|See https://github.com/rust-lang/rust/issues/46181
|Index: src/librustc_driver/target_features.rs
|--- src/librustc_driver/target_features.rs.orig
|+++ src/librustc_driver/target_features.rs
--------------------------
Patching file src/librustc_driver/target_features.rs using Plan A...
Hunk #1 succeeded at 28.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_librustc_session_filesearch=
_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_librustc_session_filesearch_rs,v 1.6 2018/01/27 09:2=
2:00 landry Exp $
|fallback to LOCALBASE as default sysroot.
|Index: src/librustc/session/filesearch.rs
|--- src/librustc/session/filesearch.rs.orig
|+++ src/librustc/session/filesearch.rs
--------------------------
Patching file src/librustc/session/filesearch.rs using Plan A...
Hunk #1 succeeded at 164.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_librustdoc_test_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_librustdoc_test_rs,v 1.14 2018/02/23 16:38:16 landry=
Exp $
|fallback to LOCALBASE as default sysroot.
|Index: src/librustdoc/test.rs
|--- src/librustdoc/test.rs.orig
|+++ src/librustdoc/test.rs
--------------------------
Patching file src/librustdoc/test.rs using Plan A...
Hunk #1 succeeded at 66.
Hunk #2 succeeded at 198.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_libstd_sys_unix_ext_net_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_libstd_sys_unix_ext_net_rs,v 1.8 2017/12/04 17:31:49=
landry Exp $
|Disable 6 failing tests (related to unix socket). Needs more investigati=
on.
|Index: src/libstd/sys/unix/ext/net.rs
|--- src/libstd/sys/unix/ext/net.rs.orig
|+++ src/libstd/sys/unix/ext/net.rs
--------------------------
Patching file src/libstd/sys/unix/ext/net.rs using Plan A...
Hunk #1 succeeded at 1260.
Hunk #2 succeeded at 1285.
Hunk #3 succeeded at 1302.
Hunk #4 succeeded at 1319.
Hunk #5 succeeded at 1412.
Hunk #6 succeeded at 1427.
Hunk #7 succeeded at 1552.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_libstd_sys_unix_os_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_libstd_sys_unix_os_rs,v 1.7 2018/02/23 16:38:16 land=
ry Exp $
|argv0 isn't suitable as current_exe() in all cases.
|Index: src/libstd/sys/unix/os.rs
|--- src/libstd/sys/unix/os.rs.orig
|+++ src/libstd/sys/unix/os.rs
--------------------------
Patching file src/libstd/sys/unix/os.rs using Plan A...
Hunk #1 succeeded at 270.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_libsyntax_diagnostics_metad=
ata_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_libsyntax_diagnostics_metadata_rs,v 1.1 2018/02/23 1=
6:38:16 landry Exp $
|return metadata_dir as absolute path (8c9bf663d4a8074e4955d1ad3f85a3b82e=
946297).
|Index: src/libsyntax/diagnostics/metadata.rs
|--- src/libsyntax/diagnostics/metadata.rs.orig
|+++ src/libsyntax/diagnostics/metadata.rs
--------------------------
Patching file src/libsyntax/diagnostics/metadata.rs using Plan A...
Hunk #1 succeeded at 15.
Hunk #2 succeeded at 25.
Hunk #3 succeeded at 57.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_rustllvm_ArchiveWrapper_cpp
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_rustllvm_ArchiveWrapper_cpp,v 1.1 2018/02/23 16:38:1=
6 landry Exp $
| caedb36f081334451ba83e9524af025891208592
| b6fe1127e4b28aded8a1b0f95340e2de7dc12716
|Index: src/rustllvm/ArchiveWrapper.cpp
|--- src/rustllvm/ArchiveWrapper.cpp.orig
|+++ src/rustllvm/ArchiveWrapper.cpp
--------------------------
Patching file src/rustllvm/ArchiveWrapper.cpp using Plan A...
Hunk #1 succeeded at 42.
Hunk #2 succeeded at 50.
Hunk #3 succeeded at 232.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_rustllvm_PassWrapper_cpp
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_rustllvm_PassWrapper_cpp,v 1.3 2018/02/23 16:38:16 l=
andry Exp $
| 2a7ed74d96168fe1c187fbaa0d74dc52974b6ecf
| 03f86ae9829a0a5c6f4fbef0530809b1d24ede3c
|Index: src/rustllvm/PassWrapper.cpp
|--- src/rustllvm/PassWrapper.cpp.orig
|+++ src/rustllvm/PassWrapper.cpp
--------------------------
Patching file src/rustllvm/PassWrapper.cpp using Plan A...
Hunk #1 succeeded at 23.
Hunk #2 succeeded at 217.
Hunk #3 succeeded at 362.
Hunk #4 succeeded at 399.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_rustllvm_RustWrapper_cpp
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_rustllvm_RustWrapper_cpp,v 1.1 2018/02/23 16:38:16 l=
andry Exp $
| 9eeecd2adad8c5c94348dbd1c61709fa49f65ff8
|Index: src/rustllvm/RustWrapper.cpp
|--- src/rustllvm/RustWrapper.cpp.orig
|+++ src/rustllvm/RustWrapper.cpp
--------------------------
Patching file src/rustllvm/RustWrapper.cpp using Plan A...
Hunk #1 succeeded at 315.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_test_run-make_relocation-mo=
del_Makefile
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_test_run-make_relocation-model_Makefile,v 1.1 2018/0=
2/23 16:38:16 landry Exp $
|skip test: relocation error
|Index: src/test/run-make/relocation-model/Makefile
|--- src/test/run-make/relocation-model/Makefile.orig
|+++ src/test/run-make/relocation-model/Makefile
--------------------------
Patching file src/test/run-make/relocation-model/Makefile using Plan A...
Hunk #1 succeeded at 1.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_test_run-pass-fulldeps_myri=
ad-closures_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_test_run-pass-fulldeps_myriad-closures_rs,v 1.1 2017=
/12/04 17:31:49 landry Exp $
|
|Index: src/test/run-pass-fulldeps/myriad-closures.rs
|--- src/test/run-pass-fulldeps/myriad-closures.rs.orig
|+++ src/test/run-pass-fulldeps/myriad-closures.rs
--------------------------
Patching file src/test/run-pass-fulldeps/myriad-closures.rs using Plan A.=
=2E.
Hunk #1 succeeded at 16.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_test_run-pass_sse2_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_test_run-pass_sse2_rs,v 1.1 2017/12/04 17:31:49 land=
ry Exp $
|Disable SSE2 tests for i386.
|Index: src/test/run-pass/sse2.rs
|--- src/test/run-pass/sse2.rs.orig
|+++ src/test/run-pass/sse2.rs
--------------------------
Patching file src/test/run-pass/sse2.rs using Plan A...
Hunk #1 succeeded at 17.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_tools_cargo_src_cargo_core_=
package_id_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_tools_cargo_src_cargo_core_package_id_rs,v 1.2 2017/=
10/17 17:19:24 danj Exp $
|Don't rely on source_id for generating a hash as it could contains build=
dependent information (full path of the build directory).
|See https://github.com/rust-lang/rust/issues/39786
|Index: src/tools/cargo/src/cargo/core/package_id.rs
|--- src/tools/cargo/src/cargo/core/package_id.rs.orig
|+++ src/tools/cargo/src/cargo/core/package_id.rs
--------------------------
Patching file src/tools/cargo/src/cargo/core/package_id.rs using Plan A...
Hunk #1 succeeded at 75.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_tools_cargo_tests_cargotest=
_support_paths_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_tools_cargo_tests_cargotest_support_paths_rs,v 1.1 2=
017/07/31 13:38:58 danj Exp $
|use WRKBUILD as temporary directory for testing.
|Index: src/tools/cargo/tests/cargotest/support/paths.rs
|--- src/tools/cargo/tests/cargotest/support/paths.rs.orig
|+++ src/tools/cargo/tests/cargotest/support/paths.rs
--------------------------
Patching file src/tools/cargo/tests/cargotest/support/paths.rs using Plan=
A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 29.
done
=3D=3D=3D> Applying OpenBSD patch patch-src_vendor_openssl-sys_build_rs
Hmm... Looks like a unified diff to me...
--------------------------
|$OpenBSD: patch-src_vendor_openssl-sys_build_rs,v 1.4 2017/12/04 17:31:4=
9 landry Exp $
|The LibreSSL version in -current isn't explicitly supported.
|Index: src/vendor/openssl-sys/build.rs
|--- src/vendor/openssl-sys/build.rs.orig
|+++ src/vendor/openssl-sys/build.rs
--------------------------
Patching file src/vendor/openssl-sys/build.rs using Plan A...
Hunk #1 succeeded at 317.
done
sed -i 's/"files":{[^}]*}/"files":{}/' /usr/obj/ports/rust-1.24.0/rustc-=
1.24.0-src/src/vendor/*/.cargo-checksum.json
/usr/bin/perl /usr/ports/infrastructure/bin/pkg_subst -DMODPY_PYCACHE=3D =
-DMODPY_COMMENT=3D\"@comment\ \" -DMODPY_ABI3SO=3D -DMODPY_PYC_MAGIC_TAG=3D=
-DMODPY_BIN=3D/usr/local/bin/python2.7 -DMODPY_EGG_VERSION=3D -DMODPY_VERS=
ION=3D2.7 -DMODPY_BIN_SUFFIX=3D -DMODPY_PY_PREFIX=3Dpy- -DMODPY_PYOEXTENSIO=
N=3Dpyo -DWRKBUILD=3D/usr/obj/ports/rust-1.24.0/build-amd64 -DMACHINE_ARCH=
=3Damd64 -DARCH=3Damd64 -DHOMEPAGE=3Dhttp://www.rust-lang.org/ -D^PREFIX=3D=
/usr/local -D^SYSCONFDIR=3D/etc -DFLAVOR_EXT=3D -DFULLPKGNAME=3Drust-1.24.0=
-DMAINTAINER=3DSebastien\ Marie\ \<***@online.fr\> -D^BASE_PKGPATH=3Dl=
ang/rust -D^LOCALBASE=3D/usr/local -D^X11BASE=3D/usr/X11R6 -D^TRUEPREFIX=3D=
/usr/local -D^RCDIR=3D/etc/rc.d -D^LOCALSTATEDIR=3D/var -i -B /usr/obj/port=
s/rust-1.24.0 /usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/tools/cargo/t=
ests/cargotest/support/paths.rs
=3D=3D=3D> Compiler link: clang -> /usr/bin/clang
=3D=3D=3D> Compiler link: clang++ -> /usr/bin/clang++
=3D=3D=3D> Compiler link: cc -> /usr/bin/cc
=3D=3D=3D> Compiler link: c++ -> /usr/bin/c++
=3D=3D=3D> Configuring for rust-1.24.0
Using /usr/obj/ports/rust-1.24.0/config.site (generated)
echo '[build]' >/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'rustc =3D "/usr/obj/ports/rust-1.24.0/rustc-bootstrap-amd64-1.24.0-=
20180213/bin/rustc"' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'cargo =3D "/usr/obj/ports/rust-1.24.0/rustc-bootstrap-amd64-1.24.0-=
20180213/bin/cargo"' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'python =3D "/usr/local/bin/python2.7"' >>/usr/obj/ports/rust-1.24.0=
/build-amd64/config.toml
echo 'vendor =3D true' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.to=
ml
echo 'extended =3D true' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.=
toml
echo 'verbose =3D 2' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo '[install]' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'prefix =3D "/usr/local"' >>/usr/obj/ports/rust-1.24.0/build-amd64/c=
onfig.toml
echo 'sysconfdir =3D "/etc"' >>/usr/obj/ports/rust-1.24.0/build-amd64/con=
fig.toml
echo 'mandir =3D "man"' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.t=
oml
echo '[rust]' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'channel =3D "stable"' >>/usr/obj/ports/rust-1.24.0/build-amd64/conf=
ig.toml
echo 'rpath =3D false' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.to=
ml
echo 'codegen-tests =3D false' >>/usr/obj/ports/rust-1.24.0/build-amd64/c=
onfig.toml
echo '[dist]' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'src-tarball =3D false' >>/usr/obj/ports/rust-1.24.0/build-amd64/con=
fig.toml
echo '[llvm]' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo 'static-libstdcpp =3D false' >>/usr/obj/ports/rust-1.24.0/build-amd6=
4/config.toml
echo 'ninja =3D true' >>/usr/obj/ports/rust-1.24.0/build-amd64/config.toml
echo '[target.x86_64-unknown-openbsd]' >>/usr/obj/ports/rust-1.24.0/build=
-amd64/config.toml
echo 'llvm-config =3D "/usr/local/bin/llvm-config"' >>/usr/obj/ports/rus=
t-1.24.0/build-amd64/config.toml
=3D=3D=3D> Building for rust-1.24.0
cd /usr/obj/ports/rust-1.24.0/build-amd64 && exec /usr/bin/env -i LIBGIT2=
_SYS_USE_PKG_CONFIG=3D1 RUST_BACKTRACE=3D1 CC=3Dcc PYTHONUSERBASE=3D/usr/o=
bj/ports/rust-1.24.0 CONFIG_SITE=3D'/usr/obj/ports/rust-1.24.0/config.site'=
LIBTOOL=3D"/usr/local/bin/libtool" PATH=3D'/usr/obj/ports/rust-1.24.0/bin=
:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin' PREFIX=3D'/us=
r/local' LOCALBASE=3D'/usr/local' X11BASE=3D'/usr/X11R6' CFLAGS=3D'-O2 -p=
ipe' TRUEPREFIX=3D'/usr/local' DESTDIR=3D'' HOME=3D'/rust-1.24.0_writes_t=
o_HOME' COMPILER_VERSION=3Dclang PICFLAG=3D"-fpic" BINGRP=3Dbin BINOWN=3D=
root BINMODE=3D755 NONBINMODE=3D644 DIRMODE=3D755 INSTALL_COPY=3D-c INSTA=
LL_STRIP=3D-s MANGRP=3Dbin MANOWN=3Droot MANMODE=3D644 BSD_INSTALL_PROGRAM=
=3D"/usr/obj/ports/rust-1.24.0/bin/install -c -s -m 755" BSD_INSTALL_SCRI=
PT=3D"/usr/obj/ports/rust-1.24.0/bin/install -c -m 755" BSD_INSTALL_DATA=
=3D"/usr/obj/ports/rust-1.24.0/bin/install -c -m 644" BSD_INSTALL_MAN=3D"=
/usr/obj/ports/rust-1.24.0/bin/install -c -m 644" BSD_INSTALL_PROGRAM_DIR=
=3D"/usr/obj/ports/rust-1.24.0/bin/install -d -m 755" BSD_INSTALL_SCRIPT_=
DIR=3D"/usr/obj/ports/rust-1.24.0/bin/install -d -m 755" BSD_INSTALL_DATA=
_DIR=3D"/usr/obj/ports/rust-1.24.0/bin/install -d -m 755" BSD_INSTALL_MAN=
_DIR=3D"/usr/obj/ports/rust-1.24.0/bin/install -d -m 755" /usr/local/bin/=
python2.7 /usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/x.py dist --jobs=3D1
running: /usr/obj/ports/rust-1.24.0/rustc-bootstrap-amd64-1.24.0-20180213=
/bin/cargo build --manifest-path /usr/obj/ports/rust-1.24.0/rustc-1.24.0-sr=
c/src/bootstrap/Cargo.toml --verbose --verbose --frozen
error: process didn't exit successfully: `/usr/obj/ports/rust-1.24.0/rust=
c-bootstrap-amd64-1.24.0-20180213/bin/rustc -vV` (signal: 6, SIGABRT: proce=
ss abort signal)
File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/x.py", line 20, in <m=
odule>
bootstrap.main()
File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstr=
ap.py", line 758, in main
bootstrap()
File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstr=
ap.py", line 738, in bootstrap
build.build_bootstrap()
File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstr=
ap.py", line 625, in build_bootstrap
run(args, env=3Denv, verbose=3Dself.verbose)
File "/usr/obj/ports/rust-1.24.0/rustc-1.24.0-src/src/bootstrap/bootstr=
ap.py", line 148, in run
raise RuntimeError(err)
RuntimeError: failed to run: /usr/obj/ports/rust-1.24.0/rustc-bootstrap-a=
md64-1.24.0-20180213/bin/cargo build --manifest-path /usr/obj/ports/rust-1.=
24.0/rustc-1.24.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
*** Error 1 in . (Makefile:159 'do-build')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2738 '/usr/obj=
/ports/rust-1.24.0/build-amd64/.build_done')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1938 '/usr/por=
ts/packages/amd64/all/rust-1.24.0.tgz')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2440 '_interna=
l-package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2419 'package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1956 '/var/db/=
pkg/rust-1.24.0/+CONTENTS')
*** Error 1 in /usr/ports/lang/rust (/usr/ports/infrastructure/mk/bsd.por=
t.mk:2419 'install')


----- End forwarded message -----
Stuart Henderson
2018-03-11 22:50:01 UTC
Permalink
Post by Patrick Marchand
Sent this to ports, but maybe it's better for misc? Tell me if I'm
wrong.
It hasn't shown up on ports@ yet.

Temporary hack to get it building until semarie can generate new bootstraps:

post-extract:
cp /usr/lib/libpthread.so.25.1 \
${WRKDIR}/rustc-bootstrap-${MACHINE_ARCH}-1.24.0-20180213/lib/
Patrick Marchand
2018-03-12 11:32:38 UTC
Permalink
Post by Stuart Henderson
cp /usr/lib/libpthread.so.25.1 \
${WRKDIR}/rustc-bootstrap-${MACHINE_ARCH}-1.24.0-20180213/lib/
Yep, that worked, thanks.
Stuart Henderson
2018-03-13 10:36:46 UTC
Permalink
Post by Patrick Marchand
Post by Stuart Henderson
cp /usr/lib/libpthread.so.25.1 \
${WRKDIR}/rustc-bootstrap-${MACHINE_ARCH}-1.24.0-20180213/lib/
Yep, that worked, thanks.
The updated bootstraps (plus other fixes) have now been committed,
so this workaround should be removed.

Loading...