[Bug 225600] lang/rust fails with error: the clang compiler does not support '-march=native'
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 1 05:13:46 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225600
Bug ID: 225600
Summary: lang/rust fails with error: the clang compiler does
not support '-march=native'
Product: Ports & Packages
Version: Latest
Hardware: arm64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: rust at FreeBSD.org
Reporter: gergely.czuczy at harmless.hu
Flags: maintainer-feedback?(rust at FreeBSD.org)
Assignee: rust at FreeBSD.org
Hello,
I'm trying to build rust (dep for firefox) on -CURRENT/aarch64, and it fails
with the following error:
[ 6%] Building CXX object src/wasm/CMakeFiles/wasm.dir/wasm-binary.cpp.o
gmake[7]: Leaving directory
'/usr/ports/lang/rust/work/rustc-1.23.0-src/build/aarch64-unknown-freebsd/stage0-rustc/aarch64-unknown
-freebsd/release/build/rustc_binaryen-cfb76adb9420e94c/out/build'
gmake[6]: Leaving directory
'/usr/ports/lang/rust/work/rustc-1.23.0-src/build/aarch64-unknown-freebsd/stage0-rustc/aarch64-unknown
-freebsd/release/build/rustc_binaryen-cfb76adb9420e94c/out/build'
gmake[5]: Leaving directory
'/usr/ports/lang/rust/work/rustc-1.23.0-src/build/aarch64-unknown-freebsd/stage0-rustc/aarch64-unknown
-freebsd/release/build/rustc_binaryen-cfb76adb9420e94c/out/build'
gmake[4]: Leaving directory
'/usr/ports/lang/rust/work/rustc-1.23.0-src/build/aarch64-unknown-freebsd/stage0-rustc/aarch64-unknown
-freebsd/release/build/rustc_binaryen-cfb76adb9420e94c/out/build'
--- stderr
c++: error: the clang compiler does not support '-march=native'
c++: error: the clang compiler does not support '-march=native'
gmake[7]: *** [src/asmjs/CMakeFiles/asmjs.dir/build.make:63:
src/asmjs/CMakeFiles/asmjs.dir/asm_v_wasm.cpp.o] Error 1
gmake[7]: *** [src/ir/CMakeFiles/ir.dir/build.make:63:
src/ir/CMakeFiles/ir.dir/ExpressionAnalyzer.cpp.o] Error 1
gmake[6]: *** [CMakeFiles/Makefile2:610: src/asmjs/CMakeFiles/asmjs.dir/all]
Error 2
gmake[6]: *** Waiting for unfinished jobs....
gmake[6]: *** [CMakeFiles/Makefile2:555: src/ir/CMakeFiles/ir.dir/all] Error 2
c++: error: the clang compiler does not support '-march=native'
gmake[7]: *** [src/wasm/CMakeFiles/wasm.dir/build.make:63:
src/wasm/CMakeFiles/wasm.dir/literal.cpp.o] Error 1
gmake[7]: *** Waiting for unfinished jobs....
c++: error: the clang compiler does not support '-march=native'
c++: error: the clang compiler does not support '-march=native'
gmake[7]: *** [src/wasm/CMakeFiles/wasm.dir/build.make:87:
src/wasm/CMakeFiles/wasm.dir/wasm.cpp.o] Error 1
gmake[7]: *** [src/wasm/CMakeFiles/wasm.dir/build.make:111:
src/wasm/CMakeFiles/wasm.dir/wasm-binary.cpp.o] Error 1
gmake[6]: *** [CMakeFiles/Makefile2:885: src/wasm/CMakeFiles/wasm.dir/all]
Error 2
gmake[5]: *** [CMakeFiles/Makefile2:171: CMakeFiles/binaryen.dir/rule] Error 2
gmake[4]: *** [Makefile:190: binaryen] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', src/vendor/cmake/src/lib.rs:631:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
thread 'main' panicked at 'command did not execute successfully:
"/usr/ports/lang/rust/work/rustc-1.23.0-src/build/aarch64-unknown-freebsd/stage0/bin/cargo"
"build" "--target" "aarch64-unknown-freebsd" "--release" "--frozen"
"--features" " jemalloc llvm" "--manifest-path"
"/usr/ports/lang/rust/work/rustc-1.23.0-src/src/rustc/Cargo.toml"
"--message-format" "json"
expected success, got: exit code: 101', src/bootstrap/compile.rs:882:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
# uname -a
FreeBSD build-pine64.bealak.harmless.hu 12.0-CURRENT FreeBSD 12.0-CURRENT #0
r328533M: Mon Jan 29 15:43:25 CET 2018
toor at marvin.harmless.hu:/tank/rpi3/crochet/work.pine64vanilla/obj/tank/rpi3/src/arm64.aarch64/sys/GENERIC-NODEBUG
arm64
It's after the clang-6.0.0 import.
Could you please fix this?
Best regards,
Gergely
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list