Skip to content

Add -march=armv7-a parameter to armv7 android linker - #41657

Merged
bors merged 1 commit into
rust-lang:masterfrom
malbarbo:android-armv7-linker
May 3, 2017
Merged

Add -march=armv7-a parameter to armv7 android linker#41657
bors merged 1 commit into
rust-lang:masterfrom
malbarbo:android-armv7-linker

Conversation

@malbarbo

Copy link
Copy Markdown
Contributor

Without this option, the linker fails to link any library that uses std::future. The error points some undefined references, like std::__future_base::_Result_base.

For example, it fails to link rustc because llvm 4.0 uses std::future.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@carols10centscarols10cents added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 1, 2017
@arielb1

arielb1 commented May 2, 2017

Copy link
Copy Markdown
Contributor

r? @japaric you understand ARM better than I do

@rust-highfiverust-highfive assigned japaric and unassigned arielb1May 2, 2017
@arielb1

Copy link
Copy Markdown
Contributor

Thanks for the PR @malbarbo. @japaric or someone else should be reviewing your PR shortly.

@malbarbo

Copy link
Copy Markdown
ContributorAuthor

Here is a script to reproduce the problem. It is necessary to have ndk installed and the android gcc compilers on path.

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

Thanks @malbarbo!

@bors

bors commented May 2, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 9896483 has been approved by alexcrichton

@alexcrichtonalexcrichton added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 2, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request May 3, 2017
…excrichton
Add -march=armv7-a parameter to armv7 android linker
Without this option, the linker fails to link any library that uses `std::future`. The error points some undefined references, like `std::__future_base::_Result_base`.
For example, it fails to link rustc because llvm 4.0 uses `std::future`.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735
@frewsxcvfrewsxcv mentioned this pull request May 3, 2017
bors added a commit that referenced this pull request May 3, 2017
Rollup of 7 pull requests
- Successful merges: #41217, #41625, #41640, #41653, #41656, #41657, #41705
- Failed merges:
@bors
bors merged commit 9896483 into rust-lang:masterMay 3, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@malbarbo@rust-highfive@arielb1@alexcrichton@bors@carols10cents@japaric