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

Windows: run-pass/test-runner-hides-main.rs triggers LLVM assert #10872

Closed
vadimcn opened this issue Dec 9, 2013 · 3 comments
Closed

Windows: run-pass/test-runner-hides-main.rs triggers LLVM assert #10872

vadimcn opened this issue Dec 9, 2013 · 3 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows Operating system: Windows

Comments

@vadimcn
Copy link
Contributor

vadimcn commented Dec 9, 2013

Assertion failed: Section->Number != -1 && "Sections with relocations must be real!", file c:/NW/rust/src/llvm/lib/MC/WinCOFFObjectWriter.cpp, line 224

Note: this seems to be specific to LLVM integrated assembler. Compiling via external assembler, i.e. after set RUSTFLAGS=-Z no-integrated-as works fine.

@alexcrichton
Copy link
Member

What do you mean by the LLVM integrated assembler working? There is no no-integrated-as option to the compiler, and as far as I know on Windows we always use g++ to compile LLVM-generated assembly (foo.s), so we should be always using an external assembler.

Also, was this a recent regression for you? I just ran this on my slightly-out-of-date windows VM, and the test compiled just fine for me.

@alexcrichton
Copy link
Member

I talked with @vadimcn on IRC, and this is being opened as a placeholder issue for something that he's working on, so this can't have any external investigation right now.

bors added a commit that referenced this issue Feb 12, 2014
Cleans up a few issues with `fourcc`:
* Corrects the endianness in the docs example
* Removes `#[cfg(not(test))]` (bors might not build this on Windows. If the build fails, I'll re-add it)
* Adds a FIXME referencing the LLVM assert issue we encountered with bors builds on Windows (Same error as #10872)
@alexcrichton
Copy link
Member

Closing as a dupe of #13793 (a little more descriptive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

2 participants