Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620526 - dev-lang/rust-1.16.0 emake failed
Summary: dev-lang/rust-1.16.0 emake failed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-03 17:36 UTC by Alessandro Barbieri
Modified: 2017-07-30 21:16 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info (info,13.37 KB, text/plain)
2017-06-03 17:36 UTC, Alessandro Barbieri
Details
rust-1.16.0:20170603-000656.log.xz (rust-1.16.0:20170603-000656.log.xz,77.21 KB, application/x-xz)
2017-06-03 17:40 UTC, Alessandro Barbieri
Details
most-recent build log (build.log,435.80 KB, text/x-log)
2017-07-13 11:59 UTC, Hubert Kowalski
Details
eclass-debug.log (eclass-debug.log,3.06 KB, text/x-log)
2017-07-13 12:00 UTC, Hubert Kowalski
Details
environment (environment,122.14 KB, text/plain)
2017-07-13 12:00 UTC, Hubert Kowalski
Details
most-recent build log v2 (build.log.gz,79.29 KB, application/gzip)
2017-07-22 08:50 UTC, Hubert Kowalski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2017-06-03 17:36:31 UTC
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
Comment 1 Alessandro Barbieri 2017-06-03 17:36:56 UTC
Created attachment 475116 [details]
info

info
Comment 2 Alessandro Barbieri 2017-06-03 17:40:09 UTC
Created attachment 475118 [details]
rust-1.16.0:20170603-000656.log.xz

info
Comment 3 Felix Janda 2017-06-03 22:53:31 UTC
This is related to your other bug 620524. (The build log contains
"install-xattr: setxattr() failed: Operation not permitted".)
Comment 4 Alessandro Barbieri 2017-06-04 23:15:24 UTC
with FEATURES="-xattr" I managed to emerge it
Comment 5 matt black 2017-07-03 04:53:42 UTC
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.
Comment 6 Hubert Kowalski 2017-07-13 11:59:28 UTC
Created attachment 483968 [details]
most-recent build log
Comment 7 Hubert Kowalski 2017-07-13 12:00:04 UTC
Created attachment 483970 [details]
eclass-debug.log
Comment 8 Hubert Kowalski 2017-07-13 12:00:32 UTC
Created attachment 483972 [details]
environment
Comment 9 Hubert Kowalski 2017-07-13 12:01:48 UTC
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.
Comment 10 matt black 2017-07-14 13:24:08 UTC
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%).
Comment 11 Hubert Kowalski 2017-07-22 08:50:54 UTC
Created attachment 486438 [details]
most-recent build log v2

Build log made with -j1 clearly shows "clang-3.9: error: unknown argument: '-msahf'"
Comment 12 matt black 2017-07-22 19:32:38 UTC
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
Comment 13 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-07-30 07:21:27 UTC
I'm going to close this one; the proposed solution of removing the GCC-specific flag seems good enough to me.
Comment 14 matt black 2017-07-30 18:30:53 UTC
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.
Comment 15 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-07-30 18:44:00 UTC
But Alessandro's problem appears to be about bug 620524, right?
Comment 16 matt black 2017-07-30 21:16:56 UTC
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.