-
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
Windows issues #409
Comments
I encountered that before but had no idea how to fix it. The Windows binary is cross-compiled in BB2's mingw shards. Here is my experimental repo: https://github.com/Gnimuc/CxxBuilder the build procedures are almost the same for all platforms. |
Hi, I tried to add the following line in the CxxBuilder script provided by @Gnimuc :
but the build does not succeed locally, I am getting the following error (regardless of my change to
Do you have any idea how to fix this error? Where should Is the error above due to edit: I was not using the right version of llvm and julia
|
Hi @MaximeBouton, did you download the corresponding Julia and LLVM/Clang binaries and unzip to the correct folder? |
I just edited my message before seeing your answer, that was the issue I think. I downloaded the windows version of julia and this version of llvm: https://github.com/staticfloat/LLVMBuilder/releases/download/v6.0.1-5%2Bnowasm/LLVM.v6.0.1.x86_64-w64-mingw32-gcc7.tar.gz Building works but I am getting an issue when calling using:
|
Hi @MaximeBouton, sorry for the delayed response. The LLVMBuilder version that I used was actually v6.0.1-4, not v6.0.1-5. However, I thought the error was not likely caused by the mismatched version. Instead, that assertion error meant that Cxx was not able to access function pointers from Julia runtime, which was very likely due to my buggy patch here. Then, I tried a more robust opensource solution dlfcn-win32(v1.1.2), but no luck. The following example still crashed Julia, which, I suspected, was also due to that assertion. julia> using Cxx
julia> cxx""" #include<iostream> """
true
julia> julia_global = 1
1
julia> cxx"""
uint64_t bar() {
return (uint64_t)$:(julia_global::Int64);
}
""" As dlfcn-win32 tagged a new release 3 days ago, I spot there is a bugfix about using
|
UPDATE:Almost all tests passed except these exception handling tests.
|
Tested on v0.3.2 and master=93359f1
|
|
hi @phlavenk,
|
@azurefx this looks like those libstdc++ symbols are still not correctly exported and |
I added Cxx package, I successfully executed using Cxx, but when I try with #include , the Windows PowerShell quickly closes automatically showing few text lines which are unable to read. |
@chandran-saravanan the latest release of Cxx doesn't support Cxx REPL on Windows, please checkout PR #425 for the fix. |
Fixed No.6 and No.14 in #409 (comment)
Thank you @Gnimuc for tackling the llvm build via BB.
Installs fine on windows and as mentioned in the readme, the windows experience is rough now.
example3:
this looks like problem of not linking against
-lstdc++
or similar as discussed e.g. here:https://stackoverflow.com/questions/329059/what-is-gxx-personality-v0-for
Is it hard to play with the switches on the BB? Being windows-only the linux/gcc way of app building is a black magic to me.
The text was updated successfully, but these errors were encountered: