Date: Thu, 01 Feb 2018 05:13:42 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 225600] lang/rust fails with error: the clang compiler does not support '-march=native' Message-ID: <bug-225600-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225600 Bug ID: 225600 Summary: lang/rust fails with error: the clang compiler does not support '-march=3Dnative' Product: Ports & Packages Version: Latest Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: rust@FreeBSD.org Reporter: gergely.czuczy@harmless.hu Flags: maintainer-feedback?(rust@FreeBSD.org) Assignee: rust@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/s= tage0-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/s= tage0-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/s= tage0-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/s= tage0-rustc/aarch64-unknown -freebsd/release/build/rustc_binaryen-cfb76adb9420e94c/out/build' --- stderr c++: error: the clang compiler does not support '-march=3Dnative' c++: error: the clang compiler does not support '-march=3Dnative' 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] Erro= r 2 c++: error: the clang compiler does not support '-march=3Dnative' 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=3Dnative' c++: error: the clang compiler does not support '-march=3Dnative' 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] Erro= r 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=3D1` 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/s= tage0/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=3D1` 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=20=20=20=20 toor@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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225600-13>