Can't say much about it, doesn't emerge [100%] Linking CXX executable ../../bin/llvm-mc cd /var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/x86_64-unknown-linux-gnu/llvm/tools/llvm-mc && /usr/bin/cmake -E cmake_link_script CMakeFiles/llvm-mc.dir/link.txt --verbose=1 /usr/bin/g++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-O1 -Wl,--as-needed -Wl,-O2 -Wl,--as-needed -Wl,-fuse-ld=gold -Wl,-z,now -Wl,-z,relro -lpthread -lgomp -Wl,-allow-shlib-undefined -Wl,-O3 -Wl,--gc-sections CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o CMakeFiles/llvm-mc.dir/Disassembler.cpp.o -o ../../bin/llvm-mc -Wl,-rpath,"\$ORIGIN/../lib" ../../lib/libLLVMX86AsmPrinter.a ../../lib/libLLVMARMAsmPrinter.a ../../lib/libLLVMAArch64AsmPrinter.a ../../lib/libLLVMMipsAsmPrinter.a ../../lib/libLLVMPowerPCAsmPrinter.a ../../lib/libLLVMSystemZAsmPrinter.a ../../lib/libLLVMMSP430AsmPrinter.a ../../lib/libLLVMSparcAsmPrinter.a ../../lib/libLLVMX86AsmParser.a ../../lib/libLLVMARMAsmParser.a ../../lib/libLLVMAArch64AsmParser.a ../../lib/libLLVMMipsAsmParser.a ../../lib/libLLVMPowerPCAsmParser.a ../../lib/libLLVMSystemZAsmParser.a ../../lib/libLLVMSparcAsmParser.a ../../lib/libLLVMX86Desc.a ../../lib/libLLVMARMDesc.a ../../lib/libLLVMAArch64Desc.a ../../lib/libLLVMMipsDesc.a ../../lib/libLLVMPowerPCDesc.a ../../lib/libLLVMSystemZDesc.a ../../lib/libLLVMJSBackendDesc.a ../../lib/libLLVMMSP430Desc.a ../../lib/libLLVMSparcDesc.a ../../lib/libLLVMX86Disassembler.a ../../lib/libLLVMARMDisassembler.a ../../lib/libLLVMAArch64Disassembler.a ../../lib/libLLVMMipsDisassembler.a ../../lib/libLLVMPowerPCDisassembler.a ../../lib/libLLVMSystemZDisassembler.a ../../lib/libLLVMSparcDisassembler.a ../../lib/libLLVMX86Info.a ../../lib/libLLVMARMInfo.a ../../lib/libLLVMAArch64Info.a ../../lib/libLLVMMipsInfo.a ../../lib/libLLVMPowerPCInfo.a ../../lib/libLLVMSystemZInfo.a ../../lib/libLLVMJSBackendInfo.a ../../lib/libLLVMMSP430Info.a ../../lib/libLLVMSparcInfo.a ../../lib/libLLVMMC.a ../../lib/libLLVMMCParser.a ../../lib/libLLVMSupport.a ../../lib/libLLVMX86AsmPrinter.a ../../lib/libLLVMX86Utils.a ../../lib/libLLVMObject.a ../../lib/libLLVMBitReader.a ../../lib/libLLVMMipsAsmPrinter.a ../../lib/libLLVMPowerPCAsmPrinter.a ../../lib/libLLVMSparcAsmPrinter.a ../../lib/libLLVMMCParser.a ../../lib/libLLVMTarget.a ../../lib/libLLVMAnalysis.a ../../lib/libLLVMProfileData.a ../../lib/libLLVMCore.a ../../lib/libLLVMMSP430AsmPrinter.a ../../lib/libLLVMARMDesc.a ../../lib/libLLVMARMAsmPrinter.a ../../lib/libLLVMARMInfo.a ../../lib/libLLVMAArch64Desc.a ../../lib/libLLVMAArch64AsmPrinter.a ../../lib/libLLVMAArch64Info.a ../../lib/libLLVMAArch64Utils.a ../../lib/libLLVMSystemZDesc.a ../../lib/libLLVMSystemZAsmPrinter.a ../../lib/libLLVMSystemZInfo.a ../../lib/libLLVMMCDisassembler.a ../../lib/libLLVMMC.a ../../lib/libLLVMSupport.a -lrt -ldl -lm make[3]: Leaving directory '/var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/x86_64-unknown-linux-gnu/llvm' [100%] Built target llvm-mc make[2]: Leaving directory '/var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/x86_64-unknown-linux-gnu/llvm' /usr/bin/cmake -E cmake_progress_start /var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/x86_64-unknown-linux-gnu/llvm/CMakeFiles 0 make[1]: Leaving directory '/var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/x86_64-unknown-linux-gnu/llvm' cp /var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/src/rustllvm/llvm-auto-clean-trigger /var/tmp/notmpfs/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/x86_64-unknown-linux-gnu/llvm/llvm-finished-building * ERROR: dev-lang/rust-1.16.0::gentoo failed (compile phase): * emake failed
Created attachment 475116 [details] info info
Created attachment 475118 [details] rust-1.16.0:20170603-000656.log.xz info
This is related to your other bug 620524. (The build log contains "install-xattr: setxattr() failed: Operation not permitted".)
with FEATURES="-xattr" I managed to emerge it
setting FEATURES="-xattr" had no effect on my system. disabling kernel option EXT4_FS_SECURITY allowed me to build rust successfully in ext4 tmp dir. unfortunately that breaks other things.
Created attachment 483968 [details] most-recent build log
Created attachment 483970 [details] eclass-debug.log
Created attachment 483972 [details] environment
Regardless of FEATURE and use flag combinations suggested I can't seem to get rust to build. Everytime it fails on 100% with emake failed.
Hubert, please build it with -j1 and post the build log again. That is the only way to see exactly what happens at the end stage (100%).
Created attachment 486438 [details] most-recent build log v2 Build log made with -j1 clearly shows "clang-3.9: error: unknown argument: '-msahf'"
Hubert, you are annoying clang with that gcc cflag -msahf. You really don't need to manually enable any of those -mxxxx cflags. -march=corei7 enables all suitable machine architecture flags. If you are on sandybridge or newer you may use -march=corei7-avx
I'm going to close this one; the proposed solution of removing the GCC-specific flag seems good enough to me.
No Dirkjian, it is not resolved. I gave a fix for Hubert's problem, but also showed that Hubert's problem is different and not the same bug as Alessandro reported.
But Alessandro's problem appears to be about bug 620524, right?
Yes, I guess it could be considered a dupe. It's an install-setxattr problem for me too, though I'm not on a hardened file. So if you want to close it as dupe, I guess that's ok.