This is likely an issue with using LLVM 3.4. Note that the Homebrew builds recently switched to using LLVM 3.3 (instead of the Homebrew default of 3.4), as LLVM 3.4 compatibility isn't support yet in Julia.
Error with julia's code_native function
-
29-06-2023 - |
Question
I'm trying out Julia and stumbled upon the nifty "code_native" function. Unfortunately, it doesn't work here:
julia> affine(x) = 2*x + 3
affine (generic function with 1 method)
julia> affine(3)
9
julia> typeof(3)
Int64
julia> code_native(affine,(Int64,))
Warning: Unable to find function pointer
ERROR: no method found for the specified argument types
What's wrong? I'm using the default interactive interpreter with the julia package on Arch linux.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow