pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust: on i386 and powerpc, we need the internal LLVM
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Tue Jun 14 18:41:50 2022 +0000
Changeset: 05e8c50d774cc99b4bf1e5a810f6c38884b823ed
Modified Files:
rust/options.mk
Log Message:
rust: on i386 and powerpc, we need the internal LLVM
...for a successful build. Otherwise we get
error: unexpected `cfg` condition name
--> library/core/src/num/dec2flt/fpu.rs:11:36
|
11 | #[cfg(all(target_arch = "x86", not(target_feature = "sse2")))]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unexpected-cfgs` implied by `-D warnings`
and
error: unexpected `cfg` condition name
--> library/core/src/../../portable-simd/crates/core_simd/src/masks.rs:10:33
|
10 | all(target_arch = "x86_64", target_feature = "avx512f"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
I've not seen this error on amd64 with pkgsrc LLVM 13.0.1, have
not quite figured out why not.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=05e8c50d774cc99b4bf1e5a810f6c38884b823ed
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust/options.mk | 6 ++++++
1 file changed, 6 insertions(+)
diffs:
diff --git a/rust/options.mk b/rust/options.mk
index ddc7126dd7..4ed5fd4530 100644
--- a/rust/options.mk
+++ b/rust/options.mk
@@ -14,6 +14,12 @@ PKG_SUGGESTED_OPTIONS+= rust-llvm
. endif
.endif
+# As of 1.61,
+# The pkgsrc LLVM causes build failure on i386 and powerpc
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"
+PKG_SUGGESTED_OPTIONS+= rust-llvm
+.endif
+
# Bundle OpenSSL and curl into the cargo binary when producing
# bootstraps on NetBSD.
.if ${OPSYS} == "NetBSD" && ${BUILD_TARGET} == "dist"
Home |
Main Index |
Thread Index |
Old Index