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

Buildbot failing due to a link error on arm-linux-androideabi #38248

Closed
ghost opened this issue Dec 8, 2016 · 4 comments
Closed

Buildbot failing due to a link error on arm-linux-androideabi #38248

ghost opened this issue Dec 8, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 8, 2016

PR #38192 was recently accepted, but didn't pass buildbot tests.
build report
log contents

The error is:

CANNOT LINK EXECUTABLE: cannot locate symbol "_ZN11collections5slice10merge_sort8collapse17hfd9d6022dd12b1bbE" referenced by "./collectionstest-b2ddd77ea87480bb"...

adb: error: remote object '/data/tmp/check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu-collectionstest-b2ddd77ea87480bb.log' does not exist


command did not execute successfully: "adb" "pull" "/data/tmp/check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu-collectionstest-b2ddd77ea87480bb.log" "/buildslave/rust-buildbot/slave/auto-linux-64-x-android-t/build/obj/build/tmp"
expected success, got: exit code: 1

Symbol _ZN11collections5slice10merge_sort8collapse17hfd9d6022dd12b1bbE is actually a function I introduced. It is a fn nested within another fn, and called from one place only.

@michaelwoerister
Copy link
Member

cc me

@alexcrichton
Copy link
Member

cc @rust-lang/compiler (in addition to @michaelwoerister)

@ghost
Copy link
Author

ghost commented Dec 9, 2016

I should also note that, after some discussion over IRC, we decided to stick one #[inline] above that function. Hopefully that fixes the linker problem.

It's best to inline the function in this particular case anyway. By the way, the reason why the function was not getting inlined without explicit #[inline] is that that it was non-generic and called from a generic function.

EDIT: Indeed, inlining did work around the linker problem.

@alexcrichton
Copy link
Member

Buildbot's on its way out, and I think this was resolved, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants