<div dir="ltr"><div dir="ltr">Appending -L is giving same error:</div><div dir="ltr"><br></div><div dir="ltr">SHLIB_LINK += -lrt -std=c++11 -lc++ -L/usr/local/lib/x86_64-unknown-linux<br><div>----</div><div>/bin/ld: cannot find -lc++<br></div><div>collect2: error: ld returned 1 exit status<br>make: *** [<a href="http://plv8-3.0.0.so">plv8-3.0.0.so</a>] Error 1<br></div><div>----</div><div><br></div><div>Also tried removing lc++</div><div>SHLIB_LINK += -lrt -std=c++11 <br></div><div><br></div><div>giving error:</div><div>--</div><div>/usr/bin/opt -module-summary -f plv8.bc -o plv8.bc<br>make: /usr/bin/opt: Command not found<br>make: *** [plv8.bc] Error 127<br></div><div>----</div><div><br></div><div>Below is also giving above error i.e. "make: /usr/bin/opt: Command not found"</div><div>SHLIB_LINK += -lrt -std=c++11 libstdc++<br></div><div><br></div></div><div>As a separate test, I tried to fix the "not found" of "libc++abi.so.1" (as indicated in my original post) with following:</div><div>export LD_LIBRARY_PATH=/usr/local/lib/x86_64-unknown-linux/<br></div><div>[root@ip-1-3-1-1 plv8-3.0.0]# ldd /usr/local/lib/x86_64-unknown-linux/libc++.so.1.0<br>        linux-vdso.so.1 (0x00007ffce078e000)<br>        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fefd6ae0000)<br>        libc.so.6 => /lib64/libc.so.6 (0x00007fefd6735000)<br>        libm.so.6 => /lib64/libm.so.6 (0x00007fefd63f5000)<br>        librt.so.1 => /lib64/librt.so.1 (0x00007fefd61ed000)<br>        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fefd5fd7000)<br>        libatomic.so.1 => /lib64/libatomic.so.1 (0x00007fefd5dcf000)<br>        libc++abi.so.1 => /usr/local/lib/x86_64-unknown-linux/libc++abi.so.1 (0x00007fefd5b8e000)<br>        /lib64/ld-linux-x86-64.so.2 (0x00007fefd6fcf000)<br>[root@ip-1-1-0-1 plv8-3.0.0]#<br></div><div><br></div><div>and trying with " SHLIB_LINK += -lrt -std=c++11 -lc++"</div><div><br></div><div>gives error:</div><div><br></div><div>----</div><div>/bin/ld: cannot find -lc++<br>collect2: error: ld returned 1 exit status<br>make: *** [<a href="http://plv8-3.0.0.so">plv8-3.0.0.so</a>] Error 1<br></div><div>----</div><div><br></div><div>If I understand correctly, the "make" of plv8 is searching for -lc++ which is provisioned as part of " libc++abi.so.1" or "libc++.so.1.0" and both of these are present in my machine, but probably the linker (ld) is not able to find either or both of them and as a result throwing error when it comes to link lc++.</div><div><br></div><div>lc++ is the last thing which plv8 is looking for, and if this issue is resolved then I guess I'm not too far off from finally installing plv8.</div><div><br></div><div>Therefore, I would appreciate it if anyone can throw some ideas/solutions here!</div><div><br></div><div>Thank you!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 Dec 2021 at 03:35, 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">I rather meant appending. I'd imagine plv8 might require linking rt and the <br>
explicit standard flag.<br>
<br>
 > Also, could you please elaborate what is meant by "It might be easier to <br>
simply use libstdc++ though"<br>
<br>
Presumably Amazon Linux uses libstdc++. Instead of using libc++ for plv8 and <br>
having to compile it, install it and make sure everything else is built with it <br>
too, you could simply use the system's (i.e. remove the -lc++).<br>
</blockquote></div></div>