Rust 1.3 was released last week, http://blog.rust-lang.org/2015/09/17/Rust-1.3.html Upstream has been tracking the release branch of llvm for a few months now so this version should allow ~sys-devel/llvm-3.7.0 as the system-llvm version.
Trying a naive bump locally confirms that llvm 3.7.0 is accepted configure: CFG_ENABLE_CLANG := 1 configure: configure: using custom LLVM at /usr configure: configure: found ok version of LLVM: 3.7.0 configure: CFG_USING_CLANG := 1 configure: configure: found ok version of CLANG: 3.7.0 configure: configure: CFG_CC := clang configure: CFG_CXX := clang++ but the compilation fails with what appears to be a GCC-specific -W setting clang++ -O2 -Wall -Werror -g -fPIC -m64 -Qunused-arguments -fno-rtti -Qunused-arguments -c -o x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o -I//usr//include -march=amdfam10 -O2 -pipe -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -ffunction-sections -fdata-sections -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I /usr/include -I /var/tmp/portage/dev-lang/rust-1.3.0/work/rustc-1.3.0/src/rustllvm/include /var/tmp/portage/dev-lang/rust-1.3.0/work/rustc-1.3.0/src/rustllvm/ExecutionEngineWrapper.cpp error: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Werror,-Wunknown-warning-option] /var/tmp/portage/dev-lang/rust-1.3.0/work/rustc-1.3.0/mk/rustllvm.mk:60: recipe for target 'x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o' failed make: *** [x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o] Error 1
(In reply to Jouni Kosonen from comment #0) > Rust 1.3 was released last week, > http://blog.rust-lang.org/2015/09/17/Rust-1.3.html > See https://github.com/gentoo/gentoo-rust/issues/17 > Upstream has been tracking the release branch of llvm for a few months now > so this version should allow ~sys-devel/llvm-3.7.0 as the system-llvm > version. No, it shouldn't. I'm removing support of system wide llvm from this release and live ebuilds until upstream fixies linking (no estimate when it will happen).
(In reply to Jouni Kosonen from comment #1) > but the compilation fails with what appears to be a GCC-specific -W setting > > clang++ -O2 -Wall -Werror -g -fPIC -m64 -Qunused-arguments -fno-rtti > -Qunused-arguments -c -o > x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o -I//usr//include > -march=amdfam10 -O2 -pipe -fPIC -fvisibility-inlines-hidden -Wall -W > -Wno-unused-parameter -Wwrite-strings -Wcast-qual > -Wno-missing-field-initializers -pedantic -Wno-long-long > -Wno-maybe-uninitialized -Wno-comment -std=c++11 -ffunction-sections > -fdata-sections -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS > -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I /usr/include -I > /var/tmp/portage/dev-lang/rust-1.3.0/work/rustc-1.3.0/src/rustllvm/include > /var/tmp/portage/dev-lang/rust-1.3.0/work/rustc-1.3.0/src/rustllvm/ > ExecutionEngineWrapper.cpp > error: unknown warning option '-Wno-maybe-uninitialized'; did you mean > '-Wno-uninitialized'? [-Werror,-Wunknown-warning-option] > /var/tmp/portage/dev-lang/rust-1.3.0/work/rustc-1.3.0/mk/rustllvm.mk:60: > recipe for target > 'x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o' failed > make: *** [x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o] Error > 1 Please, show USEs you set for rust. Also there is a problem with -Werror (I'm going to fix it for release and live ebuilds).
(In reply to Jauhien Piatlicki from comment #3) > (In reply to Jouni Kosonen from comment #1) > > Please, show USEs you set for rust. Also there is a problem with -Werror > (I'm going to fix it for release and live ebuilds). # emerge -pv =dev-lang/rust-1.3.0 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ~] dev-lang/rust-1.3.0:stable::local-repo [1.2.0:stable::gentoo] USE="clang system-llvm -debug -doc -libcxx" 0 KiB Total: 1 package (1 upgrade), Size of downloads: 0 KiB With USE="-clang" I do get the -Werror=pedantic problem for that same file.
Should be ok now.