-
Notifications
You must be signed in to change notification settings - Fork 107
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
Issue Building on Windows: Build error #145
Comments
I tried using this C++ compiler as well, but ran into the same error (I updated the make file to use that compiler specifically):
|
That error message strikes me as very weird because it's in a |
OK, I renamed that to Cabcd (I can share the changes to bootstrap.cpp if you need to see them), but now I am getting some issues in the Make file:
Seems like it's not looking in the right place for that DLL. |
OK, I've made some progress after telling the Make file exactly where the proper DLL was. I also had to change some things in the bootstrap.cpp file to export a few more things to the DLL (adding DLLEXPORT to a few functions, as it would complain when I tried to use Cxx). I also had to change the initialization.jl file to look in the right place for C++:
Now, I am able to build, but I get a bunch of errors when I run: using Cxx.
Note that I ended up using 4.9.2 instead of 5.2.0, because this was the default one that came with cygwin and it built fine using it. So despite those errors, I am able to get back to the prompt without any Julia errors. However, when I try to run:
I get this error:
and the REPL just shuts down. However, if I only run something like:
.. I get the expected C++ error but otherwise it seems fine:
Thanks in advance, I really would like to get this working! Chris |
I suspect the simplest thing is just to add an empty
in boot.h. Not sure who normally adds that. You can also try disabling |
More progress, but using one of the examples in the readme, it ends up complaining about the function __cxxjl_personality_v0 missing (even though I see it in boot.h). Any ideas?
|
There appear to be some major issues when trying to deal with shared libraries in Windows. Firstly, using the example in the readme, I ran into the same LLVM ERROR as above:
Interestingly, if you run a "strings" on that dll, you get:
among obviously a bunch of other stuff. So it seems to have trouble taking that and understanding it as just "ArrayMaker" Similarly, when trying to run some of the code in llvmtest.jl, the same type of error occurs:
At this point, I can use Cxx to run code directly passed in (as in my prior post), but using any shared library is unfortunately not working at this time. Any idea as to what the issue may be? Thanks!! |
@pazzo83 Did you have to build Julia with the custom flags yourself ? Can you briefly describe how you got Cxx.jl working on windows? THanks. |
I am trying to build Cxx on Windows but I cam getting some errors upon running Pkg.build("Cxx"). I used cygwin64 to compile Julia (with the overrides, etc). These are the errors:
I read this might be an issue with the compiler (it is using g++ from cygwin), but I'm not sure. Thanks in advance!
The text was updated successfully, but these errors were encountered: