<div dir="ltr"># ls /usr/local/lib/x86_64-unknown-linux | grep -i libc++.so.1.0<br>libc++.so.1.0<br><div><br></div><div># ldd -v /usr/local/lib/x86_64-unknown-linux/libc++.so.1.0 | grep -i libc++.so.1.0<br>        /usr/local/lib/x86_64-unknown-linux/libc++.so.1.0:<br></div><div><br></div><div>I can try with opt. Can you provide some reference on building opt on Linux?</div><div><br></div><div>To override LLVM_BINPATH, do I need to install llvm-config and then override something like  "LLVM_BINPATH=$LLVM_CONFIG --bindir" ?</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 Dec 2021 at 16:21, Raul Tambre <<a href="mailto:raul@tambre.ee">raul@tambre.ee</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> > Appending -L is giving same error:<br>
<br>
Is libc++.so.1.0 actually in the folder /usr/local/lib/x86_64-unknown-linux?<br>
Where is ld searching (-v)?<br>
<br>
 > Below is also giving above error i.e. "make: /usr/bin/opt: Command not found"<br>
<br>
I guess plv8 also requires opt, so also build that. Since you are installing <br>
/usr/local you may need to override LLVM_BINPATH that plv8 uses. It's unclear to <br>
me how it's set or derived by default.<br>
</blockquote></div>