-
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
Conflict between system and julia's LLVM #34
Comments
What does your Make.user for Julia look like? |
Is this fixed by putting all the llvm includes in angle brackets? |
Hi sorry for the late reply, I was away for a while.
@Keno, you suggest going through all .h files and change the include directives? |
No, just in bootstrap.cpp |
mm no, I still get the redefinition error. |
Can I see the output of
|
Sure, here it goes (truncated after a few lines, it just continues..)
|
That looks ok, but looking back in your Make.user, I see |
@Keno, good point.
and after doing make I get an error:
|
@cbecker if possible, just have your Make.user look like the following:
|
Hi, that seems to fix it. however, now I can do the following, though I still get some errors: ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+2839 (2015-01-21 02:39 UTC)
_/ |\__'_|_|_|\__'_| | Commit 8b4e9e9 (0 days old master)
|__/ | x86_64-unknown-linux-gnu
julia> Pkg.build("Cxx")
INFO: Building Cxx
Tuning for julia installation at: /data/phd/github/julia.4/usr/bin
Not building debug library because corresponding julia DEBUG library does not exist.
To build, simply run the build again once the library at
/data/phd/github/julia.4/usr/bin/../../usr/lib/libjulia-debug.so
has been built.
julia> using Cxx
ERROR: LoadError: LoadError: Could not find C++ standard library
in include at ./boot.jl:249
in include_from_node1 at ./loading.jl:128
in include at ./boot.jl:249
in include_from_node1 at ./loading.jl:128
in reload_path at ./loading.jl:152
in _require at ./loading.jl:67
in require at ./loading.jl:52
in print at ./string.jl
while loading /home/cjb/.julia/v0.4/Cxx/src/initialization.jl, in expression starting on line 251
while loading /home/cjb/.julia/v0.4/Cxx/src/Cxx.jl, in expression starting on line 152 |
could |
I think I found the problem, it has to do with the include/library folders. My system has the following include path: While Cxx.jl looks for something like |
The fix is here. Everything was working fine, until I pulled the newest master from Keno/Cxx.jl and now I get the folloowing error:
But the include folders seem correct. |
I think it is related to: #74 (comment) I saw the same error but haven't rebuilt LLVM yet, so I am not sure if it is related to that. @Keno is this a new issue? |
Hadn't tested the new code on Linux. Should be fixed now. |
@Keno indeed, working now, that's great! |
I am not sure what I am doing wrong, but I am getting errors that suggest that there is a conflict between the LLVM installed on my linux box (archlinux) and the one julia builds. Is there a way to make Cxx exclusively use julia's LLVM?
The text was updated successfully, but these errors were encountered: