Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

morestack.S needs to be run through a preprocessor #10

Open
alexcrichton opened this issue Jun 8, 2015 · 2 comments
Open

morestack.S needs to be run through a preprocessor #10

alexcrichton opened this issue Jun 8, 2015 · 2 comments

Comments

@alexcrichton
Copy link

First off, this is super awesome! I'm quite excited to see where this goes.

When diagnosing rust-lang/cargo#1695 I tried to give this a spin, but I found that compiling libmorestack.a failed for me due to some preprocessor stuff. I think that llvm-mc doesn't have a built-in preprocessor (or it's at least quite limited), which is why we run it through gcc -E beforehand.

@japaric
Copy link
Contributor

japaric commented Jun 9, 2015

Does this error happen when cross-compiling to a specific arch? I haven't encountered this issue when cross compiling to mips, but I haven't tried other arches. I ask because I'd like to add a test for this, if possible.

(I'm aware that the Rust build system calls gcc -E in some places, but cross compiling to mips worked without them, so I didn't add them)

@alexcrichton
Copy link
Author

Ah I was compiling for x86_64

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

No branches or pull requests

2 participants