Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up-ffunction-sections triggers an LLVM assert on windows #13846
Comments
alexcrichton
added
I-crash
labels
Apr 29, 2014
klutzy
added a commit
to klutzy/rust
that referenced
this issue
Aug 12, 2014
klutzy
added a commit
to klutzy/rust
that referenced
this issue
Aug 12, 2014
bors
added a commit
that referenced
this issue
Aug 12, 2014
brson
added
the
A-windows
label
Aug 12, 2014
This comment has been minimized.
This comment has been minimized.
|
#13793 issue has been fixed now, but it seems that other obscure bug exists in llvm or linker.
Linker failed to find |
This comment has been minimized.
This comment has been minimized.
|
@klutzy Are you able to reproduce those 'obscure bugs' with the latest Rust? |
This comment has been minimized.
This comment has been minimized.
|
I re-enabled function sections on Windows in the current master branch, and it compiled and passed tests without errors. |
This comment has been minimized.
This comment has been minimized.
|
It is expected that |
This comment has been minimized.
This comment has been minimized.
I am talking about size of the final executable, not about rlib. I thought all text/data sections get merged during linking. Is there some residual per-section overhead?
Good question... There was a patch enabling |
This comment has been minimized.
This comment has been minimized.
|
... and the answer is ... NO |
This comment has been minimized.
This comment has been minimized.
Oh you may be right. I think I'm forgetting the exact specifics but what you're saying sounds right. Maybe there's a mixture of the two happening on windows?
:( |
alexcrichton
added
O-windows-gnu
and removed
O-windows
labels
Dec 21, 2015
brson
added
the
T-compiler
label
Jun 1, 2017
This comment has been minimized.
This comment has been minimized.
|
Kind of a wishlist feature, so closing. We just have to remember this problem if somebody ever tries to turn -ffunction-sections on again. Reopen if you disagree. |
alexcrichton commentedApr 29, 2014
It's the same assert as seen by #13793. I suspect that they are related bugs, and that this is likely an upstream LLVM bug.
This is a tracking issue for this for now. I'm going to turn off -ffunction-sections for windows.