Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-pass failed at math related 3 tests on linux 64 #10762

Closed
yichoi opened this issue Dec 2, 2013 · 4 comments
Closed

run-pass failed at math related 3 tests on linux 64 #10762

yichoi opened this issue Dec 2, 2013 · 4 comments
Labels
O-linux Operating system: Linux

Comments

@yichoi
Copy link
Contributor

yichoi commented Dec 2, 2013

i am testing with 61443dc1f5089df637edba83587b9f3020063266

using metrics ratcher: tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass-metrics.json
result of ratchet: 0 matrics added, 0 removed, 0 improved, 0 regressed, 0 noise
updated ratchet file

failures:
    [run-pass] run-pass/float-literal-inference.rs
    [run-pass] run-pass/intrinsics-math.rs
    [run-pass] run-pass/issue-2214.rs

test result: FAILED. 1324 passed; 3 failed; 54 ignored; 0 measured

task '<main>' failed at 'Some tests failed', /home/yichoi/rust_latest/src/compiletest/compiletest.rs:243
make: *** [tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass.ok] Error 101

while testing

error: compilation failed!
command: x86_64-unknown-linux-gnu/stage2/bin/rustc /home/yichoi/rust_latest/src/test/run-pass/issue-2214.rs -o x86_64-unknown-linux-gnu/test/run-pass/issue-2214.stage2-x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/run-pass -L x86_64-unknown-linux-gnu/test/run-pass/issue-2214.stage2-x86_64-unknown-linux-gnu.libaux --cfg rtopt --cfg debug -Z prefer-dynamic -O --target=x86_64-unknown-linux-gnu
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
error: linking with `cc` failed: exit code: 1
note: cc arguments: '-m64' '-L/home/yichoi/rust_latest/build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' '-o' 'x86_64-unknown-linux-gnu/test/run-pass/issue-2214.stage2-x86_64-unknown-linux-gnu' 'x86_64-unknown-linux-gnu/test/run-pass/issue-2214.o' '-Wl,--as-needed' '-Wl,-O1' '-L/home/yichoi/rust_latest/build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' '-lstd-6425b930ca146ae9-0.9-pre' '-L/home/yichoi/rust_latest/build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' '-lrustuv-a13edc95d75df17-
0.9-pre' '-Lx86_64-unknown-linux-gnu/test/run-pass' '-Lx86_64-unknown-linux-gnu/test/run-pass/issue-2214.stage2-x86_64-unknown-linux-gnu.libaux' '-L/home/yichoi/rust_latest/build/.rust' '-L/home/yichoi/rust_latest/build' '-lmorestack' '-Wl,-rpath,$ORIGIN/../../stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' '-Wl,-rpath,/home/yichoi/rust_latest/build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' '-Wl,-rpath,/usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib'
note: /usr/bin/ld: x86_64-unknown-linux-gnu/test/run-pass/issue-2214.o: undefined reference to symbol 'lgamma_r@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /home/yichoi/rust_latest/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /home/yichoi/rust_latest/src/librustc/lib.rs:396

------------------------------------------

task '[run-pass] run-pass/issue-2214.rs' failed at 'explicit failure', /home/yichoi/rust_latest/src/compiletest/runtest.rs:892
@klutzy
Copy link
Contributor

klutzy commented Dec 2, 2013

Seems like -Z prefer-dynamic causes this.

@alexcrichton
Copy link
Member

What linux OS is this running on? This looks like a dupe of #10743 to me

@klutzy
Copy link
Contributor

klutzy commented Dec 2, 2013

@alexcrichton I got the result on debian x64. I thought it is similar to #2510 since -Z print-link-args -Z prefer-dynamics doesn't show -lm.

@alexcrichton
Copy link
Member

In that case, this is definitely a dupe of #10743, closing in favor of that one.

flip1995 pushed a commit to flip1995/rust that referenced this issue May 20, 2023
Enhance `needless_collect`: lint in method/function arguments that take an `IntoIterator`

Updates `needless_collect` to also lint `collect` calls in method/function arguments that take an `IntoIterator` (for example `Extend::extend`). Every `Iterator` trivially implements `IntoIterator` and collecting it only causes an unnecessary allocation.

---

changelog: Enhancement: [`needless_collect`]: Now also detects function arguments, taking a generic `IntoIterator`
[rust-lang#10777](rust-lang/rust-clippy#10777)
<!-- changelog_checked -->

fixes rust-lang#10762
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-linux Operating system: Linux
Projects
None yet
Development

No branches or pull requests

3 participants