Skip to content
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

code_native does not work with llvm 3.5.0rc3 #8137

Closed
eschnett opened this issue Aug 26, 2014 · 6 comments
Closed

code_native does not work with llvm 3.5.0rc3 #8137

eschnett opened this issue Aug 26, 2014 · 6 comments

Comments

@eschnett
Copy link
Contributor

I build Julia from source (OS X) using llvm 3.5.0rc3. code_llvm works fine, but code_native does not:

julia> code_llvm(muladd, (Float64,Float64,Float64))

define double @julia_muladd38680(double, double, double) {
top:
  %3 = fmul double %0, %1, !dbg !8
  %4 = fadd double %3, %2, !dbg !8
  ret double %4, !dbg !8
}

julia> code_native(muladd, (Float64,Float64,Float64))
Warning: Unable to find ObjectFile for function
ERROR: no method found for the specified argument types

Is this a known issue? Or could this be a problem with my build, or maybe a missing environment variable setting?

@tknopp
Copy link
Contributor

tknopp commented Aug 26, 2014

According to #6737 work has been done to make this work with MCJIT. Ping @ihnorton.

@ihnorton
Copy link
Member

I don't have access to my 3.5 build now, but I'll take a look tonight. Quite likely related to #7910 as both use similar machinery underneath.

@jakebolewski
Copy link
Member

I believe that the LLVM devs reverted some of @Keno's patches upstream recently which were needed to make this work.

@eschnett
Copy link
Contributor Author

eschnett commented Sep 6, 2014

I tried again with LLVM 3.5.0. Things work on Linux (I didn't try that earlier), but break on OS X.

@jakebolewski
Copy link
Member

The reverted patches were for the MachO format.

@eschnett
Copy link
Contributor Author

Which patch is this? Is there a bug report open with LLVM to get this functionality back in?

@tkelman tkelman mentioned this issue Dec 13, 2014
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants