TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.37k stars 229 forks source link

ARM support? #345

Open ytoml opened 2 years ago

ytoml commented 2 years ago

When I was developing https://github.com/TheDan64/inkwell/pull/344, I first worked on my macOS with Apple M1 host machine, and have run the test with:

cargo test --all --target=aarch64-apple-darwin --features=llvm14-0 

(only llvm14-0 feature is tested since PR above doesn't affect any other features) but it fails with SIGABRT from:

LLVM ERROR: Global variable 'gv' has an invalid section specifier 'test': mach-o section specifier requires a segment and section separated by a comma.

Also, I encountered test failure with:

thread 'test_object_file::test_section_iterator' panicked at 'assertion failed: `(left == right)`
  left: `4`,
 right: `1`', tests/all/test_object_file.rs:123:21

when I run test on Linux on lima VM instance(aarch64). I don't know much about sections now and not have any idea about the exact reason why this failure occurs (and why it doesn' appear on x86_64 Linux)...

And, is there any plan to support ARM platforms?

mkeeter commented 2 years ago

For what it's worth, I'm using Inkwell on an ARM Macbook (M1 Max) + LLVM 14 without any issues, so I don't think it's fundamentally broken!

(Inkwell commit 40d7ba0d387819140ca85c9bbf14ccdbd199ceee, according to my Cargo.lock)

ytoml commented 2 years ago

Nice to hear that! However actually, while using inkwell as an dependency of some app it doesn' raise any issue for me, either. I encountered this failures during test of inkwell itself. Is inkwell's tests (feature llvm14-0) passing on your machine?

mkeeter commented 2 years ago

Ah, I see what you mean! I'm seeing the same error that you do when running the test suite (on 40d7ba0d387819140ca85c9bbf14ccdbd199ceee)

cargo test --all --target=aarch64-apple-darwin --features=llvm14-0
LLVM ERROR: Global variable 'gv' has an invalid section specifier 'test': mach-o section specifier requires a segment and section separated by a comma.
test test_module::test_linking_modules ... error: test failed, to rerun pass '--test all'

Caused by:
  process didn't exit successfully: `/Users/mkeeter/code/inkwell/target/aarch64-apple-darwin/debug/deps/all-44f4c164f6890d24` (signal: 6, SIGABRT: process abort signal)
ytoml commented 2 years ago

I could fix this aborting error with modification to test_section_iterator() and test_section_contains_nul() in test/all/test_object_file.rs like:

#[cfg(target_os = "macos")]
const SECTION_SPEC: &str = "segmentTest,test";
#[cfg(not(target_os = "macos"))]
const SECTION_SPEC: &str = "test";
/*
omit
*/
let gv = module.add_global(/*omit*/);
gv.set_initializer(/*omit*/);
gv.set_section(Some(SECTION_SPEC));

just adding segmet specifier to string passed to set_section, as error message complains.

ytoml commented 2 years ago

With fix above (and adding target triple for arm at test_default_triple() in test/all/test_targts.rs ), I have 2 test failure on macOS(aarch64) with:

  1. section size assertion in test_section_iterator(), it's same as previous comment:

    Also, I encountered test failure with:

    thread 'test_object_file::test_section_iterator' panicked at 'assertion failed: `(left == right)`
      left: `4`,
     right: `1`', tests/all/test_object_file.rs:123:21

    when I run test on Linux on lima VM instance(aarch64).

It complains that section D for void returning funcition type has 4 bytes.

  1. symbol existence size assertion in test_symbol_iterator() because symbol names are modified like from a to _a and match arms miss it. For this, we can easily fixing matching arms but then another problem occurs with symbol size:
    thread 'main' panicked at 'assertion failed: `(left == right)`
    left: `0`,
    right: `1`', tests/all/test_object_file.rs:183:21

    It complains that symbol _a(a) has zero size. This behavior occurs only for this _a of i8_type (if assertion for _a is commented out, this test passes). This symbol size issue doesn't appear on Linux, thus it seems to bemach-o specific behavior.

gavrilikhin-d commented 2 years ago

This bug is still present

gavrilikhin-d commented 2 years ago

I will try to fix it

skull-squadron commented 1 year ago

Still a problem

Building with llvm 14 output ``` $ env PATH="$PATH:$(brew --prefix llvm@14)/bin" LLVM_SYS_140_PREFIX="$(brew --prefix llvm@14)" cargo test --all --target=aarch64-apple-darwin --features=llvm14-0 Compiling llvm-sys v140.1.2 Compiling inkwell v0.2.0 (/Users/ba/Projects/inkwell) warning: unused import: `FunctionType` --> src/builder.rs:43:57 | 43 | use crate::types::{AsTypeRef, BasicType, FloatMathType, FunctionType, IntMathType, PointerMathType, PointerType}; | ^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `llvm_sys::core::LLVMGetTypeByName` --> src/module.rs:8:5 | 8 | use llvm_sys::core::LLVMGetTypeByName; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `BasicType` --> src/values/ptr_value.rs:13:31 | 13 | use crate::types::{AsTypeRef, BasicType, IntType, PointerType}; | ^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildCall`: Use LLVMBuildCall2 instead to support opaque pointers. --> src/builder.rs:24:5 | 24 | LLVMBuildCall, LLVMBuildGEP, LLVMBuildInBoundsGEP, LLVMBuildInvoke, LLVMBuildLoad, LLVMBuildPtrDiff, | ^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `llvm_sys::core::LLVMBuildGEP`: Use LLVMBuildGEP2 instead to support opaque pointers. --> src/builder.rs:24:20 | 24 | LLVMBuildCall, LLVMBuildGEP, LLVMBuildInBoundsGEP, LLVMBuildInvoke, LLVMBuildLoad, LLVMBuildPtrDiff, | ^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildInBoundsGEP`: Use LLVMBuildInBoundsGEP2 instead to support opaque pointers. --> src/builder.rs:24:34 | 24 | LLVMBuildCall, LLVMBuildGEP, LLVMBuildInBoundsGEP, LLVMBuildInvoke, LLVMBuildLoad, LLVMBuildPtrDiff, | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildInvoke`: Use LLVMBuildInvoke2 instead to support opaque pointers. --> src/builder.rs:24:56 | 24 | LLVMBuildCall, LLVMBuildGEP, LLVMBuildInBoundsGEP, LLVMBuildInvoke, LLVMBuildLoad, LLVMBuildPtrDiff, | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildLoad`: Use LLVMBuildLoad2 instead to support opaque pointers. --> src/builder.rs:24:73 | 24 | LLVMBuildCall, LLVMBuildGEP, LLVMBuildInBoundsGEP, LLVMBuildInvoke, LLVMBuildLoad, LLVMBuildPtrDiff, | ^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildPtrDiff`: Use LLVMBuildPtrDiff2 instead to support opaque pointers. --> src/builder.rs:24:88 | 24 | LLVMBuildCall, LLVMBuildGEP, LLVMBuildInBoundsGEP, LLVMBuildInvoke, LLVMBuildLoad, LLVMBuildPtrDiff, | ^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildStructGEP`: Use LLVMBuildStructGEP2 instead to support opaque pointers. --> src/builder.rs:25:5 | 25 | LLVMBuildStructGEP, | ^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildCall`: Use LLVMBuildCall2 instead to support opaque pointers. --> src/builder.rs:191:13 | 191 | LLVMBuildCall( | ^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildInvoke`: Use LLVMBuildInvoke2 instead to support opaque pointers. --> src/builder.rs:427:13 | 427 | LLVMBuildInvoke( | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildGEP`: Use LLVMBuildGEP2 instead to support opaque pointers. --> src/builder.rs:871:21 | 871 | let value = LLVMBuildGEP( | ^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildInBoundsGEP`: Use LLVMBuildInBoundsGEP2 instead to support opaque pointers. --> src/builder.rs:922:21 | 922 | let value = LLVMBuildInBoundsGEP( | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildStructGEP`: Use LLVMBuildStructGEP2 instead to support opaque pointers. --> src/builder.rs:1010:30 | 1010 | let value = unsafe { LLVMBuildStructGEP(self.builder, ptr.as_value_ref(), index, c_string.as_ptr()) }; | ^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildPtrDiff`: Use LLVMBuildPtrDiff2 instead to support opaque pointers. --> src/builder.rs:1117:13 | 1117 | LLVMBuildPtrDiff( | ^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMBuildLoad`: Use LLVMBuildLoad2 instead to support opaque pointers. --> src/builder.rs:1248:30 | 1248 | let value = unsafe { LLVMBuildLoad(self.builder, ptr.as_value_ref(), c_string.as_ptr()) }; | ^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDNodeInContext`: Use LLVMMDNodeInContext2 instead. --> src/context.rs:22:50 | 22 | LLVMInt8TypeInContext, LLVMIntTypeInContext, LLVMMDNodeInContext, LLVMMDStringInContext, | ^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDStringInContext`: Use LLVMMDStringInContext2 instead. --> src/context.rs:22:71 | 22 | LLVMInt8TypeInContext, LLVMIntTypeInContext, LLVMMDNodeInContext, LLVMMDStringInContext, | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDNodeInContext`: Use LLVMMDNodeInContext2 instead. --> src/context.rs:327:32 | 327 | MetadataValue::new(LLVMMDNodeInContext( | ^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDStringInContext`: Use LLVMMDStringInContext2 instead. --> src/context.rs:338:37 | 338 | unsafe { MetadataValue::new(LLVMMDStringInContext(self.0, c_string.as_ptr(), string.len() as u32)) } | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMCreateObjectFile`: Use LLVMCreateBinary instead --> src/memory_buffer.rs:6:23 | 6 | use llvm_sys::object::LLVMCreateObjectFile; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMCreateObjectFile`: Use LLVMCreateBinary instead --> src/memory_buffer.rs:126:36 | 126 | let object_file = unsafe { LLVMCreateObjectFile(self.memory_buffer) }; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMGetTypeByName`: Use LLVMGetTypeByName2 instead --> src/module.rs:8:21 | 8 | use llvm_sys::core::LLVMGetTypeByName; | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMDisposeObjectFile`: Use LLVMDisposeBinary instead --> src/object_file.rs:2:5 | 2 | LLVMDisposeObjectFile, LLVMDisposeRelocationIterator, LLVMDisposeSectionIterator, LLVMDisposeSymbolIterator, | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSections`: Use LLVMObjectFileCopySectionIterator instead --> src/object_file.rs:5:45 | 5 | LLVMGetSectionName, LLVMGetSectionSize, LLVMGetSections, LLVMGetSymbolAddress, LLVMGetSymbolName, | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSymbols`: Use LLVMObjectFileCopySymbolIterator instead --> src/object_file.rs:6:24 | 6 | LLVMGetSymbolSize, LLVMGetSymbols, LLVMIsRelocationIteratorAtEnd, LLVMIsSectionIteratorAtEnd, | ^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSectionIteratorAtEnd`: Use LLVMObjectFileIsSectionIteratorAtEnd instead --> src/object_file.rs:6:71 | 6 | LLVMGetSymbolSize, LLVMGetSymbols, LLVMIsRelocationIteratorAtEnd, LLVMIsSectionIteratorAtEnd, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSymbolIteratorAtEnd`: Use LLVMObjectFileIsSymbolIteratorAtEnd instead --> src/object_file.rs:7:5 | 7 | LLVMIsSymbolIteratorAtEnd, LLVMMoveToNextRelocation, LLVMMoveToNextSection, LLVMMoveToNextSymbol, | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:8:5 | 8 | LLVMObjectFileRef, LLVMRelocationIteratorRef, LLVMSectionIteratorRef, LLVMSymbolIteratorRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:18:18 | 18 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:54:18 | 54 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:106:18 | 106 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:153:18 | 153 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:209:18 | 209 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:255:18 | 255 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:22:36 | 22 | pub unsafe fn new(object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:28:33 | 28 | pub fn as_mut_ptr(&self) -> LLVMObjectFileRef { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSections`: Use LLVMObjectFileCopySectionIterator instead --> src/object_file.rs:33:41 | 33 | let section_iterator = unsafe { LLVMGetSections(self.object_file) }; | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSymbols`: Use LLVMObjectFileCopySymbolIterator instead --> src/object_file.rs:39:40 | 39 | let symbol_iterator = unsafe { LLVMGetSymbols(self.object_file) }; | ^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMDisposeObjectFile`: Use LLVMDisposeBinary instead --> src/object_file.rs:47:18 | 47 | unsafe { LLVMDisposeObjectFile(self.object_file) } | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:59:78 | 59 | pub unsafe fn new(section_iterator: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:70:58 | 70 | pub fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSectionIteratorAtEnd`: Use LLVMObjectFileIsSectionIteratorAtEnd instead --> src/object_file.rs:87:31 | 87 | let at_end = unsafe { LLVMIsSectionIteratorAtEnd(self.object_file, self.section_iterator) == 1 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:110:69 | 110 | pub unsafe fn new(section: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:117:65 | 117 | pub unsafe fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:161:22 | 161 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:175:85 | 175 | pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:213:75 | 213 | pub unsafe fn new(relocation: LLVMRelocationIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:223:61 | 223 | pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:260:76 | 260 | pub unsafe fn new(symbol_iterator: LLVMSymbolIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:271:57 | 271 | pub fn as_mut_ptr(&self) -> (LLVMSymbolIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSymbolIteratorAtEnd`: Use LLVMObjectFileIsSymbolIteratorAtEnd instead --> src/object_file.rs:286:31 | 286 | let at_end = unsafe { LLVMIsSymbolIteratorAtEnd(self.object_file, self.symbol_iterator) == 1 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMConstGEP`: Use LLVMConstGEP2 instead to support opaque pointers. --> src/values/ptr_value.rs:2:22 | 2 | use llvm_sys::core::{LLVMConstGEP, LLVMConstInBoundsGEP}; | ^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMConstInBoundsGEP`: Use LLVMConstInBoundsGEP2 instead to support opaque pointers. --> src/values/ptr_value.rs:2:36 | 2 | use llvm_sys::core::{LLVMConstGEP, LLVMConstInBoundsGEP}; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMConstGEP`: Use LLVMConstGEP2 instead to support opaque pointers. --> src/values/ptr_value.rs:85:13 | 85 | LLVMConstGEP( | ^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMConstInBoundsGEP`: Use LLVMConstInBoundsGEP2 instead to support opaque pointers. --> src/values/ptr_value.rs:119:13 | 119 | LLVMConstInBoundsGEP( | ^^^^^^^^^^^^^^^^^^^^ warning: `inkwell` (lib) generated 57 warnings (run `cargo fix --lib -p inkwell` to apply 3 suggestions) warning: unused variable: `array_type` --> tests/all/test_builder.rs:1097:9 | 1097 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `array_type` --> tests/all/test_builder.rs:1199:9 | 1199 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` warning: unused variable: `array_type` --> tests/all/test_builder.rs:1302:9 | 1302 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` warning: `inkwell` (lib test) generated 57 warnings (57 duplicates) warning: `inkwell` (test "all") generated 3 warnings (run `cargo fix --test "all"` to apply 3 suggestions) Finished test [unoptimized + debuginfo] target(s) in 3.24s Running unittests src/lib.rs (target/aarch64-apple-darwin/debug/deps/inkwell-08fd96ae01f97d54) running 1 test test support::test_to_c_str ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/all/main.rs (target/aarch64-apple-darwin/debug/deps/all-a9710371dba70b78) running 137 tests test test_attributes::test_enum_attribute_kinds ... ok test test_attributes::test_string_attributes ... ok test test_attributes::test_type_attribute ... ok test test_basic_block::test_get_basic_blocks ... ok ; ModuleID = 'my_mod' source_filename = "mtest test_basic_block::test_get_address ... yok_ mod" test test_basic_block::test_get_terminator ... ok ; ModuleID = 'sum ' source_filename = "stest test_basic_block::test_get_first_use ... ; Function Attrs: okalwaysinline define unoalias "my_key"="my_val"m i32*test test_basic_block::test_basic_block_ordering ... " @ok my_fn (i32* "my_key"="my_val" %0) #@0_ZTIi { = test test_basic_block::test_no_parent ... external okglobal i 32* define float @get_pi()test test_attributes::test_attributes_on_call_site_values ... entry { okentry :: ret float ret i32* null } 0x400921FB60000000attributes #0 = { alwaysinline } } test test_basic_block::test_rauw ... okdefine float @wrapper() personality i64 ()* @__gxx_personality_v0 { entry: %get_pi = invoke test test_builder::test_atomicrmw ... floatok @ get_pi() to label %then_block unwind labeltest test_builder::test_bitcast ... ok% catch_block then_block: ; preds = %test test_builder::test_build_call ... entry ok ret float %test test_attributes::test_attributes_on_function_values ... get_pi ok catch_block: ; preds = %entry test test_builder::test_build_invoke_catch_all ... %resok = landingpad { i32test test_builder::test_build_invoke_cleanup_resume ... ok *, test test_builder::test_cmpxchg ... iok32 } filter [1 x i32*]test test_builder::test_insert_value ... ok[ i32* @_ZTIi] ret test test_builder::test_no_builder_double_free ... float ok0.000000e+00 } declare i64 @__gxx_personality_v0() test test_builder::test_no_builder_double_free2 ... ok test test_builder::landing_pad_filter ... ok test test_builder::test_alignment_bytes ... ok test test_builder::test_safe_struct_gep ... ok test test_builder::test_unconditional_branch ... ok test test_builder::test_vector_binary_ops ... ok test test_builder::test_vector_convert_ops ... ok test test_builder::test_vector_convert_ops_respect_target_signedness ... ok test test_builder::test_vector_pointer_ops ... ok test test_context::test_basic_block_context ... ok test test_context::test_get_context_from_contextless_value ... ok test test_context::test_get_struct_type ... ok test test_context::test_no_context_double_free ... ok test test_context::test_no_context_double_free3 ... ok test test_context::test_values_get_context ... ok test test_debug_info::test_anonymous_basic_type ... ok test test_debug_info::test_array_type ... ok test test_debug_info::test_global_expressions ... ok test test_debug_info::test_no_explicit_finalize ... ok test test_debug_info::test_pointer_types ... ok test test_debug_info::test_reference_types ... ok test test_debug_info::test_replacing_placeholder_with_placeholder ... ok test test_debug_info::test_smoke ... ok test test_debug_info::test_struct_with_placeholders ... ok test test_execution_engine::test_add_remove_module ... ok test test_execution_engine::test_execution_engine ... ok test test_execution_engine::test_interpreter_execution_engine ... ok test test_instruction_conversion::test_conversion_to_float_value ... ok test test_instruction_conversion::test_conversion_to_int_value ... ok test test_instruction_conversion::test_conversion_to_pointer_value ... ok test test_instruction_conversion::test_phi_conversion ... ok test test_instruction_values::test_atomic_ordering_mem_instructions ... ok test test_instruction_values::test_basic_block_operand ... ok test test_instruction_values::test_find_instruction_with_name ... ok test test_instruction_values::test_get_next_use ... ok test test_instruction_values::test_instructions ... ok test test_execution_engine::test_get_function_address ... ok test test_execution_engine::test_jit_execution_engine ... ok test test_builder::test_memmove ... ok test test_builder::test_memset ... ok test test_builder::test_memcpy ... ok test test_instruction_values::test_operands ... ignored test test_builder::test_switch ... ok test test_instruction_values::test_mem_instructions ... ok test test_intrinsics::test_get_decl_cos ... ok test test_instruction_values::test_volatile_atomicrmw_cmpxchg ... ok test test_instruction_values::test_metadata_kinds ... ok test test_intrinsics::test_get_cos ... ok test test_intrinsics::test_get_nonexistent ... ok test test_intrinsics::test_get_decl_va_copy ... ok test test_builder::test_bit_shifts ... ok test test_module::test_clone ... ok test test_builder::test_null_checked_ptr_ops ... ok test test_builder::test_binary_ops ... ok test test_module::test_double_ee_from_same_module ... ok test test_module::test_get_function ... ok test test_module::test_garbage_ir_fails_create_module_from_ir_copy ... ok test test_module::test_garbage_ir_fails_create_module_from_ir ... ok test test_module::test_get_struct_type ... ok test test_module::test_get_struct_type_global_context ... ok test test_module::test_get_set_target ... ok test test_module::test_metadata_flags ... ok test test_module::test_module_owned_data_layout_disposed_safely ... ok test test_module::test_linking_modules ... ok test test_module::test_write_and_load_memory_buffer ... ok test test_module::test_parse_from_buffer ... ok test test_module::test_print_to_file ... ok test test_object_file::test_reloc_iterator ... ok test test_module::test_parse_from_path ... ok test test_module::test_write_bitcode_to_path ... ok test test_targets::test_default_triple ... FAILED test test_object_file::test_symbol_iterator ... FAILED test test_object_file::test_section_contains_nul ... ok test test_object_file::test_section_iterator ... FAILED test test_passes::test_pass_registry ... ok test test_passes::test_init_all_passes_for_module ... ok test test_types::test_basic_type_enum ... ok test test_types::test_const_zero ... ok test test_types::test_function_type ... ok test test_targets::test_ptr_sized_int ... ok test test_targets::test_target_and_target_machine ... ok test test_types::test_no_vector_zero - should panic ... ok test test_types::test_ptr_address_space ... ok test test_types::test_ptr_type ... ok test test_tari_example::test_tari_example ... ok Running pass: VerifierPass on [module] Running analysis: VerifierAnalysis on test test_passes::test_run_passes_invalid ... [module] okRunning pass: Annotation2MetadataPass on [module] Verifying module my_module Running pass: ForceFunctionAttrsPass on [module] Verifying module my_module Running pass: InferFunctionAttrsPass on [module] Running analysis: InnerAnalysisManagerProxy on [module] Verifying module my_module test test_types::test_sized_types ... Running pass: okOpenMPOptPass on [module] Verifying module my_module Running pass: IPSCCPPass on [module] Verifying module my_module Running pass: CalledValuePropagationPasstest test_types::test_struct_type ... on ok[module] Verifying module my_module Running pass: GlobalOptPass on [module] Verifying module my_module Running pass: DeadArgumentEliminationPass on [module] Verifying module my_module Running pass: ModuleInlinerWrapperPass on [module] Running analysis: InlineAdvisorAnalysis on [module] test test_types::test_type_copies ... ok Running pass: RequireAnalysisPass on test test_types::test_vec_type ... [module]ok Running analysis: GlobalsAA on [module] Running analysis: CallGraphAnalysis on [module] Verifying module my_module Running pass: RequireAnalysisPasstest test_values::test_aggregate_returns ... on [module]ok Running analysis: ProfileSummaryAnalysis on test test_values::test_allocations ... [module]ok Verifying module my_moduletest test_passes::test_pass_manager_builder ... okRunning analysis: InnerAnalysisManagerProxy on [module] test test_values::test_call_site ... Running analysis: okLazyCallGraphAnalysis on [module] test test_values::test_consecutive_fns ... ok Invalidating analysis: InlineAdvisorAnalysis on test test_values::test_constant_expression ... [module]ok Running pass: GlobalOptPass on [module] Verifying module my_moduletest test_targets::test_write_target_machine_to_memory_buffer ... okRunning pass: GlobalDCEPass on [module] Verifying module my_module Running pass: EliminateAvailableExternallyPass on [module] Verifying module my_module test test_values::test_consts ... okRunning pass: ReversePostOrderFunctionAttrsPass on [module] test test_values::test_floats ... Verifying module my_module okRunning pass: RequireAnalysisPass on [module] Verifying module my_module Running pass: MergeFunctionsPass on [module] test test_values::test_function_value_no_params ... Verifying module okmy_module Running pass: CGProfilePass on [module] Verifying module my_moduletest test_values::test_function_value_to_global_to_pointer ... okRunning pass: GlobalDCEPass on [module] Verifying module my_moduletest test_targets::test_write_target_machine_to_file ... okRunning pass: ConstantMergePass on [module]test test_values::test_global_byte_array ... okVerifying module my_module Running pass: test test_values::test_globals ... RelLookupTableConverterPassok on [module] Verifying module my_moduletest test_values::test_linkage ... ok test test_values::test_metadata ... ok test test_values::test_phi_values ... ok test test_values::test_non_fn_ptr_called - should panic ... ok test test_values::test_set_get_name ... ok test test_values::test_string_values ... ok test test_values::test_undef ... ok test test_values::test_value_copies ... ok test test_values::test_value_from_string ... ok test test_passes::test_run_passes ... ok test test_values::test_vectors ... ok test test_values::test_verify_fn ... ok test test_targets::test_target_data ... ok failures: ---- test_targets::test_default_triple stdout ---- thread 'test_targets::test_default_triple' panicked at 'Unexpected target triple: arm64-apple-darwin22.6.0', tests/all/test_targets.rs:173:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ---- test_object_file::test_symbol_iterator stdout ---- thread 'test_object_file::test_symbol_iterator' panicked at 'assertion failed: has_symbol_a', tests/all/test_object_file.rs:184:5 ---- test_object_file::test_section_iterator stdout ---- thread 'test_object_file::test_section_iterator' panicked at 'assertion failed: `(left == right)` left: `4`, right: `1`', tests/all/test_object_file.rs:124:21 failures: test_object_file::test_section_iterator test_object_file::test_symbol_iterator test_targets::test_default_triple test result: FAILED. 133 passed; 3 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.02 ```
Building with llvm 12 failure is different ``` $ env PATH="$PATH:$(brew --prefix llvm@12)/bin" LLVM_SYS_120_PREFIX="$(brew --prefix llvm@12)" cargo test --all --target=aarch64-apple-darwin --features=llvm12-0 warning: unused import: `FunctionType` --> src/builder.rs:43:57 | 43 | use crate::types::{AsTypeRef, BasicType, FloatMathType, FunctionType, IntMathType, PointerMathType, PointerType}; | ^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `llvm_sys::core::LLVMGetTypeByName` --> src/module.rs:8:5 | 8 | use llvm_sys::core::LLVMGetTypeByName; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `BasicType` --> src/values/ptr_value.rs:13:31 | 13 | use crate::types::{AsTypeRef, BasicType, IntType, PointerType}; | ^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDNodeInContext`: Use LLVMMDNodeInContext2 instead. --> src/context.rs:22:50 | 22 | LLVMInt8TypeInContext, LLVMIntTypeInContext, LLVMMDNodeInContext, LLVMMDStringInContext, | ^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `llvm_sys::core::LLVMMDStringInContext`: Use LLVMMDStringInContext2 instead. --> src/context.rs:22:71 | 22 | LLVMInt8TypeInContext, LLVMIntTypeInContext, LLVMMDNodeInContext, LLVMMDStringInContext, | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDNodeInContext`: Use LLVMMDNodeInContext2 instead. --> src/context.rs:327:32 | 327 | MetadataValue::new(LLVMMDNodeInContext( | ^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDStringInContext`: Use LLVMMDStringInContext2 instead. --> src/context.rs:338:37 | 338 | unsafe { MetadataValue::new(LLVMMDStringInContext(self.0, c_string.as_ptr(), string.len() as u32)) } | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMCreateObjectFile`: Use LLVMCreateBinary instead --> src/memory_buffer.rs:6:23 | 6 | use llvm_sys::object::LLVMCreateObjectFile; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMCreateObjectFile`: Use LLVMCreateBinary instead --> src/memory_buffer.rs:126:36 | 126 | let object_file = unsafe { LLVMCreateObjectFile(self.memory_buffer) }; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMGetTypeByName`: Use LLVMGetTypeByName2 instead --> src/module.rs:8:21 | 8 | use llvm_sys::core::LLVMGetTypeByName; | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMDisposeObjectFile`: Use LLVMDisposeBinary instead --> src/object_file.rs:2:5 | 2 | LLVMDisposeObjectFile, LLVMDisposeRelocationIterator, LLVMDisposeSectionIterator, LLVMDisposeSymbolIterator, | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSections`: Use LLVMObjectFileCopySectionIterator instead --> src/object_file.rs:5:45 | 5 | LLVMGetSectionName, LLVMGetSectionSize, LLVMGetSections, LLVMGetSymbolAddress, LLVMGetSymbolName, | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSymbols`: Use LLVMObjectFileCopySymbolIterator instead --> src/object_file.rs:6:24 | 6 | LLVMGetSymbolSize, LLVMGetSymbols, LLVMIsRelocationIteratorAtEnd, LLVMIsSectionIteratorAtEnd, | ^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSectionIteratorAtEnd`: Use LLVMObjectFileIsSectionIteratorAtEnd instead --> src/object_file.rs:6:71 | 6 | LLVMGetSymbolSize, LLVMGetSymbols, LLVMIsRelocationIteratorAtEnd, LLVMIsSectionIteratorAtEnd, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSymbolIteratorAtEnd`: Use LLVMObjectFileIsSymbolIteratorAtEnd instead --> src/object_file.rs:7:5 | 7 | LLVMIsSymbolIteratorAtEnd, LLVMMoveToNextRelocation, LLVMMoveToNextSection, LLVMMoveToNextSymbol, | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:8:5 | 8 | LLVMObjectFileRef, LLVMRelocationIteratorRef, LLVMSectionIteratorRef, LLVMSymbolIteratorRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:18:18 | 18 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:54:18 | 54 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:106:18 | 106 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:153:18 | 153 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:209:18 | 209 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:255:18 | 255 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:22:36 | 22 | pub unsafe fn new(object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:28:33 | 28 | pub fn as_mut_ptr(&self) -> LLVMObjectFileRef { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSections`: Use LLVMObjectFileCopySectionIterator instead --> src/object_file.rs:33:41 | 33 | let section_iterator = unsafe { LLVMGetSections(self.object_file) }; | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSymbols`: Use LLVMObjectFileCopySymbolIterator instead --> src/object_file.rs:39:40 | 39 | let symbol_iterator = unsafe { LLVMGetSymbols(self.object_file) }; | ^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMDisposeObjectFile`: Use LLVMDisposeBinary instead --> src/object_file.rs:47:18 | 47 | unsafe { LLVMDisposeObjectFile(self.object_file) } | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:59:78 | 59 | pub unsafe fn new(section_iterator: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:70:58 | 70 | pub fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSectionIteratorAtEnd`: Use LLVMObjectFileIsSectionIteratorAtEnd instead --> src/object_file.rs:87:31 | 87 | let at_end = unsafe { LLVMIsSectionIteratorAtEnd(self.object_file, self.section_iterator) == 1 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:110:69 | 110 | pub unsafe fn new(section: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:117:65 | 117 | pub unsafe fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:161:22 | 161 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:175:85 | 175 | pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:213:75 | 213 | pub unsafe fn new(relocation: LLVMRelocationIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:223:61 | 223 | pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:260:76 | 260 | pub unsafe fn new(symbol_iterator: LLVMSymbolIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:271:57 | 271 | pub fn as_mut_ptr(&self) -> (LLVMSymbolIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSymbolIteratorAtEnd`: Use LLVMObjectFileIsSymbolIteratorAtEnd instead --> src/object_file.rs:286:31 | 286 | let at_end = unsafe { LLVMIsSymbolIteratorAtEnd(self.object_file, self.symbol_iterator) == 1 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: `inkwell` (lib) generated 39 warnings (run `cargo fix --lib -p inkwell` to apply 3 suggestions) warning: `inkwell` (lib test) generated 39 warnings (39 duplicates) warning: unused variable: `array_type` --> tests/all/test_builder.rs:1097:9 | 1097 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `array_type` --> tests/all/test_builder.rs:1199:9 | 1199 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` warning: unused variable: `array_type` --> tests/all/test_builder.rs:1302:9 | 1302 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` warning: `inkwell` (test "all") generated 3 warnings (run `cargo fix --test "all"` to apply 3 suggestions) Finished test [unoptimized + debuginfo] target(s) in 0.13s Running unittests src/lib.rs (target/aarch64-apple-darwin/debug/deps/inkwell-b53047b926798008) running 1 test test support::test_to_c_str ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/all/main.rs (target/aarch64-apple-darwin/debug/deps/all-294868ce43dd45ef) running 135 tests test test_attributes::test_enum_attribute_kinds ... ok test test_attributes::test_string_attributes ... ok test test_attributes::test_type_attribute ... ok ; ModuleID = 'my_mod' source_filename = "my_mod" test test_basic_block::test_basic_block_ordering ... ok ; Function Attrs: alwaysinline define noalias "my_key"="my_val" itest test_basic_block::test_get_basic_blocks ... ok 32* @my_fn(i32* "my_key"="my_val"test test_basic_block::test_get_first_use ... ok %0) #0 { entry: ret i32* null } attributes #0 = { alwaysinline } test test_basic_block::test_get_terminator ... ok ; ModuleID = 'sum' source_filename = "sum" @_ZTIi = external global i32test test_basic_block::test_get_address ... ok * define float @get_pi() { entry: ret float test test_basic_block::test_no_parent ... ok 0x400921FB60000000 } define float @wrapper() personality i64 ()* test test_attributes::test_attributes_on_call_site_values ... ok @__gxx_personality_v0 { entry: %get_pi = invoke float @get_pi(test test_basic_block::test_rauw ... ok ) to label %then_blocktest test_builder::test_atomicrmw ... ok unwind label %catch_block then_block: ; preds = %entry ret float %get_pi catch_block: ; preds = %entry %res = landingpad { itest test_attributes::test_attributes_on_function_values ... 32ok *, i32 } filter [1 x i32*] [i32* @_ZTIi]test test_builder::test_bitcast ... ok ret float 0.000000e+00 } declare i64 @__gxx_personality_v0() test test_builder::test_build_call ... ok test test_builder::test_build_invoke_catch_all ... ok test test_builder::test_build_invoke_cleanup_resume ... ok test test_builder::test_cmpxchg ... ok test test_builder::landing_pad_filter ... ok test test_builder::test_insert_value ... ok test test_builder::test_no_builder_double_free ... ok test test_builder::test_no_builder_double_free2 ... ok test test_builder::test_safe_struct_gep ... ok test test_builder::test_unconditional_branch ... ok test test_builder::test_vector_binary_ops ... ok test test_builder::test_vector_convert_ops ... ok test test_builder::test_vector_convert_ops_respect_target_signedness ... ok test test_builder::test_vector_pointer_ops ... ok test test_context::test_basic_block_context ... ok test test_context::test_get_context_from_contextless_value ... ok test test_context::test_get_struct_type ... ok test test_builder::test_alignment_bytes ... ok test test_context::test_no_context_double_free ... ok test test_context::test_no_context_double_free3 ... ok test test_context::test_values_get_context ... ok test test_debug_info::test_anonymous_basic_type ... ok test test_debug_info::test_array_type ... ok test test_debug_info::test_global_expressions ... ok test test_debug_info::test_no_explicit_finalize ... ok test test_debug_info::test_pointer_types ... ok test test_debug_info::test_reference_types ... ok test test_debug_info::test_replacing_placeholder_with_placeholder ... ok test test_debug_info::test_smoke ... ok test test_debug_info::test_struct_with_placeholders ... ok test test_execution_engine::test_add_remove_module ... ok test test_execution_engine::test_execution_engine ... ok test test_execution_engine::test_interpreter_execution_engine ... ok test test_instruction_conversion::test_conversion_to_float_value ... ok test test_instruction_conversion::test_conversion_to_int_value ... ok test test_instruction_conversion::test_conversion_to_pointer_value ... ok test test_instruction_conversion::test_phi_conversion ... ok test test_instruction_values::test_atomic_ordering_mem_instructions ... ok test test_instruction_values::test_basic_block_operand ... ok test test_execution_engine::test_get_function_address ... ok test test_execution_engine::test_jit_execution_engine ... ok test test_builder::test_memcpy ... ok test test_builder::test_memmove ... ok test test_instruction_values::test_find_instruction_with_name ... ok test test_instruction_values::test_get_next_use ... ok test test_instruction_values::test_instructions ... ok test test_instruction_values::test_mem_instructions ... ok test test_instruction_values::test_operands ... ignored test test_builder::test_memset ... ok test test_instruction_values::test_metadata_kinds ... ok test test_instruction_values::test_volatile_atomicrmw_cmpxchg ... ok test test_builder::test_null_checked_ptr_ops ... ok test test_intrinsics::test_get_cos ... ok test test_builder::test_switch ... ok test test_intrinsics::test_get_decl_cos ... ok test test_builder::test_binary_ops ... ok test test_intrinsics::test_get_nonexistent ... ok test test_intrinsics::test_get_decl_va_copy ... ok test test_builder::test_bit_shifts ... ok test test_module::test_clone ... ok test test_module::test_garbage_ir_fails_create_module_from_ir_copy ... ok test test_module::test_garbage_ir_fails_create_module_from_ir ... ok test test_module::test_get_function ... ok test test_module::test_get_struct_type ... ok test test_module::test_get_struct_type_global_context ... ok test test_module::test_double_ee_from_same_module ... ok test test_module::test_get_set_target ... ok test test_module::test_metadata_flags ... ok test test_module::test_linking_modules ... ok test test_module::test_module_owned_data_layout_disposed_safely ... ok test test_module::test_parse_from_buffer ... ok test test_module::test_write_and_load_memory_buffer ... ok test test_module::test_print_to_file ... ok test test_module::test_parse_from_path ... ok test test_module::test_write_bitcode_to_path ... ok test test_targets::test_default_triple ... FAILED test test_targets::test_ptr_sized_int ... ok test test_targets::test_target_and_target_machine ... ok LLVM ERROR: Global variable 'gv' has an invalid section specifier ',test': mach-o section specifier requires a segment whose length is between 1 and 16 characters. error: test failed, to rerun pass `--test all` Caused by: process didn't exit successfully: `~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-294868ce43dd45ef` (signal: 6, SIGABRT: process abort signal) ```
Building with llvm 15 fails looking for libzstd ``` $ env PATH="$PATH:$(brew --prefix llvm@15)/bin" LLVM_SYS_150_PREFIX="$(brew --prefix llvm@15)" cargo test --all --target=aarch64-apple-darwin --features=llvm15-0 Compiling llvm-sys v150.1.2 Compiling inkwell v0.2.0 (~/Projects/inkwell) warning: use of deprecated function `llvm_sys::core::LLVMMDNodeInContext`: Use LLVMMDNodeInContext2 instead. --> src/context.rs:22:50 | 22 | LLVMInt8TypeInContext, LLVMIntTypeInContext, LLVMMDNodeInContext, LLVMMDStringInContext, | ^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `llvm_sys::core::LLVMMDStringInContext`: Use LLVMMDStringInContext2 instead. --> src/context.rs:22:71 | 22 | LLVMInt8TypeInContext, LLVMIntTypeInContext, LLVMMDNodeInContext, LLVMMDStringInContext, | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDNodeInContext`: Use LLVMMDNodeInContext2 instead. --> src/context.rs:327:32 | 327 | MetadataValue::new(LLVMMDNodeInContext( | ^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMMDStringInContext`: Use LLVMMDStringInContext2 instead. --> src/context.rs:338:37 | 338 | unsafe { MetadataValue::new(LLVMMDStringInContext(self.0, c_string.as_ptr(), string.len() as u32)) } | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMCreateObjectFile`: Use LLVMCreateBinary instead --> src/memory_buffer.rs:6:23 | 6 | use llvm_sys::object::LLVMCreateObjectFile; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMCreateObjectFile`: Use LLVMCreateBinary instead --> src/memory_buffer.rs:126:36 | 126 | let object_file = unsafe { LLVMCreateObjectFile(self.memory_buffer) }; | ^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMDisposeObjectFile`: Use LLVMDisposeBinary instead --> src/object_file.rs:2:5 | 2 | LLVMDisposeObjectFile, LLVMDisposeRelocationIterator, LLVMDisposeSectionIterator, LLVMDisposeSymbolIterator, | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSections`: Use LLVMObjectFileCopySectionIterator instead --> src/object_file.rs:5:45 | 5 | LLVMGetSectionName, LLVMGetSectionSize, LLVMGetSections, LLVMGetSymbolAddress, LLVMGetSymbolName, | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSymbols`: Use LLVMObjectFileCopySymbolIterator instead --> src/object_file.rs:6:24 | 6 | LLVMGetSymbolSize, LLVMGetSymbols, LLVMIsRelocationIteratorAtEnd, LLVMIsSectionIteratorAtEnd, | ^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSectionIteratorAtEnd`: Use LLVMObjectFileIsSectionIteratorAtEnd instead --> src/object_file.rs:6:71 | 6 | LLVMGetSymbolSize, LLVMGetSymbols, LLVMIsRelocationIteratorAtEnd, LLVMIsSectionIteratorAtEnd, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSymbolIteratorAtEnd`: Use LLVMObjectFileIsSymbolIteratorAtEnd instead --> src/object_file.rs:7:5 | 7 | LLVMIsSymbolIteratorAtEnd, LLVMMoveToNextRelocation, LLVMMoveToNextSection, LLVMMoveToNextSymbol, | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:8:5 | 8 | LLVMObjectFileRef, LLVMRelocationIteratorRef, LLVMSectionIteratorRef, LLVMSymbolIteratorRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:18:18 | 18 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:54:18 | 54 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:106:18 | 106 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:153:18 | 153 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:209:18 | 209 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:255:18 | 255 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:22:36 | 22 | pub unsafe fn new(object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:28:33 | 28 | pub fn as_mut_ptr(&self) -> LLVMObjectFileRef { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSections`: Use LLVMObjectFileCopySectionIterator instead --> src/object_file.rs:33:41 | 33 | let section_iterator = unsafe { LLVMGetSections(self.object_file) }; | ^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMGetSymbols`: Use LLVMObjectFileCopySymbolIterator instead --> src/object_file.rs:39:40 | 39 | let symbol_iterator = unsafe { LLVMGetSymbols(self.object_file) }; | ^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMDisposeObjectFile`: Use LLVMDisposeBinary instead --> src/object_file.rs:47:18 | 47 | unsafe { LLVMDisposeObjectFile(self.object_file) } | ^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:59:78 | 59 | pub unsafe fn new(section_iterator: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:70:58 | 70 | pub fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSectionIteratorAtEnd`: Use LLVMObjectFileIsSectionIteratorAtEnd instead --> src/object_file.rs:87:31 | 87 | let at_end = unsafe { LLVMIsSectionIteratorAtEnd(self.object_file, self.section_iterator) == 1 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:110:69 | 110 | pub unsafe fn new(section: LLVMSectionIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:117:65 | 117 | pub unsafe fn as_mut_ptr(&self) -> (LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:161:22 | 161 | object_file: LLVMObjectFileRef, | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:175:85 | 175 | pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMSectionIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:213:75 | 213 | pub unsafe fn new(relocation: LLVMRelocationIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:223:61 | 223 | pub fn as_mut_ptr(&self) -> (LLVMRelocationIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:260:76 | 260 | pub unsafe fn new(symbol_iterator: LLVMSymbolIteratorRef, object_file: LLVMObjectFileRef) -> Self { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated type alias `llvm_sys::object::LLVMObjectFileRef` --> src/object_file.rs:271:57 | 271 | pub fn as_mut_ptr(&self) -> (LLVMSymbolIteratorRef, LLVMObjectFileRef) { | ^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::object::LLVMIsSymbolIteratorAtEnd`: Use LLVMObjectFileIsSymbolIteratorAtEnd instead --> src/object_file.rs:286:31 | 286 | let at_end = unsafe { LLVMIsSymbolIteratorAtEnd(self.object_file, self.symbol_iterator) == 1 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMGetElementAsConstant`: Use LLVMGetAggregateElement instead --> src/values/vec_value.rs:3:5 | 3 | LLVMGetElementAsConstant, LLVMIsAConstantDataVector, LLVMIsAConstantVector, | ^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `llvm_sys::core::LLVMGetElementAsConstant`: Use LLVMGetAggregateElement instead --> src/values/vec_value.rs:109:38 | 109 | unsafe { BasicValueEnum::new(LLVMGetElementAsConstant(self.as_value_ref(), index)) } | ^^^^^^^^^^^^^^^^^^^^^^^^ warning: `inkwell` (lib) generated 37 warnings warning: unused import: `std::collections::HashMap` --> examples/kaleidoscope/main.rs:15:5 | 15 | use std::collections::HashMap; | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `self` --> examples/kaleidoscope/main.rs:16:15 | 16 | use std::io::{self, Write}; | ^^^^ warning: unused import: `inkwell::context::Context` --> examples/kaleidoscope/main.rs:18:5 | 18 | use inkwell::context::Context; | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `inkwell::passes::PassManager` --> examples/kaleidoscope/main.rs:19:5 | 19 | use inkwell::passes::PassManager; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `inkwell::OptimizationLevel` --> examples/kaleidoscope/main.rs:20:5 | 20 | use inkwell::OptimizationLevel; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:~/.local/share/zplug/bin:~/.local/share/perlbrew/bin:~/.homebrew/lib/ruby/gems/3.2.0/bin:~/.homebrew/opt/ruby/bin:~/.local/share/pnpm:~/.homebrew/sbin:~/.homebrew/bin:~/.bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:~/Library/Application Support/JetBrains/Toolbox/scripts:~/.go/bin:~/.ghcup/bin:~/.cabal/bin:~/.docker/bin:~/.mix/escripts:~/.cargo/bin:~/.homebrew/opt/llvm@15" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/kj/54v5k0w17wg8rjmxsxmn_v2m0000gn/T/rustc7T0Wlt/symbols.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.11wrekvqo2jf8u3o.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.12i3fc342yn4k0ht.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.13f4aj1c4uxvtz0d.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1e3ocg0trzs0x02j.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1iunmk45ghjkb25p.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1ks12dueuk3pk0g2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1kwueogk03hktdhg.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1rinxvosxcxitz8d.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1x5ywhgtryhvu9ci.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1xfodolj88nbpqwk.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1y4rorctlgic8qt3.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1yhrw10tcbecquo5.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.1zek77szy4ojsozl.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.23fbto493oamw2r7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.29osx5dt3nwpdr92.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.2a70022fypa0f7g9.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.2a9250fymakr3dkr.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.2as1d20uo2vgmxqg.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.2atbsy7ibfqq5713.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.2fx2x9z860nyhlf3.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.2qvv81x4xcg4q7k.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.34ku1f2f68htt50c.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.35m0pu6z5mkqxnlx.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3blx3zkoykl1j8sg.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3ekqm37qcfbr46ut.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3gp8gcbvqcck1npn.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3ln6i2kbv7wjhe90.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3rq8z8m1fpjl1ljk.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3us9ksravtlub0a8.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3wd4b2t42n49c7t4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.3yd2en64rzw270h5.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.46lh5rk8nacipd8y.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.485q4jkmknxt8cd6.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.4jt2uaj6qkht500a.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.4kh715dvqdvhp4pq.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.4ktcyr0hymzhd3rq.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.4um75k3rv1zn4iyh.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.4upc3htaxdo9f4xn.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.4wdrakkg71t15htz.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.515cnc7wlri37lx0.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.55jlfrzllonjb1n0.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.5acrf319dxebcjkn.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.5fuqolgkp40gvowa.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.5yrai755nftznxf.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.e85m68pj2rdh1ys.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.fq15oeo1p4fflr5.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.hu9nqs0wr0vdcbu.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.j8l1c826h9plto9.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a.jc5dyh6mu3dd3gq.rcgu.o" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps" "-L" "~/Projects/inkwell/target/debug/deps" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-1baac06ec6e56ea2/out" "-L" "~/.homebrew/Cellar/llvm@15/15.0.7/lib" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-lffi" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-80b14fdc3098a876.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-1490892f5aa52d98.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-922b547cb36edf36.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-bbeadf343748ecb7.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libeither-000e70e59eb8e5b5.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot-6b1241ffe8211b80.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot_core-b19effde2d9c985e.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libcfg_if-5cc13fcba414196c.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libsmallvec-2bca446862ac09cd.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblock_api-49ab74837af1f1b4.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libscopeguard-98ba5ff0ea40f6d9.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libonce_cell-9c4e83f780d746c0.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libllvm_sys-62074b3e4c4480e3.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblibc-d584ae4f9037004e.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-7bed9c9534a4783f.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-f456041915a03f76.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-75e72c3f3eda5e08.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-7ef5de4921915240.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-149c01b62f8a4ec5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-aa054eddcbd6d258.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-b3ef24dd1ab36f55.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-6170fd3ad3878cfb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-af8917bc99df4867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-b8c30b83a6ae9cd5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-605f098102fff522.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-54c9ff9352f5dccb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-205575322fd87867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-a3bb5dbcd821cc67.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-a58cb74e27442406.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-424a32f341952313.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-c04c718cd4c414fe.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-a072ee74c7a13846.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-6dcfe245e3c1f496.rlib" "-lm" "-lz" "-lzstd" "-lcurses" "-lxml2" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/inkwell-b7f1323779e60c9a" "-Wl,-dead_strip" "-nodefaultlibs" = note: ld: library not found for -lzstd clang: error: linker command failed with exit code 1 (use -v to see invocation) warning: `inkwell` (lib test) generated 37 warnings (37 duplicates) error: could not compile `inkwell` (lib test) due to previous error; 37 warnings emitted warning: build failed, waiting for other jobs to finish... error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:~/.local/share/zplug/bin:~/.local/share/perlbrew/bin:~/.homebrew/lib/ruby/gems/3.2.0/bin:~/.homebrew/opt/ruby/bin:~/.local/share/pnpm:~/.homebrew/sbin:~/.homebrew/bin:~/.bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:~/Library/Application Support/JetBrains/Toolbox/scripts:~/.go/bin:~/.ghcup/bin:~/.cabal/bin:~/.docker/bin:~/.mix/escripts:~/.cargo/bin:~/.homebrew/opt/llvm@15" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/kj/54v5k0w17wg8rjmxsxmn_v2m0000gn/T/rustcBojCgk/symbols.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.103ccx8i3p5gcx9o.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.1gvfcg3at97q93b1.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.3a5oxm48c2buse3y.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.3bm0vuacoy6e0ykv.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.42gme8qbxbue2cq4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.f6wovonsznozy4v.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.zmhtf2k7dvaz1gx.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19.1ysru3blfabx24cf.rcgu.o" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps" "-L" "~/Projects/inkwell/target/debug/deps" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-1baac06ec6e56ea2/out" "-L" "~/.homebrew/Cellar/llvm@15/15.0.7/lib" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libinkwell-5c9e3f42ae0c2629.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libeither-000e70e59eb8e5b5.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot-6b1241ffe8211b80.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot_core-b19effde2d9c985e.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libcfg_if-5cc13fcba414196c.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libsmallvec-2bca446862ac09cd.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblock_api-49ab74837af1f1b4.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libscopeguard-98ba5ff0ea40f6d9.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libonce_cell-9c4e83f780d746c0.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libllvm_sys-62074b3e4c4480e3.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblibc-d584ae4f9037004e.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-7bed9c9534a4783f.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-f456041915a03f76.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-75e72c3f3eda5e08.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-7ef5de4921915240.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-149c01b62f8a4ec5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-aa054eddcbd6d258.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-b3ef24dd1ab36f55.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-6170fd3ad3878cfb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-af8917bc99df4867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-b8c30b83a6ae9cd5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-605f098102fff522.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-54c9ff9352f5dccb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-205575322fd87867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-a3bb5dbcd821cc67.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-a58cb74e27442406.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-424a32f341952313.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-c04c718cd4c414fe.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-a072ee74c7a13846.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-6dcfe245e3c1f496.rlib" "-lffi" "-lm" "-lz" "-lzstd" "-lcurses" "-lxml2" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/kaleidoscope-c040e448571b1d19" "-Wl,-dead_strip" "-nodefaultlibs" = note: ld: library not found for -lzstd clang: error: linker command failed with exit code 1 (use -v to see invocation) error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:~/.local/share/zplug/bin:~/.local/share/perlbrew/bin:~/.homebrew/lib/ruby/gems/3.2.0/bin:~/.homebrew/opt/ruby/bin:~/.local/share/pnpm:~/.homebrew/sbin:~/.homebrew/bin:~/.bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:~/Library/Application Support/JetBrains/Toolbox/scripts:~/.go/bin:~/.ghcup/bin:~/.cabal/bin:~/.docker/bin:~/.mix/escripts:~/.cargo/bin:~/.homebrew/opt/llvm@15" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/kj/54v5k0w17wg8rjmxsxmn_v2m0000gn/T/rustc9aPIDM/symbols.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.173iroavq96fp2qv.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.1ec92fibrm507zum.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.1i1l4plj2ce042lr.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.1i8y6wgrziao381y.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.1rd6xcchqqgigfle.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.23caw9h3owlinvax.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.27rceisg9absnged.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.2b1lccj8enex44b7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.2wralmdrnl3bqbkh.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.346xuzrotqregmjw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.38e8j8n4j79yn3q.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.3r66rt777vha212j.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.3wdw45pnicl5hcc0.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.4ga3yus7fdadhc0b.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.4ib16pn4sov2k4at.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.4iogn84ej5c4aary.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.5eituza3k4rnnppp.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.5f3rdhlb8csfww35.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.e89oytg2mgv4v3g.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.qrnrilhn8elukku.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.wtnligwa472u0nn.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf.1ypu2a2575fmpqnh.rcgu.o" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps" "-L" "~/Projects/inkwell/target/debug/deps" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-1baac06ec6e56ea2/out" "-L" "~/.homebrew/Cellar/llvm@15/15.0.7/lib" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libinkwell-5c9e3f42ae0c2629.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libeither-000e70e59eb8e5b5.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot-6b1241ffe8211b80.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot_core-b19effde2d9c985e.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libcfg_if-5cc13fcba414196c.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libsmallvec-2bca446862ac09cd.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblock_api-49ab74837af1f1b4.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libscopeguard-98ba5ff0ea40f6d9.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libonce_cell-9c4e83f780d746c0.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libllvm_sys-62074b3e4c4480e3.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblibc-d584ae4f9037004e.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-7bed9c9534a4783f.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-f456041915a03f76.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-75e72c3f3eda5e08.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-7ef5de4921915240.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-149c01b62f8a4ec5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-aa054eddcbd6d258.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-b3ef24dd1ab36f55.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-6170fd3ad3878cfb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-af8917bc99df4867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-b8c30b83a6ae9cd5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-605f098102fff522.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-54c9ff9352f5dccb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-205575322fd87867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-a3bb5dbcd821cc67.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-a58cb74e27442406.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-424a32f341952313.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-c04c718cd4c414fe.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-a072ee74c7a13846.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-6dcfe245e3c1f496.rlib" "-lffi" "-lm" "-lz" "-lzstd" "-lcurses" "-lxml2" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/examples/jit-a3c729c0d6f2cdbf" "-Wl,-dead_strip" "-nodefaultlibs" = note: ld: library not found for -lzstd clang: error: linker command failed with exit code 1 (use -v to see invocation) error: could not compile `inkwell` (example "jit") due to previous error warning: unused import: `std::convert::TryFrom` --> tests/all/test_builder.rs:4:5 | 4 | use std::convert::TryFrom; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused variable: `array_type` --> tests/all/test_builder.rs:1097:9 | 1097 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `array_type` --> tests/all/test_builder.rs:1199:9 | 1199 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` warning: unused variable: `array_type` --> tests/all/test_builder.rs:1302:9 | 1302 | let array_type = element_type.array_type(array_len as u32); | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_array_type` warning: unused variable: `i64_type` --> tests/all/test_builder.rs:1428:9 | 1428 | let i64_type = context.i64_type(); | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_i64_type` error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:~/.local/share/zplug/bin:~/.local/share/perlbrew/bin:~/.homebrew/lib/ruby/gems/3.2.0/bin:~/.homebrew/opt/ruby/bin:~/.local/share/pnpm:~/.homebrew/sbin:~/.homebrew/bin:~/.bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:~/Library/Application Support/JetBrains/Toolbox/scripts:~/.go/bin:~/.ghcup/bin:~/.cabal/bin:~/.docker/bin:~/.mix/escripts:~/.cargo/bin:~/.homebrew/opt/llvm@15" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/kj/54v5k0w17wg8rjmxsxmn_v2m0000gn/T/rustcI0HTcg/symbols.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.10bvesc48h7jmf13.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.10y52o4mlztym0jw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.111ztuo4aoy4iefq.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.112ohb5kiur7g86d.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.117rdx25c3pxiurw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.11ei90ayip2r8woy.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.127p1i9qhuwjf54p.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.131nhvtztcfpwgm4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.14bxjezps6cm91pl.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.15l10oh3989xdm9h.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.15x00r9jpo3qg0w7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.188i4sb6zwdn9uil.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.19j87smjpe2t7oxj.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1dhnjbqt9d8sjuyn.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1dvffcvszoqqyu0s.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1e2h38mgw2fzrzg4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1ekmn824zn9rp33q.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1mjorm49uxypgs4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1p0ywzrkcxgp3cuy.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1sdl1louqmgoruvc.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1sy3tdxuzutow68b.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1tt3zelysgqtm18l.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1uhfw7clfm3wzqmy.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1v0vkhcmjgnqth6v.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1v65980ifzr9m9ja.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1w6yeieuuvpgvsi1.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1yfwi8cge3p4vyey.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1zft76ad95dvwcud.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.1zyveehg5o6niv4o.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.20jhdgz7h85fmxne.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.23kjpeyr05fjurr2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.24cyqc0ku6s76m08.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.287yf3gojvl2vn0v.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.28overf2chafmikt.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2a4rlyx5vferkp89.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2afzhi4q5eq17voa.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2ccjc63a99p8i3io.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2ckrmxl8qmywu790.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2dck0q2qxn8qc9io.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2de2vutx26wx91qx.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2dz26m4fo8890gf0.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2e8xup5m11mm3sqn.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2eh6opvg4mbxhhod.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2fs1cq26zm8dxm72.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2fw5uokyehuwg53g.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2glkhhpc79ri193d.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2hdp4teu1eywfgah.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2k3aply4erjo0wya.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2kewe66anh0qqora.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2llamhe8u4ow7957.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2lulljayo2s7rth2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2milgf3j8qgu7k36.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2mx80t93jwjj9zq1.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2na85ks28rvgbey.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2o689wglbkqqrbir.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2pe9tb24703ebpl3.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2qqlju04rh9eetba.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2qrwqwd061f2ing7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2rag2wahl2vsoxig.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2tf8hs06h77trv8h.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2uu5wplv1jjew0pb.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2v240yumgr3y32gf.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2v278dhah6xdoppl.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2v7k3hqypsssm0qe.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2vre46y01tm72z2d.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2xjpq8mrlai6z8ab.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.2zgqpbixb6tpjpv7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.305le2r1ayukrrd1.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.30z445y3thgbwca4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.31glzejqhwx4k1xy.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.31kk6duj2dh9ht1h.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.32i5zwqen9pn35mv.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.34a96dxkgisann0x.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.34rmgnxq3pcdaowc.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.36eyvjvgvq6ozyg9.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.36f9pre8p9gnfdsm.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.39g1ub3cz98gvzwf.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3cloovnuwzqtk8y3.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3dr0dge0xc7aqwq2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3gu5j5xi9cv9wxdx.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3i87bs41mfdwl6nh.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3ibqtvm5mx500xnu.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3icqj6gu8mkw2n8y.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3l3u2b3wbupixj2i.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3m0jo7mz3ldv72rq.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3n6ixbiwt08lokmf.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3o93d7icyjszpncq.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3p2vg7i3ko5pc6sp.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3p5eeocjzfu06ess.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3q2pm1gcqeuwtbt2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3rn9kve4rdw6bfnm.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3sbnle35bvnqig4r.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3ur3614okzyf3gre.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3w1mi856txv3w1zm.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3wy5h5lir7l7e2lc.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3ya6idq061pvdsn2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3yx9l1hlpc4owbmi.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3yz9jzyrpt1fnqrv.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.3zchbx83fn5o76x7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.410j7w985g8jmq3o.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.41irbax3vqknte1b.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.42t4e2c24h5z1ize.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.42z3kfbhddwva37y.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.45rxbonhjhy3g2wq.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.469g0po8ylejipst.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.46czawbtaeutb3ir.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.46filr6zokh4xvfw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.47bfxnvvwg2asw3g.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.47cb9l0vi9ox3m43.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.47jhralcwjw8ydaw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4agevbzjlpbjl91i.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4br8q5neaxhc886d.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4g7jwdjlp9u7xvp7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4h6e9wzf2yjh5i26.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4higewafxtdcedl4.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4khnsx02lhmdpwb7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4ko2nbupvu3cssg0.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4krh58aefd4djaha.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4mu49nqdtfdeu8o2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4o2b0ofqbzwhvpof.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4o8dhqdh0svauaxw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4p1eiuyvdmt0wjuw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4pwx5yr7v3nl3zwp.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4q6tp1hfkl0hb1vc.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4qbg28gyi62sqr0o.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4r0c6qx0450evdr1.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4umcf7i9qwiwaeiv.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4xn0d7yqfn6579zc.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4xpekt66v4kdkmct.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4z10sklnsyflst1x.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4z59opb0xbnxdezh.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.50pg8k4o6gbb3ksr.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.50wh4lsbh50smy2r.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.517sc5pnvbydax8o.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.51t6piw9atb8ccdf.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.52jfzlp37v01tzlb.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.53cclkm2k28hkdbs.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.53ezt7p9amfbesh1.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.54lht17gordeita7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.55j9xnpnfzbg9o81.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.58yeqa1zkguvkq2c.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.596yprx8uwmlxwir.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.59qwkdq439n8seed.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.5cxch4754zehmrbp.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.5dhhytti7jh8xqcw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.5eavdr422ew54osk.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.5ffkspcm0d578hm2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.6vf7dutq88f1cgd.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.71jatk78ooxzoz8.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.817evfpi3gm171h.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.9hbge8mse6tfxqi.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.a5wndkowa4cywic.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.aen9icqc9spjxgw.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.b6oweq5uqntc4jx.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.bj8w9wyl7zxjh9q.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.dfbtiijcpzw1qtk.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.dgnht93vlx4mmo0.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.e4alro4ahz6ndyr.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.egyzbcju9jpqv8c.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.fw962cb8l5eirdx.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.gr4ngpag941vtjt.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.i56zr2uc82z686l.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.imzzm84g38fpqft.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.jdre68vyan6htp7.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.lv36p7i9qqjka5u.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.mvgzal1jddt17d5.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.nutidz2vpzmuqwa.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.o6zdwv6w912pg7a.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.q9g5ojn6m88ep7s.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.rci9hmf3p3ok42h.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.tzale3sb9ixpyb2.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.u4tupaxkd8eqs1g.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.z4llv16agrl9a8w.rcgu.o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e.4z7k4fmfoiru87zh.rcgu.o" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps" "-L" "~/Projects/inkwell/target/debug/deps" "-L" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-1baac06ec6e56ea2/out" "-L" "~/.homebrew/Cellar/llvm@15/15.0.7/lib" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libtest-80b14fdc3098a876.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgetopts-1490892f5aa52d98.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunicode_width-922b547cb36edf36.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_std-bbeadf343748ecb7.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libregex-1f00c4b148c3488c.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libregex_automata-fd7039042bbb54e3.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libaho_corasick-d5e39ec2a427587f.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libmemchr-094dcad241f76a49.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libregex_syntax-8fcdb7479f695de4.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libinkwell-5c9e3f42ae0c2629.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libeither-000e70e59eb8e5b5.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot-6b1241ffe8211b80.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libparking_lot_core-b19effde2d9c985e.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libcfg_if-5cc13fcba414196c.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libsmallvec-2bca446862ac09cd.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblock_api-49ab74837af1f1b4.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libscopeguard-98ba5ff0ea40f6d9.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libonce_cell-9c4e83f780d746c0.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/libllvm_sys-62074b3e4c4480e3.rlib" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/liblibc-d584ae4f9037004e.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-7bed9c9534a4783f.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-f456041915a03f76.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-75e72c3f3eda5e08.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-7ef5de4921915240.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-149c01b62f8a4ec5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-aa054eddcbd6d258.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-b3ef24dd1ab36f55.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-6170fd3ad3878cfb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-af8917bc99df4867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-b8c30b83a6ae9cd5.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-605f098102fff522.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-54c9ff9352f5dccb.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-205575322fd87867.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-a3bb5dbcd821cc67.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-a58cb74e27442406.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-424a32f341952313.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-c04c718cd4c414fe.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-a072ee74c7a13846.rlib" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-6dcfe245e3c1f496.rlib" "-lffi" "-lm" "-lz" "-lzstd" "-lcurses" "-lxml2" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/deps/all-8a3b5e25217ff54e" "-Wl,-dead_strip" "-nodefaultlibs" = note: ld: library not found for -lzstd clang: error: linker command failed with exit code 1 (use -v to see invocation) warning: `inkwell` (test "all") generated 5 warnings error: could not compile `inkwell` (test "all") due to previous error; 5 warnings emitted warning: `inkwell` (example "kaleidoscope") generated 5 warnings error: could not compile `inkwell` (example "kaleidoscope") due to previous error; 5 warnings emitted ```
Building with llvm 16 looks for `/opt/homebrew/lib/libz3.dylib` that doesn't exist and isn't produced by `llvm-config` or the installed LLVM. ``` $ env PATH="$PATH:$(brew --prefix llvm@16)/bin" LLVM_SYS_160_PREFIX="$(brew --prefix llvm@16)" cargo test --all --target=aarch64-apple-darwin --features=llvm16-0 Compiling llvm-sys v160.1.3 error: failed to run custom build command for `llvm-sys v160.1.3` Caused by: process didn't exit successfully: `~/Projects/inkwell/target/debug/build/llvm-sys-a0ee45c16afa8232/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=LLVM_SYS_160_PREFIX cargo:rerun-if-changed=~/.homebrew/opt/llvm cargo:rerun-if-env-changed=LLVM_SYS_160_IGNORE_BLOCKLIST cargo:rerun-if-env-changed=LLVM_SYS_160_STRICT_VERSIONING cargo:rerun-if-env-changed=LLVM_SYS_160_NO_CLEAN_CFLAGS cargo:rerun-if-env-changed=LLVM_SYS_160_USE_DEBUG_MSVCRT cargo:rerun-if-env-changed=LLVM_SYS_160_FFI_WORKAROUND TARGET = Some("aarch64-apple-darwin") OPT_LEVEL = Some("0") HOST = Some("aarch64-apple-darwin") cargo:rerun-if-env-changed=CC_aarch64-apple-darwin CC_aarch64-apple-darwin = None cargo:rerun-if-env-changed=CC_aarch64_apple_darwin CC_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh") cargo:rerun-if-env-changed=CFLAGS_aarch64-apple-darwin CFLAGS_aarch64-apple-darwin = None cargo:rerun-if-env-changed=CFLAGS_aarch64_apple_darwin CFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = Some("-I~/.homebrew/Cellar/llvm/16.0.6/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS ") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I~/.homebrew/Cellar/llvm/16.0.6/include" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-o" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-5ae0d133868d8a83/out/wrappers/target.o" "-c" "wrappers/target.c" exit status: 0 cargo:rerun-if-env-changed=AR_aarch64-apple-darwin AR_aarch64-apple-darwin = None cargo:rerun-if-env-changed=AR_aarch64_apple_darwin AR_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = None cargo:rerun-if-env-changed=ARFLAGS_aarch64-apple-darwin ARFLAGS_aarch64-apple-darwin = None cargo:rerun-if-env-changed=ARFLAGS_aarch64_apple_darwin ARFLAGS_aarch64_apple_darwin = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: ZERO_AR_DATE="1" "ar" "cq" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-5ae0d133868d8a83/out/libtargetwrappers.a" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-5ae0d133868d8a83/out/wrappers/target.o" exit status: 0 running: "ar" "s" "~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-5ae0d133868d8a83/out/libtargetwrappers.a" exit status: 0 cargo:rustc-link-lib=static=targetwrappers cargo:rustc-link-search=native=~/Projects/inkwell/target/aarch64-apple-darwin/debug/build/llvm-sys-5ae0d133868d8a83/out cargo:config_path=~/.homebrew/opt/llvm/bin/llvm-config cargo:libdir=~/.homebrew/Cellar/llvm/16.0.6/lib cargo:rustc-link-search=native=~/.homebrew/Cellar/llvm/16.0.6/lib cargo:rustc-link-lib=static=LLVMWindowsManifest cargo:rustc-link-lib=static=LLVMXRay cargo:rustc-link-lib=static=LLVMLibDriver cargo:rustc-link-lib=static=LLVMDlltoolDriver cargo:rustc-link-lib=static=LLVMCoverage cargo:rustc-link-lib=static=LLVMLineEditor cargo:rustc-link-lib=static=LLVMXCoreDisassembler cargo:rustc-link-lib=static=LLVMXCoreCodeGen cargo:rustc-link-lib=static=LLVMXCoreDesc cargo:rustc-link-lib=static=LLVMXCoreInfo cargo:rustc-link-lib=static=LLVMX86TargetMCA cargo:rustc-link-lib=static=LLVMX86Disassembler cargo:rustc-link-lib=static=LLVMX86AsmParser cargo:rustc-link-lib=static=LLVMX86CodeGen cargo:rustc-link-lib=static=LLVMX86Desc cargo:rustc-link-lib=static=LLVMX86Info cargo:rustc-link-lib=static=LLVMWebAssemblyDisassembler cargo:rustc-link-lib=static=LLVMWebAssemblyAsmParser cargo:rustc-link-lib=static=LLVMWebAssemblyCodeGen cargo:rustc-link-lib=static=LLVMWebAssemblyDesc cargo:rustc-link-lib=static=LLVMWebAssemblyUtils cargo:rustc-link-lib=static=LLVMWebAssemblyInfo cargo:rustc-link-lib=static=LLVMVEDisassembler cargo:rustc-link-lib=static=LLVMVEAsmParser cargo:rustc-link-lib=static=LLVMVECodeGen cargo:rustc-link-lib=static=LLVMVEDesc cargo:rustc-link-lib=static=LLVMVEInfo cargo:rustc-link-lib=static=LLVMSystemZDisassembler cargo:rustc-link-lib=static=LLVMSystemZAsmParser cargo:rustc-link-lib=static=LLVMSystemZCodeGen cargo:rustc-link-lib=static=LLVMSystemZDesc cargo:rustc-link-lib=static=LLVMSystemZInfo cargo:rustc-link-lib=static=LLVMSparcDisassembler cargo:rustc-link-lib=static=LLVMSparcAsmParser cargo:rustc-link-lib=static=LLVMSparcCodeGen cargo:rustc-link-lib=static=LLVMSparcDesc cargo:rustc-link-lib=static=LLVMSparcInfo cargo:rustc-link-lib=static=LLVMRISCVTargetMCA cargo:rustc-link-lib=static=LLVMRISCVDisassembler cargo:rustc-link-lib=static=LLVMRISCVAsmParser cargo:rustc-link-lib=static=LLVMRISCVCodeGen cargo:rustc-link-lib=static=LLVMRISCVDesc cargo:rustc-link-lib=static=LLVMRISCVInfo cargo:rustc-link-lib=static=LLVMPowerPCDisassembler cargo:rustc-link-lib=static=LLVMPowerPCAsmParser cargo:rustc-link-lib=static=LLVMPowerPCCodeGen cargo:rustc-link-lib=static=LLVMPowerPCDesc cargo:rustc-link-lib=static=LLVMPowerPCInfo cargo:rustc-link-lib=static=LLVMNVPTXCodeGen cargo:rustc-link-lib=static=LLVMNVPTXDesc cargo:rustc-link-lib=static=LLVMNVPTXInfo cargo:rustc-link-lib=static=LLVMMSP430Disassembler cargo:rustc-link-lib=static=LLVMMSP430AsmParser cargo:rustc-link-lib=static=LLVMMSP430CodeGen cargo:rustc-link-lib=static=LLVMMSP430Desc cargo:rustc-link-lib=static=LLVMMSP430Info cargo:rustc-link-lib=static=LLVMMipsDisassembler cargo:rustc-link-lib=static=LLVMMipsAsmParser cargo:rustc-link-lib=static=LLVMMipsCodeGen cargo:rustc-link-lib=static=LLVMMipsDesc cargo:rustc-link-lib=static=LLVMMipsInfo cargo:rustc-link-lib=static=LLVMLoongArchDisassembler cargo:rustc-link-lib=static=LLVMLoongArchAsmParser cargo:rustc-link-lib=static=LLVMLoongArchCodeGen cargo:rustc-link-lib=static=LLVMLoongArchDesc cargo:rustc-link-lib=static=LLVMLoongArchInfo cargo:rustc-link-lib=static=LLVMLanaiDisassembler cargo:rustc-link-lib=static=LLVMLanaiCodeGen cargo:rustc-link-lib=static=LLVMLanaiAsmParser cargo:rustc-link-lib=static=LLVMLanaiDesc cargo:rustc-link-lib=static=LLVMLanaiInfo cargo:rustc-link-lib=static=LLVMHexagonDisassembler cargo:rustc-link-lib=static=LLVMHexagonCodeGen cargo:rustc-link-lib=static=LLVMHexagonAsmParser cargo:rustc-link-lib=static=LLVMHexagonDesc cargo:rustc-link-lib=static=LLVMHexagonInfo cargo:rustc-link-lib=static=LLVMBPFDisassembler cargo:rustc-link-lib=static=LLVMBPFAsmParser cargo:rustc-link-lib=static=LLVMBPFCodeGen cargo:rustc-link-lib=static=LLVMBPFDesc cargo:rustc-link-lib=static=LLVMBPFInfo cargo:rustc-link-lib=static=LLVMAVRDisassembler cargo:rustc-link-lib=static=LLVMAVRAsmParser cargo:rustc-link-lib=static=LLVMAVRCodeGen cargo:rustc-link-lib=static=LLVMAVRDesc cargo:rustc-link-lib=static=LLVMAVRInfo cargo:rustc-link-lib=static=LLVMARMDisassembler cargo:rustc-link-lib=static=LLVMARMAsmParser cargo:rustc-link-lib=static=LLVMARMCodeGen cargo:rustc-link-lib=static=LLVMARMDesc cargo:rustc-link-lib=static=LLVMARMUtils cargo:rustc-link-lib=static=LLVMARMInfo cargo:rustc-link-lib=static=LLVMAMDGPUTargetMCA cargo:rustc-link-lib=static=LLVMAMDGPUDisassembler cargo:rustc-link-lib=static=LLVMAMDGPUAsmParser cargo:rustc-link-lib=static=LLVMAMDGPUCodeGen cargo:rustc-link-lib=static=LLVMAMDGPUDesc cargo:rustc-link-lib=static=LLVMAMDGPUUtils cargo:rustc-link-lib=static=LLVMAMDGPUInfo cargo:rustc-link-lib=static=LLVMAArch64Disassembler cargo:rustc-link-lib=static=LLVMAArch64AsmParser cargo:rustc-link-lib=static=LLVMAArch64CodeGen cargo:rustc-link-lib=static=LLVMAArch64Desc cargo:rustc-link-lib=static=LLVMAArch64Utils cargo:rustc-link-lib=static=LLVMAArch64Info cargo:rustc-link-lib=static=LLVMOrcJIT cargo:rustc-link-lib=static=LLVMWindowsDriver cargo:rustc-link-lib=static=LLVMMCJIT cargo:rustc-link-lib=static=LLVMJITLink cargo:rustc-link-lib=static=LLVMInterpreter cargo:rustc-link-lib=static=LLVMExecutionEngine cargo:rustc-link-lib=static=LLVMRuntimeDyld cargo:rustc-link-lib=static=LLVMOrcTargetProcess cargo:rustc-link-lib=static=LLVMOrcShared cargo:rustc-link-lib=static=LLVMDWP cargo:rustc-link-lib=static=LLVMDebugInfoLogicalView cargo:rustc-link-lib=static=LLVMDebugInfoGSYM cargo:rustc-link-lib=static=LLVMOption cargo:rustc-link-lib=static=LLVMObjectYAML cargo:rustc-link-lib=static=LLVMObjCopy cargo:rustc-link-lib=static=LLVMMCA cargo:rustc-link-lib=static=LLVMMCDisassembler cargo:rustc-link-lib=static=LLVMLTO cargo:rustc-link-lib=static=LLVMCFGuard cargo:rustc-link-lib=static=LLVMFrontendOpenACC cargo:rustc-link-lib=static=LLVMFrontendHLSL cargo:rustc-link-lib=static=LLVMExtensions cargo:rustc-link-lib=static=Polly cargo:rustc-link-lib=static=PollyISL cargo:rustc-link-lib=static=LLVMPasses cargo:rustc-link-lib=static=LLVMCoroutines cargo:rustc-link-lib=static=LLVMipo cargo:rustc-link-lib=static=LLVMInstrumentation cargo:rustc-link-lib=static=LLVMVectorize cargo:rustc-link-lib=static=LLVMLinker cargo:rustc-link-lib=static=LLVMFrontendOpenMP cargo:rustc-link-lib=static=LLVMDWARFLinkerParallel cargo:rustc-link-lib=static=LLVMDWARFLinker cargo:rustc-link-lib=static=LLVMGlobalISel cargo:rustc-link-lib=static=LLVMMIRParser cargo:rustc-link-lib=static=LLVMAsmPrinter cargo:rustc-link-lib=static=LLVMSelectionDAG cargo:rustc-link-lib=static=LLVMCodeGen cargo:rustc-link-lib=static=LLVMObjCARCOpts cargo:rustc-link-lib=static=LLVMIRPrinter cargo:rustc-link-lib=static=LLVMInterfaceStub cargo:rustc-link-lib=static=LLVMFileCheck cargo:rustc-link-lib=static=LLVMFuzzMutate cargo:rustc-link-lib=static=LLVMTarget cargo:rustc-link-lib=static=LLVMScalarOpts cargo:rustc-link-lib=static=LLVMInstCombine cargo:rustc-link-lib=static=LLVMAggressiveInstCombine cargo:rustc-link-lib=static=LLVMTransformUtils cargo:rustc-link-lib=static=LLVMBitWriter cargo:rustc-link-lib=static=LLVMAnalysis cargo:rustc-link-lib=static=LLVMProfileData cargo:rustc-link-lib=static=LLVMSymbolize cargo:rustc-link-lib=static=LLVMDebugInfoPDB cargo:rustc-link-lib=static=LLVMDebugInfoMSF cargo:rustc-link-lib=static=LLVMDebugInfoDWARF cargo:rustc-link-lib=static=LLVMObject cargo:rustc-link-lib=static=LLVMTextAPI cargo:rustc-link-lib=static=LLVMMCParser cargo:rustc-link-lib=static=LLVMIRReader cargo:rustc-link-lib=static=LLVMAsmParser cargo:rustc-link-lib=static=LLVMMC cargo:rustc-link-lib=static=LLVMDebugInfoCodeView cargo:rustc-link-lib=static=LLVMBitReader cargo:rustc-link-lib=static=LLVMFuzzerCLI cargo:rustc-link-lib=static=LLVMCore cargo:rustc-link-lib=static=LLVMRemarks cargo:rustc-link-lib=static=LLVMBitstreamReader cargo:rustc-link-lib=static=LLVMBinaryFormat cargo:rustc-link-lib=static=LLVMTargetParser cargo:rustc-link-lib=static=LLVMTableGen cargo:rustc-link-lib=static=LLVMSupport cargo:rustc-link-lib=static=LLVMDemangle --- stderr thread 'main' panicked at 'Unable to parse result of llvm-config --system-libs: was "/opt/homebrew/lib/libz3.dylib"', ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/llvm-sys-160.1.3/build.rs:327:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```
qartik commented 9 months ago

The fix seems to be, at least for LLVM 15 zstd issue, to include the following in ~/.cargo/config.toml:

[build]
rustflags = ["-L", "/opt/homebrew/lib/"]
mabhay3420 commented 3 months ago

The fix seems to be, at least for LLVM 15 zstd issue, to include the following in ~/.cargo/config.toml:

[build]
rustflags = ["-L", "/opt/homebrew/lib/"]

Seems to work for llvm18-0 version as well.