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

Pipeline is broken with current rust nightly. #7

Closed
jschwe opened this issue May 4, 2020 · 4 comments
Closed

Pipeline is broken with current rust nightly. #7

jschwe opened this issue May 4, 2020 · 4 comments

Comments

@jschwe
Copy link
Contributor

jschwe commented May 4, 2020

I'm currently working on hermit-os/kernel#40 and I just can't get the pipeline to work. Compiling (rusty_demo) always fails at the last step with
error: failed to get bitcode from object file for LTO (Bitcode section not found in object file)

This error is also present in the gitlab ci pipeline. At first I couldn't reproduce this issue on my machine.
But after updating my rust nightly I now also run into this issue on my machine.
nightly-x86_64-unknown-linux-gnu updated - rustc 1.45.0-nightly (7ced01a73 2020-04-30) (from rustc 1.44.0-nightly (45d050cde 2020-04-21))

Can anyone else reproduce this?

@jschwe jschwe changed the title Pipeline is broken with current rust nightlies. Pipeline is broken with current rust nightly. May 4, 2020
jschwe added a commit to jschwe/rusty-hermit that referenced this issue May 6, 2020
Building release version with lto optimization fails with nightlies after 2020-04-29, so we just use that one for now.
jschwe added a commit to jschwe/rusty-hermit that referenced this issue May 6, 2020
Building release version with lto optimization fails with nightlies after 2020-04-29, so we just use that one for now.
jschwe added a commit to jschwe/rusty-hermit that referenced this issue May 6, 2020
Building release version with lto optimization fails with nightlies after 2020-04-29, so we just use that one for now.
@stlankes
Copy link
Contributor

stlankes commented May 6, 2020

Yes, I am able to reproduce the problem. I think that we have to disable LTO for the release version. Afterwards it works on my system.

@jschwe
Copy link
Contributor Author

jschwe commented May 7, 2020

@stlankes Could you also merge this into the devel branch?

Also would you like to keep this issue open, or should we create a new issue for figuring out why LTO doesn't work anymore?

@stlankes
Copy link
Contributor

stlankes commented May 7, 2020

Hm, a new issue will be great.

I will cherry-pick the PR and merge it to the branch devel.

@jschwe
Copy link
Contributor Author

jschwe commented May 8, 2020

The Pipeline works again since LTO has been disabled for now. Closing this issue. Further discussion of the LTO problem in #15

@jschwe jschwe closed this as completed May 8, 2020
ryan-jacobs1 pushed a commit to cs360v8/rusty-hermit that referenced this issue Sep 24, 2020
Fix loader. Previously strongly dependent on the input ELF's layout.
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

No branches or pull requests

2 participants