-
Notifications
You must be signed in to change notification settings - Fork 154
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
Panic on autocxx build. #903
Comments
Thanks. I'll take a look but it seems unlikely I'll be able to figure this out without the code. If I fail, then perhaps I'll see if we can get the test case minimization pipeline working for you - but it's fiddly so I'll have a look first. |
Yep, understandable. I didn't notice the mechanism to get extra output so I will try that. Worst case scenario hopefully I get you better information, because this is a lousy bug report as-is. |
Oh, I looked more carefully, and autocxx was in the process of trying to build Eigen, which is open source. That means it might be possible to make a portable reproduction case; I could separate Eigen out and try to build a trivial thing against it. |
Here's what the call stack tells us.
Weird. It should be fairly straightforward to detect and ignore such APIs, so I'll work on a PR to do that. |
Wow, you're awesome. Thanks. |
We expect bindgen to have two parameters for all copy and move constructors, but it's been known to provide a single parameter in circumstances which are not yet entirely clear. Ignore such functions. Fixes #903.
We expect bindgen to have two parameters for all copy and move constructors, but it's been known to provide a single parameter in circumstances which are not yet entirely clear. Ignore such functions. Fixes #903.
OK, there's a possible fix in #905. It would still be terrific to have a minimized test case here in case you're able to figure out what caused this... |
OK, I landed the fix - please could you let me know if it works and reopen this if not? It wouldn't shock me if further work is needed... there might be other places where we make assumptions that move/copy constructors have a vaguely sensible number of parameters. |
Sure. If it does not work, I will do what I can to get a portable test case. |
Sadly, while this moved the baton farther, it did not fix the error, because there seems to be a naming collision: Here's the error:
And here's the backtrace: It happens right at the same spot in the series of files being compiled so I am reasonably confident it is the same issue.
|
I can not reopen issues. :-) |
Right. |
Actually @lukesneeringer I think it would be tremendously helpful if you can provide me a test case. No need to minimize it. For example you could make a PR with an Eigen-related example in the examples directory, or just upload something somewhere. |
This second problem was (I hope) fixed under #911. Please raise a new issue if you encounter further problems, thanks! |
Hey @adetaylor, sorry, I dropped the ball on this. I'll work on getting you a test case (unless the problem is fixed, of course). Sorry for disappearing on you. |
No probs! Let me know what other issues you encounter, and yes, if you happen to be able to come up with a minimized test case that'd be great - even if it's already fixed, it will ensure this doesn't regress in future. |
Thanks for your help on my previous issue @adetaylor.
I have another one that I am pretty sure is an
autocxx
bug. When I build now, I get a long list of ignored methods (which is fully expected), followed by a autocxx_engine panic.Expected Behavior
Not a panic. :)
Actual Behavior
Steps to Reproduce the Problem
Sadly I doubt I have anything useful here. I am prohibited from sharing the C++ code. :( If it would make a difference, I could screenshare or something temporarily.
Specifications
The text was updated successfully, but these errors were encountered: