-
Notifications
You must be signed in to change notification settings - Fork 2
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
update with prefix and ".a" #12
Conversation
Following the example in r-rust/hellorust#9
Thanks! The AppVeyor build is still failing, though. Could you see if you can figure out what's going wrong? Does this work for you locally? |
I'm able to get further than I could before, but I'm getting a new error
|
Ah, that's actually a problem with the Rust code. Some of the libraries I'm depending on may have changed and it'll require some modification to the code or explicitly using an older version. Unfortunately this isn't going to be an easy fix most likely. I'll take on this project again at some point but right now I'm focusing on better R-Rust interoperability in general. |
Makes sense. I'm excited to see where R-Rust goes! |
I just committed by |
add Cargo.lock to repo
I got further, but I've been compiling unicase v2.6.0 for about 40 minutes so something may not be working. |
Yeah, that doesn't sound right. The entire build takes maybe 2-3 min on my laptop. The CI builds also still fail. I'll have to investigate more. |
On AppVeyor, the error message is:
That looks like a problem in the toolchain, possibly with Rtools. On Travis, the build breaks because |
So the compile error you saw earlier seems correct. I'm getting it on a clean build on ubuntu 20.4 also: I suspect something has changed in the latest version of rustc. My local one is a few months old, and there were some changes introduced that recently that may break some macros. I'll have to see how easy it is to fix. |
Ok, I fixed the issue in the rust code related to the latest changes in rustc. That lets me build sinab on ubuntu. However, it still doesn't build on Windows, for some unrelated linking issue. I've opened an issue: #13 I'll close this PR, as I've already added this change into the code: Line 3 in d8bbfbf
It's not the reason why the Windows build won't succeed. |
Just an FYI: The latest code base does compile on Windows, just not on AppVeyor: Maybe try your local build one more time. |
As an update, I was unable to get it to work on my main machine. But this could just be a bad Rust set up. |
Could you describe the problem? Was it also the missing gcc_eh library as on the AppVeyor runs? |
@delabj FYI, I've learned a lot about building rust apps on windows lately. If your default host is
This has fixed all sorts of build problems for the extendr project. |
Following the example in r-rust/hellorust#9
I added a
lib
prefix and a.a
suffix to the STATLIB line