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

Initial fixes for linux x32 #812

Merged
merged 8 commits into from Oct 19, 2017
Merged

Initial fixes for linux x32 #812

merged 8 commits into from Oct 19, 2017

Conversation

malbarbo
Copy link
Contributor

Tested with a local build of rustc. The main test can be compiled but fails to execute (receives SIGTRAP, which I think in this case indicates memory violation, I will open an issue in the rustc repo).

This PR is important because it fixes the definition of c_long and c_ulong. Without these fixes, rustc crash with the error:

Cannot emit physreg copy instruction
UNREACHABLE executed at /checkout/src/llvm/lib/Target/X86/X86InstrInfo.cpp:5778!

Related rust-lang/rust#37976

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@alexcrichton
Copy link
Member

@bors: r+

...?

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Oct 18, 2017

📌 Commit dbe6d2e has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Oct 18, 2017

☔ The latest upstream changes (presumably #811) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

Thanks! I think this may need a rebase though now?

@malbarbo
Copy link
Contributor Author

Rebased. All green.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Oct 19, 2017

📌 Commit a5bd4b5 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Oct 19, 2017

⌛ Testing commit a5bd4b5 with merge 4d29833...

bors added a commit that referenced this pull request Oct 19, 2017
Initial fixes for linux x32

Tested with a local build of rustc. The main test can be compiled but fails to execute (receives SIGTRAP, which I think in this case indicates memory violation, I will open an issue in the rustc repo).

This PR is important because it fixes the definition of `c_long` and `c_ulong`. Without these fixes, rustc crash with the error:

```
Cannot emit physreg copy instruction
UNREACHABLE executed at /checkout/src/llvm/lib/Target/X86/X86InstrInfo.cpp:5778!
```

Related rust-lang/rust#37976
@bors
Copy link
Contributor

bors commented Oct 19, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Oct 19, 2017

⌛ Testing commit a5bd4b5 with merge 074125f...

bors added a commit that referenced this pull request Oct 19, 2017
Initial fixes for linux x32

Tested with a local build of rustc. The main test can be compiled but fails to execute (receives SIGTRAP, which I think in this case indicates memory violation, I will open an issue in the rustc repo).

This PR is important because it fixes the definition of `c_long` and `c_ulong`. Without these fixes, rustc crash with the error:

```
Cannot emit physreg copy instruction
UNREACHABLE executed at /checkout/src/llvm/lib/Target/X86/X86InstrInfo.cpp:5778!
```

Related rust-lang/rust#37976
@bors
Copy link
Contributor

bors commented Oct 19, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Oct 19, 2017 via email

@bors
Copy link
Contributor

bors commented Oct 19, 2017

⌛ Testing commit a5bd4b5 with merge 7e33065...

bors added a commit that referenced this pull request Oct 19, 2017
Initial fixes for linux x32

Tested with a local build of rustc. The main test can be compiled but fails to execute (receives SIGTRAP, which I think in this case indicates memory violation, I will open an issue in the rustc repo).

This PR is important because it fixes the definition of `c_long` and `c_ulong`. Without these fixes, rustc crash with the error:

```
Cannot emit physreg copy instruction
UNREACHABLE executed at /checkout/src/llvm/lib/Target/X86/X86InstrInfo.cpp:5778!
```

Related rust-lang/rust#37976
@bors
Copy link
Contributor

bors commented Oct 19, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 7e33065 to master...

@bors bors merged commit a5bd4b5 into rust-lang:master Oct 19, 2017
CryZe added a commit to CryZe/time that referenced this pull request May 7, 2018
As indicated by rust-lang/libc#812 the x32 ABI
specifies the tv_nsec field as i64 instead of c_long. With this PR the time crate now successfully builds with the x86_64-unknown-linux-gnux32 target.
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

Successfully merging this pull request may close these issues.

None yet

3 participants