GithubHelp home page GithubHelp logo

iron-kaleidoscope's People

Contributors

jauhien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iron-kaleidoscope's Issues

Rust-serialize doesnt compile

error[E0642]: patterns aren't allowed in functions without bodies
   --> /Users/antoine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.16/src/serialize.rs:145:45
    |
145 | ...                   &f_name: &str,
    |                       ^^^^^^^ pattern not allowed in function without body

rust-serialize is depraced , you can use serde

Can't build the project

Hello! Using the latest nightly (1.9.0) I can't build the project.
I really don't know what's the problem..
Here is full log:

    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/jauhien/iron-llvm.git`
   Compiling libc v0.1.12
   Compiling libc v0.2.8
   Compiling bitflags v0.3.3
   Compiling mempool v0.2.0
   Compiling semver v0.1.20
   Compiling strsim v0.3.0
   Compiling gcc v0.3.26
   Compiling rustc-serialize v0.3.18
   Compiling utf8-ranges v0.1.3
   Compiling regex-syntax v0.3.1
   Compiling bitflags v0.5.0
/home/jaga/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.1.12/rust/src/liblibc/lib.rs:81:21: 81:39 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/jaga/.cargo/registry/src/github.com-88ac128001ac3a9a/libc-0.1.12/rust/src/liblibc/lib.rs:81 #![allow(bad_style, raw_pointer_derive)]
                                                                                                                      ^~~~~~~~~~~~~~~~~~
   Compiling llvm-sys v0.2.1
   Compiling cmake v0.1.16
   Compiling llvm-sys v0.3.0
   Compiling memchr v0.1.10
   Compiling aho-corasick v0.5.1
   Compiling iron_llvm v0.0.1 (https://github.com/jauhien/iron-llvm.git#401fbb93)
   Compiling regex v0.1.60
   Compiling regex_macros v0.1.34
   Compiling docopt v0.6.78
   Compiling iron_kaleidoscope v0.0.1 (file:///home/Sexy/Programming/Rust/iron-kaleidoscope)
src/builder.rs:227:13: 227:30 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:227         Ok((function.to_ref(), false))
                               ^~~~~~~~~~~~~~~~~
src/builder.rs:227:13: 227:30 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:227:13: 227:30 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:227         Ok((function.to_ref(), false))
                               ^~~~~~~~~~~~~~~~~
src/builder.rs:240:58: 240:66 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:240         let mut function = unsafe {FunctionRef::from_ref(function)};
                                                                            ^~~~~~~~
src/builder.rs:240:58: 240:66 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:240:58: 240:66 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:240         let mut function = unsafe {FunctionRef::from_ref(function)};
                                                                            ^~~~~~~~
src/builder.rs:251:57: 251:67 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:251             context.builder.build_store(param.to_ref(), arg_alloca);
                                                                           ^~~~~~~~~~
src/builder.rs:251:57: 251:67 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:251:57: 251:67 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:251             context.builder.build_store(param.to_ref(), arg_alloca);
                                                                           ^~~~~~~~~~
src/builder.rs:270:44: 270:61 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:270                 unsafe {LLVMDeleteFunction(function.to_ref())};
                                                              ^~~~~~~~~~~~~~~~~
src/builder.rs:270:44: 270:61 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:270:44: 270:61 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:270                 unsafe {LLVMDeleteFunction(function.to_ref())};
                                                              ^~~~~~~~~~~~~~~~~
src/builder.rs:276:35: 276:40 error: mismatched types:
 expected `&*mut llvm_sys::LLVMValue`,
    found `&*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:276         context.builder.build_ret(&body);
                                                     ^~~~~
src/builder.rs:276:35: 276:40 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:276:35: 276:40 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:276         context.builder.build_ret(&body);
                                                     ^~~~~
src/builder.rs:278:25: 278:47 error: mismatched types:
 expected `llvm_sys::analysis::LLVMVerifierFailureAction`,
    found `llvm_sys::analysis::LLVMVerifierFailureAction`
(expected enum `llvm_sys::analysis::LLVMVerifierFailureAction`,
    found a different enum `llvm_sys::analysis::LLVMVerifierFailureAction`) [E0308]
src/builder.rs:278         function.verify(LLVMAbortProcessAction);
                                           ^~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:278:25: 278:47 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:278:25: 278:47 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:278         function.verify(LLVMAbortProcessAction);
                                           ^~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:285:13: 285:30 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:285         Ok((function.to_ref(), self.prototype.name.as_str() == ""))
                               ^~~~~~~~~~~~~~~~~
src/builder.rs:285:13: 285:30 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:285:13: 285:30 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:285         Ok((function.to_ref(), self.prototype.name.as_str() == ""))
                               ^~~~~~~~~~~~~~~~~
src/builder.rs:296:5: 296:56 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:296     builder.build_alloca(context.ty.to_ref(), var_name)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:296:5: 296:56 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:296:5: 296:56 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:296     builder.build_alloca(context.ty.to_ref(), var_name)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:308:21: 308:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:308                 Ok((RealConstRef::get(&context.ty, *value).to_ref(), false))
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:308:21: 308:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:308:21: 308:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:308                 Ok((RealConstRef::get(&context.ty, *value).to_ref(), false))
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:318:62: 318:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:318                         let var = context.builder.build_load(*value, name);
                                                                                ^~~~~~
src/builder.rs:318:62: 318:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:318:62: 318:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:318                         let var = context.builder.build_load(*value, name);
                                                                                ^~~~~~
src/builder.rs:319:29: 319:32 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:319                         Ok((var, false))
                                               ^~~
src/builder.rs:319:29: 319:32 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:319:29: 319:32 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:319                         Ok((var, false))
                                               ^~~
src/builder.rs:347:49: 347:74 error: mismatched types:
 expected `&mut [*mut llvm_sys::LLVMValue]`,
    found `&mut [*mut llvm_sys::LLVMValue]`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:347                                                 args_value.as_mut_slice(),
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:347:49: 347:74 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:347:49: 347:74 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:347                                                 args_value.as_mut_slice(),
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:346:21: 348:56 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:346                 Ok((context.builder.build_call(function.to_ref(),
src/builder.rs:347                                                 args_value.as_mut_slice(),
src/builder.rs:348                                                 "unop"),
src/builder.rs:346:21: 348:56 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:346:21: 348:56 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:346                 Ok((context.builder.build_call(function.to_ref(),
src/builder.rs:347                                                 args_value.as_mut_slice(),
src/builder.rs:348                                                 "unop"),
src/builder.rs:373:49: 373:54 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:373                     context.builder.build_store(value, variable);
                                                                   ^~~~~
src/builder.rs:373:49: 373:54 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:373:49: 373:54 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:373                     context.builder.build_store(value, variable);
                                                                   ^~~~~
src/builder.rs:373:56: 373:64 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:373                     context.builder.build_store(value, variable);
                                                                          ^~~~~~~~
src/builder.rs:373:56: 373:64 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:373:56: 373:64 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:373                     context.builder.build_store(value, variable);
                                                                          ^~~~~~~~
src/builder.rs:384:59: 384:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:384                     "+" => Ok((context.builder.build_fadd(lhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:384:59: 384:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:384:59: 384:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:384                     "+" => Ok((context.builder.build_fadd(lhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:385:59: 385:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:385                                                           rhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:385:59: 385:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:385:59: 385:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:385                                                           rhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:384:32: 386:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:384                     "+" => Ok((context.builder.build_fadd(lhs_value,
src/builder.rs:385                                                           rhs_value,
src/builder.rs:386                                                           "addtmp"),
src/builder.rs:384:32: 386:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:384:32: 386:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:384                     "+" => Ok((context.builder.build_fadd(lhs_value,
src/builder.rs:385                                                           rhs_value,
src/builder.rs:386                                                           "addtmp"),
src/builder.rs:388:59: 388:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:388                     "-" => Ok((context.builder.build_fsub(lhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:388:59: 388:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:388:59: 388:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:388                     "-" => Ok((context.builder.build_fsub(lhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:389:59: 389:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:389                                                           rhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:389:59: 389:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:389:59: 389:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:389                                                           rhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:388:32: 390:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:388                     "-" => Ok((context.builder.build_fsub(lhs_value,
src/builder.rs:389                                                           rhs_value,
src/builder.rs:390                                                           "subtmp"),
src/builder.rs:388:32: 390:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:388:32: 390:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:388                     "-" => Ok((context.builder.build_fsub(lhs_value,
src/builder.rs:389                                                           rhs_value,
src/builder.rs:390                                                           "subtmp"),
src/builder.rs:392:59: 392:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:392                     "*" => Ok((context.builder.build_fmul(lhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:392:59: 392:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:392:59: 392:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:392                     "*" => Ok((context.builder.build_fmul(lhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:393:59: 393:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:393                                                           rhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:393:59: 393:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:393:59: 393:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:393                                                           rhs_value,
                                                                             ^~~~~~~~~
src/builder.rs:392:32: 394:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:392                     "*" => Ok((context.builder.build_fmul(lhs_value,
src/builder.rs:393                                                           rhs_value,
src/builder.rs:394                                                           "multmp"),
src/builder.rs:392:32: 394:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:392:32: 394:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:392                     "*" => Ok((context.builder.build_fmul(lhs_value,
src/builder.rs:393                                                           rhs_value,
src/builder.rs:394                                                           "multmp"),
src/builder.rs:397:62: 397:73 error: mismatched types:
 expected `llvm_sys::LLVMRealPredicate`,
    found `llvm_sys::LLVMRealPredicate`
(expected enum `llvm_sys::LLVMRealPredicate`,
    found a different enum `llvm_sys::LLVMRealPredicate`) [E0308]
src/builder.rs:397                         let cmp = context.builder.build_fcmp(LLVMRealOLT,
                                                                                ^~~~~~~~~~~
src/builder.rs:397:62: 397:73 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:397:62: 397:73 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:397                         let cmp = context.builder.build_fcmp(LLVMRealOLT,
                                                                                ^~~~~~~~~~~
src/builder.rs:398:62: 398:71 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:398                                                              lhs_value,
                                                                                ^~~~~~~~~
src/builder.rs:398:62: 398:71 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:398:62: 398:71 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:398                                                              lhs_value,
                                                                                ^~~~~~~~~
src/builder.rs:399:62: 399:71 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:399                                                              rhs_value,
                                                                                ^~~~~~~~~
src/builder.rs:399:62: 399:71 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:399:62: 399:71 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:399                                                              rhs_value,
                                                                                ^~~~~~~~~
src/builder.rs:403:29: 405:70 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:403                         Ok((context.builder.build_ui_to_fp(cmp,
src/builder.rs:404                                                            context.ty.to_ref(),
src/builder.rs:405                                                            "booltmp"),
src/builder.rs:403:29: 405:70 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:403:29: 405:70 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:403                         Ok((context.builder.build_ui_to_fp(cmp,
src/builder.rs:404                                                            context.ty.to_ref(),
src/builder.rs:405                                                            "booltmp"),
src/builder.rs:426:56: 426:81 error: mismatched types:
 expected `&mut [*mut llvm_sys::LLVMValue]`,
    found `&mut [*mut llvm_sys::LLVMValue]`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:426                                                        args_value.as_mut_slice(),
                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:426:56: 426:81 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:426:56: 426:81 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:426                                                        args_value.as_mut_slice(),
                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:425:29: 427:64 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:425                         Ok((context.builder.build_call(function.to_ref(),
src/builder.rs:426                                                        args_value.as_mut_slice(),
src/builder.rs:427                                                        "binop"),
src/builder.rs:425:29: 427:64 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:425:29: 427:64 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:425                         Ok((context.builder.build_call(function.to_ref(),
src/builder.rs:426                                                        args_value.as_mut_slice(),
src/builder.rs:427                                                        "binop"),
src/builder.rs:454:48: 454:73 error: mismatched types:
 expected `&mut [*mut llvm_sys::LLVMValue]`,
    found `&mut [*mut llvm_sys::LLVMValue]`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:454                                                args_value.as_mut_slice(),
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:454:48: 454:73 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:454:48: 454:73 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:454                                                args_value.as_mut_slice(),
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:453:21: 455:58 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:453                 Ok((context.builder.build_call(function.to_ref(),
src/builder.rs:454                                                args_value.as_mut_slice(),
src/builder.rs:455                                                "calltmp"),
src/builder.rs:453:21: 455:58 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:453:21: 455:58 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:453                 Ok((context.builder.build_call(function.to_ref(),
src/builder.rs:454                                                args_value.as_mut_slice(),
src/builder.rs:455                                                "calltmp"),
src/builder.rs:467:57: 467:68 error: mismatched types:
 expected `llvm_sys::LLVMRealPredicate`,
    found `llvm_sys::LLVMRealPredicate`
(expected enum `llvm_sys::LLVMRealPredicate`,
    found a different enum `llvm_sys::LLVMRealPredicate`) [E0308]
src/builder.rs:467                 let ifcond = context.builder.build_fcmp(LLVMRealONE, cond_value, zero.to_ref(), "ifcond");
                                                                           ^~~~~~~~~~~
src/builder.rs:467:57: 467:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:467:57: 467:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:467                 let ifcond = context.builder.build_fcmp(LLVMRealONE, cond_value, zero.to_ref(), "ifcond");
                                                                           ^~~~~~~~~~~
src/builder.rs:467:70: 467:80 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:467                 let ifcond = context.builder.build_fcmp(LLVMRealONE, cond_value, zero.to_ref(), "ifcond");
                                                                                        ^~~~~~~~~~
src/builder.rs:467:70: 467:80 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:467:70: 467:80 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:467                 let ifcond = context.builder.build_fcmp(LLVMRealONE, cond_value, zero.to_ref(), "ifcond");
                                                                                        ^~~~~~~~~~
src/builder.rs:498:34: 498:65 error: mismatched types:
 expected `&mut [*mut llvm_sys::LLVMValue]`,
    found `&mut [*mut llvm_sys::LLVMValue]`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:498                 phi.add_incoming(vec![then_value].as_mut_slice(), vec![then_end_block].as_mut_slice());
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:498:34: 498:65 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:498:34: 498:65 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:498                 phi.add_incoming(vec![then_value].as_mut_slice(), vec![then_end_block].as_mut_slice());
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:499:34: 499:65 error: mismatched types:
 expected `&mut [*mut llvm_sys::LLVMValue]`,
    found `&mut [*mut llvm_sys::LLVMValue]`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:499                 phi.add_incoming(vec![else_value].as_mut_slice(), vec![else_end_block].as_mut_slice());
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:499:34: 499:65 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:499:34: 499:65 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:499                 phi.add_incoming(vec![else_value].as_mut_slice(), vec![else_end_block].as_mut_slice());
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/builder.rs:501:21: 501:33 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:501                 Ok((phi.to_ref(), false))
                                       ^~~~~~~~~~~~
src/builder.rs:501:21: 501:33 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:501:21: 501:33 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:501                 Ok((phi.to_ref(), false))
                                       ^~~~~~~~~~~~
src/builder.rs:517:45: 517:56 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:517                 context.builder.build_store(start_value, variable);
                                                               ^~~~~~~~~~~
src/builder.rs:517:45: 517:56 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:517:45: 517:56 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:517                 context.builder.build_store(start_value, variable);
                                                               ^~~~~~~~~~~
src/builder.rs:517:58: 517:66 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:517                 context.builder.build_store(start_value, variable);
                                                                            ^~~~~~~~
src/builder.rs:517:58: 517:66 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:517:58: 517:66 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:517                 context.builder.build_store(start_value, variable);
                                                                            ^~~~~~~~
*mut llvm_sys::LLVMValue
src/builder.rs:536:72: 536:78 error: no method named `to_ref` found for type `*mut llvm_sys::LLVMValue` in the current scope
src/builder.rs:536                 context.named_values.insert(var_name.clone(), variable.to_ref());
                                                                                          ^~~~~~
src/builder.rs:540:59: 540:70 error: mismatched types:
 expected `llvm_sys::LLVMRealPredicate`,
    found `llvm_sys::LLVMRealPredicate`
(expected enum `llvm_sys::LLVMRealPredicate`,
    found a different enum `llvm_sys::LLVMRealPredicate`) [E0308]
src/builder.rs:540                 let end_cond = context.builder.build_fcmp(LLVMRealONE, end_value, zero.to_ref(), "loopcond");
                                                                             ^~~~~~~~~~~
src/builder.rs:540:59: 540:70 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:540:59: 540:70 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:540                 let end_cond = context.builder.build_fcmp(LLVMRealONE, end_value, zero.to_ref(), "loopcond");
                                                                             ^~~~~~~~~~~
src/builder.rs:540:72: 540:81 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:540                 let end_cond = context.builder.build_fcmp(LLVMRealONE, end_value, zero.to_ref(), "loopcond");
                                                                                          ^~~~~~~~~
src/builder.rs:540:72: 540:81 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:540:72: 540:81 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:540                 let end_cond = context.builder.build_fcmp(LLVMRealONE, end_value, zero.to_ref(), "loopcond");
                                                                                          ^~~~~~~~~
src/builder.rs:553:60: 553:68 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:553                 let cur_value = context.builder.build_load(variable, var_name);
                                                                              ^~~~~~~~
src/builder.rs:553:60: 553:68 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:553:60: 553:68 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:553                 let cur_value = context.builder.build_load(variable, var_name);
                                                                              ^~~~~~~~
src/builder.rs:554:72: 554:82 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:554                 let next_value = context.builder.build_fadd(cur_value, step_value, "nextvar");
                                                                                          ^~~~~~~~~~
src/builder.rs:554:72: 554:82 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:554:72: 554:82 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:554                 let next_value = context.builder.build_fadd(cur_value, step_value, "nextvar");
                                                                                          ^~~~~~~~~~
src/builder.rs:555:57: 555:65 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:555                 context.builder.build_store(next_value, variable);
                                                                           ^~~~~~~~
src/builder.rs:555:57: 555:65 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:555:57: 555:65 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:555                 context.builder.build_store(next_value, variable);
                                                                           ^~~~~~~~
src/builder.rs:577:21: 577:34 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:577                 Ok((zero.to_ref(), false))
                                       ^~~~~~~~~~~~~
src/builder.rs:577:21: 577:34 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:577:21: 577:34 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:577                 Ok((zero.to_ref(), false))
                                       ^~~~~~~~~~~~~
src/builder.rs:591:49: 591:59 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:591                     context.builder.build_store(init_value, variable);
                                                                   ^~~~~~~~~~
src/builder.rs:591:49: 591:59 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:591:49: 591:59 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:591                     context.builder.build_store(init_value, variable);
                                                                   ^~~~~~~~~~
src/builder.rs:591:61: 591:69 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/builder.rs:591                     context.builder.build_store(init_value, variable);
                                                                               ^~~~~~~~
src/builder.rs:591:61: 591:69 help: run `rustc --explain E0308` to see a detailed explanation
src/builder.rs:591:61: 591:69 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/builder.rs:591                     context.builder.build_store(init_value, variable);
                                                                               ^~~~~~~~
*mut llvm_sys::LLVMValue
src/driver.rs:200:27: 200:31 error: no method named `dump` found for type `*mut llvm_sys::LLVMValue` in the current scope
src/driver.rs:200                     value.dump();
                                            ^~~~
src/driver.rs:200:27: 200:31 help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `dump`, perhaps you need to implement it:
src/driver.rs:200:27: 200:31 help: candidate #1: `builder::ModuleProvider`
src/jitter.rs:201:47: 201:48 error: mismatched types:
 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`
(expected enum `llvm_sys::LLVMValue`,
    found a different enum `llvm_sys::LLVMValue`) [E0308]
src/jitter.rs:201         let f = unsafe {FunctionRef::from_ref(f)};
                                                                ^
src/jitter.rs:201:47: 201:48 help: run `rustc --explain E0308` to see a detailed explanation
src/jitter.rs:201:47: 201:48 note: Perhaps two different versions of crate `llvm_sys` are being used?
src/jitter.rs:201         let f = unsafe {FunctionRef::from_ref(f)};
                                                                ^
error: aborting due to 50 previous errors
Could not compile `iron_kaleidoscope`.

To learn more, run the command again with --verbose.

The lines like

 expected `*mut llvm_sys::LLVMValue`,
    found `*mut llvm_sys::LLVMValue`

really confuses me...

LLVM ERROR when using defined function more than once.

When I define a function and try to use it multiple times, LLVM has an error and the program crashes.

Example:

> def double(x) x * 2

define double @double(double %x) {
entry:
  %multmp = fmul double %x, 2.000000e+00
  ret double %multmp
}

> double(4)
=> 8
> double(5)
LLVM ERROR: Program used external function '_double' which could not be resolved!

This appears to be an issue in my own codebase and the code found in the chapters in this repository, I am using code from chapter 5.

Build error on regex package

MacOSX 10.10
rustc --version #=> 1.6.0

$ cargo build

...
   Compiling regex v0.1.46
/Users/mizchi/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/regex-0.1.46/src/lib.rs:403:34: 403:51 error: #[feature] may not be used on the stable release channel
/Users/mizchi/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/regex-0.1.46/src/lib.rs:403 #![cfg_attr(feature = "pattern", feature(pattern))] 

error: aborting due to previous error
Build failed, waiting for other jobs to finish...  
Could not compile `regex`.

Linker failure on OS X

Trying to build iron-kaleidoscope with a fresh clone of the project (after running $ cargo update), I get the following error message:

$ cargo build
   Compiling semver v0.1.20
   Compiling gcc v0.3.19
   Compiling rustc-serialize v0.3.16
   Compiling regex-syntax v0.2.2
   Compiling strsim v0.3.0
   Compiling libc v0.1.10
   Compiling bitflags v0.3.2
   Compiling memchr v0.1.6
   Compiling aho-corasick v0.3.4
   Compiling llvm-sys v0.2.1
   Compiling cmake v0.1.7
   Compiling iron_llvm v0.0.1 (https://github.com/jauhien/iron-llvm.git#8800226c)
   Compiling regex v0.1.41
   Compiling regex_macros v0.1.21
   Compiling docopt v0.6.74
   Compiling docopt_macros v0.6.74
   Compiling iron_kaleidoscope v0.0.1 (file:///Users/hawk/Development/iron-kaleidoscope)
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/iron_kaleidoscope.0.o" "-o" "/Users/hawk/Development/iron-kaleidoscope/target/debug/iron_kaleidoscope" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/hawk/Development/iron-kaleidoscope/target/debug" "-L" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps" "-L" "/Users/hawk/Development/iron-kaleidoscope/target/debug/build/iron_llvm-f0a3a981c282c1de/out" "-L" "/usr/local/Cellar/llvm/3.6.2/lib" "-L" "/Users/hawk/Development/iron-kaleidoscope/target/debug/build/llvm-sys-9bcc4041ad5d7b40/out" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/hawk/Development/iron-kaleidoscope/.rust/lib/x86_64-apple-darwin" "-L" "/Users/hawk/Development/iron-kaleidoscope/lib/x86_64-apple-darwin" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libdocopt-398ed9badedc4dd3.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/libiron_kaleidoscope.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libregex-c5abedf84fe61ddb.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libaho_corasick-713d9a23dcd56f15.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/librustc_serialize-7ff5bfc027146194.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libregex_syntax-6d9e9f3bd76497d4.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libmemchr-1ef94c8f78e37fc7.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libiron_llvm-f0a3a981c282c1de.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libllvm_sys-9bcc4041ad5d7b40.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/liblibc-144c435538abd757.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libstrsim-f37b8d6da2e1c859.rlib" "/Users/hawk/Development/iron-kaleidoscope/target/debug/deps/libbitflags-c495827ddcd6a202.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-10cbabc2.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-10cbabc2.rlib" "-l" "LLVMLTO" "-l" "LLVMObjCARCOpts" "-l" "LLVMLinker" "-l" "LLVMBitWriter" "-l" "LLVMIRReader" "-l" "LLVMAsmParser" "-l" "LLVMXCoreDisassembler" "-l" "LLVMXCoreCodeGen" "-l" "LLVMXCoreDesc" "-l" "LLVMXCoreInfo" "-l" "LLVMXCoreAsmPrinter" "-l" "LLVMSystemZDisassembler" "-l" "LLVMSystemZCodeGen" "-l" "LLVMSystemZAsmParser" "-l" "LLVMSystemZDesc" "-l" "LLVMSystemZInfo" "-l" "LLVMSystemZAsmPrinter" "-l" "LLVMSparcDisassembler" "-l" "LLVMSparcCodeGen" "-l" "LLVMSparcAsmParser" "-l" "LLVMSparcDesc" "-l" "LLVMSparcInfo" "-l" "LLVMSparcAsmPrinter" "-l" "LLVMR600CodeGen" "-l" "LLVMipo" "-l" "LLVMVectorize" "-l" "LLVMR600AsmParser" "-l" "LLVMR600Desc" "-l" "LLVMR600Info" "-l" "LLVMR600AsmPrinter" "-l" "LLVMPowerPCDisassembler" "-l" "LLVMPowerPCCodeGen" "-l" "LLVMPowerPCAsmParser" "-l" "LLVMPowerPCDesc" "-l" "LLVMPowerPCInfo" "-l" "LLVMPowerPCAsmPrinter" "-l" "LLVMNVPTXCodeGen" "-l" "LLVMNVPTXDesc" "-l" "LLVMNVPTXInfo" "-l" "LLVMNVPTXAsmPrinter" "-l" "LLVMMSP430CodeGen" "-l" "LLVMMSP430Desc" "-l" "LLVMMSP430Info" "-l" "LLVMMSP430AsmPrinter" "-l" "LLVMMipsDisassembler" "-l" "LLVMMipsCodeGen" "-l" "LLVMMipsAsmParser" "-l" "LLVMMipsDesc" "-l" "LLVMMipsInfo" "-l" "LLVMMipsAsmPrinter" "-l" "LLVMHexagonDisassembler" "-l" "LLVMHexagonCodeGen" "-l" "LLVMHexagonDesc" "-l" "LLVMHexagonInfo" "-l" "LLVMCppBackendCodeGen" "-l" "LLVMCppBackendInfo" "-l" "LLVMARMDisassembler" "-l" "LLVMARMCodeGen" "-l" "LLVMARMAsmParser" "-l" "LLVMARMDesc" "-l" "LLVMARMInfo" "-l" "LLVMARMAsmPrinter" "-l" "LLVMAArch64Disassembler" "-l" "LLVMAArch64CodeGen" "-l" "LLVMAArch64AsmParser" "-l" "LLVMAArch64Desc" "-l" "LLVMAArch64Info" "-l" "LLVMAArch64AsmPrinter" "-l" "LLVMAArch64Utils" "-l" "LLVMTableGen" "-l" "LLVMDebugInfo" "-l" "LLVMOption" "-l" "LLVMX86Disassembler" "-l" "LLVMX86AsmParser" "-l" "LLVMX86CodeGen" "-l" "LLVMSelectionDAG" "-l" "LLVMAsmPrinter" "-l" "LLVMX86Desc" "-l" "LLVMMCDisassembler" "-l" "LLVMX86Info" "-l" "LLVMX86AsmPrinter" "-l" "LLVMX86Utils" "-l" "LLVMMCJIT" "-l" "LLVMLineEditor" "-l" "LLVMInstrumentation" "-l" "LLVMInterpreter" "-l" "LLVMExecutionEngine" "-l" "LLVMRuntimeDyld" "-l" "LLVMCodeGen" "-l" "LLVMScalarOpts" "-l" "LLVMProfileData" "-l" "LLVMObject" "-l" "LLVMMCParser" "-l" "LLVMBitReader" "-l" "LLVMInstCombine" "-l" "LLVMTransformUtils" "-l" "LLVMipa" "-l" "LLVMAnalysis" "-l" "LLVMTarget" "-l" "LLVMMC" "-l" "LLVMCore" "-l" "LLVMSupport" "-l" "curses" "-l" "pthread" "-l" "z" "-l" "m" "-l" "stdc++" "-l" "c" "-l" "m" "-l" "System" "-l" "pthread" "-l" "c" "-l" "m" "-l" "compiler-rt"
note: ld: warning: directory not found for option '-L/Users/hawk/Development/iron-kaleidoscope/.rust/lib/x86_64-apple-darwin'
ld: warning: directory not found for option '-L/Users/hawk/Development/iron-kaleidoscope/lib/x86_64-apple-darwin'
Undefined symbols for architecture x86_64:
  "typeinfo for llvm::RTDyldMemoryManager", referenced from:
      _LLVM_BSMMCallParentGetSymbolAddress in libiron_llvm-f0a3a981c282c1de.rlib(memory-manager-wrappers.cc.o)
  "typeinfo for llvm::SectionMemoryManager", referenced from:
      _LLVM_BSMMCallParentGetSymbolAddress in libiron_llvm-f0a3a981c282c1de.rlib(memory-manager-wrappers.cc.o)
      typeinfo for (anonymous namespace)::BindingSectionMemoryManager in libiron_llvm-f0a3a981c282c1de.rlib(memory-manager-wrappers.cc.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
Could not compile `iron_kaleidoscope`.

To learn more, run the command again with --verbose.

This could be a config issue on my part, but I'm not sure what is configured incorrectly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.