halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.91k stars 1.07k forks source link

Halide compilation issue #3002

Open edubois opened 6 years ago

edubois commented 6 years ago

I'm having trouble compiling Halide on my mac:

llvm-as --version
LLVM (http://llvm.org/):
  LLVM version 7.0.0svn
  Optimized build with assertions.
  Default target: x86_64-apple-darwin15.6.0
  Host CPU: ivybridge
llvm-as: Halide/build/Halide.build/initmod.x86_cpu_features_64_debug.ll:198:50: error: invalid field 'file'
!63 = !DINamespace(name: "Internal", scope: !65, file: !64, line: 182)

Any idea?

abadams commented 6 years ago

That sounds like a version mismatch between the llvm-as and the clang you're using. Maybe an older clang is in the path?

edubois commented 6 years ago

Ah, yes, you should be right, I'm using an old clang, many thanks. Forgot this one.