Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561056 - dev-lang/rust-1.3 version bump
Summary: dev-lang/rust-1.3 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jauhien Piatlicki (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-21 17:16 UTC by Jouni Kosonen
Modified: 2015-09-27 18:16 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Kosonen 2015-09-21 17:16:16 UTC
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.
Comment 1 Jouni Kosonen 2015-09-21 18:58:34 UTC
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
Comment 2 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-09-22 18:44:51 UTC
(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).
Comment 3 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-09-22 18:46:26 UTC
(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).
Comment 4 Jouni Kosonen 2015-09-22 19:06:54 UTC
(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.
Comment 5 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-09-27 18:16:26 UTC
Should be ok now.