-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fails when LTO is enabled #186
Comments
Related ticket is this #146 As far as I remember lto means generating multiple |
The state of the other issues was unclear to me. Wasn't sure if this was accepted behavior or needed a reproduction so I made this one. If you don't want to support LTO then I would like the Readme to mention that. Thanks for working on this project btw. |
I don't mind supporting LTO, just the way it works now it asks |
@e00E try version 0.2.14, seems to work better for me. |
Removing LTO hack seems to fix the problem and both It probably makes sense to drop the hack and proclaim that 1.67.1 + LTO of any sort is not supported... Decisions, decisions... 🤔 |
@e00E I pushed a branch called |
That fixes it. |
upgrade from 0.2.14 all good here too. |
I'm still getting an issue on 0.2.21 that seems related. With thin LTO when trying to disassemble a ~/rsonpath> cargo asm -p rsonpath --bin rq
warning: ignoring emit path because multiple .s files were produced
warning: `rsonpath` (bin "rq") generated 1 warning
Finished release [optimized + debuginfo] target(s) in 0.03s
Error: Cannot locate the path to the asm file With LTO disabled it works.
I'm thinking it's this issue, judging by "warning: ignoring emit path because multiple .s files were produced`? |
What version of the compiler are you using? |
Latest 1.73.0: |
Hmm... Is the repo publicly available? |
Yup, it's https://github.com/V0ldek/rsonpath. The exact command I'm running is |
Interestingly enough |
May it be because |
Most likely, but I'm passing |
I guess the best way to deal with LTO is to implement #174 after all. I'll look into that once I'm done messing with |
a.zip
Enter the
b
directory.cargo check
works.cargo asm
fails with a long error that ends with:Succeeds with
lto = "off"
,lto = false
. Fails withlto = "thin"
,lto = "fat"
. See the Cargo documentation for more information on LTO.The text was updated successfully, but these errors were encountered: