someguynamedjosh / audiobench

Open source modular synthesizer
https://someguynamedjosh.github.io/audiobench/
GNU General Public License v3.0
77 stars 2 forks source link

Linking error #19

Closed KottV closed 3 years ago

KottV commented 4 years ago

Hi!

I'm trying to build audiobench, but stuck on the linking stage:

 [ 42%] Built target Audiobench
[ 44%] Linking CXX executable Audiobench_artefacts/Release/Standalone/Audiobench
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /media/src/src/audio/audiobench/target/release/libaudiobench_clib.a(bzip2-07c3e8e4fd9a7ea2.bzip2.egqh77yz-cgu.0.rcgu.o): undefined reference to symbol 'BZ2_bzCompressEnd'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libbz2.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/Audiobench_Standalone.dir/build.make:246: Audiobench_artefacts/Release/Standalone/Audiobench] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:177: CMakeFiles/Audiobench_Standalone.dir/all] Error 2
gmake: *** [Makefile:149: all] Error 2
ERROR: The command "cmake --build _build --config Release" failed with exit code 2.

I haven't any experience with Cargo build. How to add missing flags in this case?

someguynamedjosh commented 4 years ago

This looks like a problem with the CMake script located in components/juce_frontend/CMakeLists.txt. The libraries to link to are manually specified towards the bottom of the file in the call to target_link_libraries. Googling a bit about the error message you got it looks like it may be a problem with the order the libraries are specified in. Try moving the z library to be after all the other libraries. Alternatively, try keeping it and adding it a second time at the end of the file.

It also looks like the error is originating from linking with libbzip2 but CMakeLists.txt only specifies an entry for zlib. I am assuming there is a symlink somewhere that ends up being resolved to libbz2.so.1. If the above two recommendations do not work, try replacing z in CMakeLists.txt with bzip2 or bz2.

KottV commented 4 years ago

Thanks, progress. Added bz2 to juce's CMakeLists.txt Now it cannot find llvm:

bunch of such messages:

undefined reference to `LLVMAlignOf'
someguynamedjosh commented 4 years ago

Hm, that's odd. llvm should be statically linked in a previous stage. Can you run ./build.py benchmark --release and share the output? Doing so will try to build and run the project purely through cargo, skipping over building with JUCE to provide the frontend.

KottV commented 4 years ago

I cut other errors:

Compiling benchmark v0.1.0 (/media/src/src/audio/audiobench/components/benchmark)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.0.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.1.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.10.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.11.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.12.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.13.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.14.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.15.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.2.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.3.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.4.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.5.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.6.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.7.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.8.rcgu.o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.benchmark.4q8y3y6f-cgu.9.rcgu.o" "-o" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003" "/media/src/src/audio/audiobench/target/release/deps/benchmark-ccc10025443d2003.3lh81ljwbtgbrf0s.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/media/src/src/audio/audiobench/target/release/deps" "-L" "/media/src/src/audio/audiobench/target/release/build/llvm-sys-490d34b61f5601a1/out" "-L" "/usr/lib64" "-L" "/media/src/src/audio/audiobench/target/release/build/ring-8fb432a39c86bcd1/out" "-L" "/usr/lib64" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/media/src/src/audio/audiobench/target/release/deps/libaudiobench-2b9e36b2bb3978b6.rlib" "/media/src/src/audio/audiobench/target/release/deps/libserde_json-b3e31d0eaae75295.rlib" "/media/src/src/audio/audiobench/target/release/deps/libryu-eda34e23923ddac5.rlib" "/media/src/src/audio/audiobench/target/release/deps/libzip-e6141cab8004012b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtime-f0a874f46e8ca92c.rlib" "/media/src/src/audio/audiobench/target/release/deps/libbzip2-07c3e8e4fd9a7ea2.rlib" "/media/src/src/audio/audiobench/target/release/deps/libbzip2_sys-b073474e19c51712.rlib" "/media/src/src/audio/audiobench/target/release/deps/libflate2-25c90a59d3ec5350.rlib" "/media/src/src/audio/audiobench/target/release/deps/libminiz_oxide-4607db0a2f76445f.rlib" "/media/src/src/audio/audiobench/target/release/deps/libadler32-1079f0dfe137b1b7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libbyteorder-ed9df410fb98b31c.rlib" "/media/src/src/audio/audiobench/target/release/deps/libcrc32fast-1a9ea2fb5727e9ec.rlib" "/media/src/src/audio/audiobench/target/release/deps/libdirectories-9089a01c27553723.rlib" "/media/src/src/audio/audiobench/target/release/deps/libdirs_sys-8fe3ae860d017100.rlib" "/media/src/src/audio/audiobench/target/release/deps/libwebbrowser-4276232ae49b9734.rlib" "/media/src/src/audio/audiobench/target/release/deps/libclipboard-ecfee33fd9153433.rlib" "/media/src/src/audio/audiobench/target/release/deps/libx11_clipboard-532792917385f987.rlib" "/media/src/src/audio/audiobench/target/release/deps/libxcb-5b3a3f2e08165efa.rlib" "/media/src/src/audio/audiobench/target/release/deps/libreqwest-a937b2aeeb36c71d.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhyper_rustls-960eece665904143.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhyper_tls-4c4138edf5f9ddb9.rlib" "/media/src/src/audio/audiobench/target/release/deps/libwebpki_roots-e66895c8e469ceea.rlib" "/media/src/src/audio/audiobench/target/release/deps/libipnet-ee7892de28a09172.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtokio_tls-2509960c9c2e0554.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtokio_rustls-8c8e5ffb7197390f.rlib" "/media/src/src/audio/audiobench/target/release/deps/librustls-202f5143ea74a547.rlib" "/media/src/src/audio/audiobench/target/release/deps/libsct-fce50f3010163705.rlib" "/media/src/src/audio/audiobench/target/release/deps/libwebpki-2edc4c548827e3f7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libring-c48b3e0b42ebb5ec.rlib" "/media/src/src/audio/audiobench/target/release/deps/libspin-9c3903e457c93852.rlib" "/media/src/src/audio/audiobench/target/release/deps/libuntrusted-fd2bf70a54473066.rlib" "/media/src/src/audio/audiobench/target/release/deps/libserde_urlencoded-3169f6876e1c6428.rlib" "/media/src/src/audio/audiobench/target/release/deps/libdtoa-f88142802cf7dc7d.rlib" "/media/src/src/audio/audiobench/target/release/deps/libencoding_rs-b8c078b889a0366c.rlib" "/media/src/src/audio/audiobench/target/release/deps/libserde-37b9a950c9f1d15f.rlib" "/media/src/src/audio/audiobench/target/release/deps/libbase64-68dca5f12fc012a5.rlib" "/media/src/src/audio/audiobench/target/release/deps/libmime_guess-a5e3bd2d1db565b4.rlib" "/media/src/src/audio/audiobench/target/release/deps/libunicase-455911a1a72ba7f7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libmime-bb5f5e5b9cd5b459.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnative_tls-9921c81e5e5eb4e3.rlib" "/media/src/src/audio/audiobench/target/release/deps/libopenssl_probe-90e72f81c56c191f.rlib" "/media/src/src/audio/audiobench/target/release/deps/libopenssl-f2594c5b04e411bb.rlib" "/media/src/src/audio/audiobench/target/release/deps/libopenssl_sys-d12840c5d4070190.rlib" "/media/src/src/audio/audiobench/target/release/deps/libforeign_types-6fe118e871c4d108.rlib" "/media/src/src/audio/audiobench/target/release/deps/libforeign_types_shared-c00434ed3a935390.rlib" "/media/src/src/audio/audiobench/target/release/deps/libbitflags-237c80b5ea85b88e.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhyper-915e38714b283c40.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhttparse-6e100c5ac782a189.rlib" "/media/src/src/audio/audiobench/target/release/deps/libwant-25a06d7651b48e1b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtry_lock-492e81af481f5b73.rlib" "/media/src/src/audio/audiobench/target/release/deps/libh2-504c03bf2fec232b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libindexmap-c3aae67f9ee4f5ac.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhashbrown-d10d33fd1e403aa4.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtokio_util-e81c5f5a3ccd524b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfutures_sink-452143425db0b071.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhttpdate-48242518f975ce7d.rlib" "/media/src/src/audio/audiobench/target/release/deps/libsocket2-d978984fd1c7f557.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtower_service-c35cd8e554d66e85.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfutures_channel-870197819db3d46c.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtracing-ffdde4d4797b8ccf.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtracing_core-ce0fa2763f835636.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtokio-02302eb9dd4e7ae3.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_cpus-848a6b9580ab62bb.rlib" "/media/src/src/audio/audiobench/target/release/deps/libmio-7d924d932238c407.rlib" "/media/src/src/audio/audiobench/target/release/deps/libiovec-e94724a90a18ec08.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnet2-21c9fb51352ead22.rlib" "/media/src/src/audio/audiobench/target/release/deps/libpin_project_lite-b424be8d96e139f5.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhttp_body-ec9ce6b305eb2a39.rlib" "/media/src/src/audio/audiobench/target/release/deps/liblog-62710e5d5d492f58.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfutures_util-df3dd5237e4d7164.rlib" "/media/src/src/audio/audiobench/target/release/deps/libproc_macro_nested-e2ae2dacaccaa9fa.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfutures_io-698eea4aad94db21.rlib" "/media/src/src/audio/audiobench/target/release/deps/libslab-51ae1837068a4f4b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libpin_project-7940903a7988e893.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfutures_task-0acc8a09b8133731.rlib" "/media/src/src/audio/audiobench/target/release/deps/libpin_utils-1a246a08d4081952.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfutures_core-aa3ea850877c1693.rlib" "/media/src/src/audio/audiobench/target/release/deps/liburl-cfc97e6f731196b0.rlib" "/media/src/src/audio/audiobench/target/release/deps/libpercent_encoding-b303331b9b056817.rlib" "/media/src/src/audio/audiobench/target/release/deps/libidna-73a05e9b77ddcb0d.rlib" "/media/src/src/audio/audiobench/target/release/deps/libunicode_normalization-16135b2bc5b6f3d7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libtinyvec-4e26b021210ba546.rlib" "/media/src/src/audio/audiobench/target/release/deps/libunicode_bidi-1fe0c100ed1107d5.rlib" "/media/src/src/audio/audiobench/target/release/deps/libmatches-13813561da04e372.rlib" "/media/src/src/audio/audiobench/target/release/deps/libhttp-a2b8b71d6a5be8bc.rlib" "/media/src/src/audio/audiobench/target/release/deps/libitoa-ef1b02add923cb85.rlib" "/media/src/src/audio/audiobench/target/release/deps/libbytes-6fae691d7b93c5b9.rlib" "/media/src/src/audio/audiobench/target/release/deps/libfnv-81144069eadc7507.rlib" "/media/src/src/audio/audiobench/target/release/deps/librand-3c430fe45ba16f4b.rlib" "/media/src/src/audio/audiobench/target/release/deps/librand_chacha-77d1f27a2457bc2b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libppv_lite86-78794084e9a5fd31.rlib" "/media/src/src/audio/audiobench/target/release/deps/librand_core-0d147ce0c89b66d3.rlib" "/media/src/src/audio/audiobench/target/release/deps/libgetrandom-952c23f9ac2ff8f7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libenumflags2-425e32492897cd86.rlib" "/media/src/src/audio/audiobench/target/release/deps/libarray_macro-5a9eacbe355163e5.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnodespeak-1803be201662bf3b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libsnailquote-11ddd3e861e594c4.rlib" "/media/src/src/audio/audiobench/target/release/deps/libthiserror-b151ad75ef2a6857.rlib" "/media/src/src/audio/audiobench/target/release/deps/libunicode_categories-f3b069c9755c4213.rlib" "/media/src/src/audio/audiobench/target/release/deps/libouroboros-6df6502f81d59265.rlib" "/media/src/src/audio/audiobench/target/release/deps/libstable_deref_trait-0f484404bf0d8bf0.rlib" "/media/src/src/audio/audiobench/target/release/deps/libshared_util-3cd167b8794703c0.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum-7d2e2a7ed7d15550.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_rational-e73b08087089e60b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_iter-437336029e813942.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_complex-31fa984a333546e9.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_bigint-a375a70b37111803.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_integer-4fb6d97c6e5b5c63.rlib" "/media/src/src/audio/audiobench/target/release/deps/libnum_traits-ea0754a1330b77ee.rlib" "/media/src/src/audio/audiobench/target/release/deps/libinkwell-66a90a438cd623ff.rlib" "/media/src/src/audio/audiobench/target/release/deps/libregex-d64c09dd5f65ceaa.rlib" "/media/src/src/audio/audiobench/target/release/deps/libthread_local-82098eee08925e55.rlib" "/media/src/src/audio/audiobench/target/release/deps/liblazy_static-f3a1149be71c487c.rlib" "/media/src/src/audio/audiobench/target/release/deps/libregex_syntax-03c337f423692c89.rlib" "/media/src/src/audio/audiobench/target/release/deps/libaho_corasick-a36eac102cc5d8e0.rlib" "/media/src/src/audio/audiobench/target/release/deps/libmemchr-6e8a885bb93e3b56.rlib" "/media/src/src/audio/audiobench/target/release/deps/libparking_lot-3e403e7a1d4f4d77.rlib" "/media/src/src/audio/audiobench/target/release/deps/libparking_lot_core-08d1281645aff8cd.rlib" "/media/src/src/audio/audiobench/target/release/deps/libsmallvec-815816d85f11cc35.rlib" "/media/src/src/audio/audiobench/target/release/deps/liblock_api-1fc7142514ff6878.rlib" "/media/src/src/audio/audiobench/target/release/deps/libscopeguard-b9b164044d45306d.rlib" "/media/src/src/audio/audiobench/target/release/deps/libinstant-b9f4187a69976ff7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libcfg_if-159ef7db7e0db6c9.rlib" "/media/src/src/audio/audiobench/target/release/deps/libonce_cell-87e42546d2ee65a7.rlib" "/media/src/src/audio/audiobench/target/release/deps/libeither-70dcf7d798c1e033.rlib" "/media/src/src/audio/audiobench/target/release/deps/libllvm_sys-a619c666f1d8b3cd.rlib" "/media/src/src/audio/audiobench/target/release/deps/liblibc-6560d3e3d939bf2b.rlib" "/media/src/src/audio/audiobench/target/release/deps/libpest-6ca9b72eeab9a897.rlib" "/media/src/src/audio/audiobench/target/release/deps/libucd_trie-585c4251f0cc6cc5.rlib" "-Wl,--start-group" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-cd536718a65fdcea.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort-f7dd961424152c3f.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-dc79b5ced7d8a007.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-0d0ad9852d010ceb.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-28ee4c2d84b91929.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-355cac374fd8f3ba.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-34925f7cf47181c7.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-23e8a800bf1aea97.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-027326a87aff0d5a.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-264bb8f0b8dca45e.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-8ad65c09277258cc.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-325cad405cde9cf7.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d053e59c2e1f2d5.rlib" "-Wl,--end-group" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-74595c3e4e498566.rlib" "-Wl,-Bdynamic" "-lbz2" "-lxcb" "-lxcb" "-lxcb" "-lxcb" "-lxcb-render" "-lxcb-shape" "-lxcb-xfixes" "-lssl" "-lcrypto" "-lffi" "-lstdc++" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
  = note: /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /media/src/src/audio/audiobench/target/release/deps/libnodespeak-1803be201662bf3b.rlib(nodespeak-1803be201662bf3b.nodespeak.efwkpyt5-cgu.5.rcgu.o): in function `inkwell::builder::Builder::build_call':
          nodespeak.efwkpyt5-cgu.5:(.text._ZN7inkwell7builder7Builder10build_call17h7815022b47684f91E+0x40): undefined reference to `LLVMTypeOf'
someguynamedjosh commented 4 years ago

It looks like LLVM is found, otherwise you would have gotten an error earlier saying something like "Cannot find a valid system-wide installation of LLVM". Do you know what command you used to install LLVM? One thing you can try is creating your own local build of LLVM using LLVMEnv, which is what I did for my computer. I didn't list it in the build steps because installing llvm-7 worked fine for CI builds.

KottV commented 4 years ago

I've added -lLLVM to components/juce_frontend/CMakeLists.txt and it compiles now

KottV commented 4 years ago

I runs, but with error:

Default patch failed to compile!
This is a critical error, please submit a bug report containing this error:

ERROR: Invalid Entity Name
There is no macro, variable, or data type visible in this scope with the 
specified name.
--------------------------------------------------------------------------------
|   | !:lib.ns:9:49
--------------------------------------------------------------------------------
| 9 | macro FlatWaveform(buffer_pos, phase):(value) { AUTO value = 0.0; }
|   |                                                 ~~~~
--------------------------------------------------------------------------------

HINT: Encountered while including this file.
--------------------------------------------------------------------------------
|    | <note graph>:14:1
--------------------------------------------------------------------------------
| 14 | include "!:lib.ns";
|    | ~~~~~~~~~~~~~~~~~~~
--------------------------------------------------------------------------------
KottV commented 4 years ago

It looks like LLVM is found, otherwise you would have gotten an error earlier saying something like "Cannot find a valid system-wide installation of LLVM". Do you know what command you used to install LLVM? One thing you can try is creating your own local build of LLVM using LLVMEnv, which is what I did for my computer. I didn't list it in the build steps because installing llvm-7 worked fine for CI builds.

I use llvm-10.0.1 on openSUSE Tumbleweed

someguynamedjosh commented 4 years ago

If you are running it from the dev branch, there are currently some breaking changes which will make it not work. Try the beta branch instead, it should be stable.

I am concerned as to why adding -lLLVM was necessary as it should be statically linked.

someguynamedjosh commented 4 years ago

@KottV Did switching the branch help? The dev branch should also work now with the recent changes I've made.

KottV commented 4 years ago

Sorry, being busy a little. Last time I've tried and got the same error. Gonna check later.

someguynamedjosh commented 3 years ago

This issue should be fixed now, you can test it out with the latest build. Closing for now due to inactivity.