<div dir="ltr">Pierre,<div><br></div><div>To the best of my understanding, you will generally need to pass something like `--prefix=/opt/cfarm/...` to configure rather than install under $HOME.<br>However, that (probably) does not address the issue of symlinks from `.so` to `.so.[version]` and their interaction with the security feature (e.g. libm.so -> libm.so.6).<br><br></div><div>With the GDB 8.0.1 executable I've mentioned previously in this thread, I configured my libgmp and libmpfr builds with `--disable-shared --enable-static`.</div><div>That eliminates the need to install those two libs and thus the symlink issue.</div><div><br></div><div>-Paul</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jun 19, 2025 at 10:03 PM Pierre Muller via cfarm-users <<a href="mailto:cfarm-users@lists.tetaneutral.net">cfarm-users@lists.tetaneutral.net</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">Hi,<br>
<br>
Le 17/06/2025 à 23:06, Andreas Schwab via cfarm-users a écrit :<br>
> On Jun 17 2025, Paul H. Hargrove via cfarm-users wrote:<br>
> <br>
>> I've symlinked from my GDB install to /opt/cfarm/gdb-8.0.1.<br>
>> However, Pierre reported that the symlink gave permission denied errors,<br>
>> while direct access to the symlink target worked fine.<br>
>> No clue what's up with that.<br>
> <br>
> It's a security feature (fs.protected_symlinks).<br>
<br>
How is it then possible to share the newly generated gdb 16.3 64-bit binary<br>
in /opt/cfarm if symbolic links are protected?<br>
<br>
I did:<br>
muller@cfarm230:/opt/cfarm$ ln -sf /home/muller/gnu-mips64<br>
muller@cfarm230:/opt/cfarm$ ls -l ./gnu-mips64/bin/gdb<br>
-rwxr-xr-x 1 muller muller 211647592 Jun 17 16:16 ./gnu-mips64/bin/gdb<br>
muller@cfarm230:/opt/cfarm$  ./gnu-mips64/bin/gdb --version<br>
GNU gdb (GDB) 16.3<br>
Copyright (C) 2024 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" rel="noreferrer" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.<br>
muller@cfarm230:/opt/cfarm$ file  ./gnu-mips64/bin/gdb<br>
./gnu-mips64/bin/gdb: ELF 64-bit MSB pie executable, MIPS, MIPS64 rel2 version 1 (SYSV), dynamically linked, interpreter /lib64/ld.so.1, BuildID[sha1]=6d4c1a55ba943ea14da9eb300f2bd7b1327aa74c, for GNU/Linux 3.2.0, with debug_info, not stripped<br>
<br>
But this will probably not work for others either because of this security feature.<br>
<br>
Furthermore:<br>
muller@cfarm230:/opt/cfarm$ ldd   ./gnu-mips64/bin/gdb<br>
         linux-vdso.so.1 (0x000000fff52e0000)<br>
         libmpfr.so.6 => /home/muller/gnu-mips64/lib/libmpfr.so.6 (0x000000fff3153000)<br>
         libgmp.so.10 => /home/muller/gnu-mips64/lib/libgmp.so.10 (0x000000fff30c1000)<br>
         libdl.so.2 => /lib64/libdl.so.2 (0x000000fff309c000)<br>
         libstdc++.so.6 => /lib64/libstdc++.so.6 (0x000000fff2ebf000)<br>
         libm.so.6 => /lib64/libm.so.6 (0x000000fff2ddc000)<br>
         libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000fff2d79000)<br>
         libpthread.so.0 => /lib64/libpthread.so.0 (0x000000fff2d45000)<br>
         libc.so.6 => /lib64/libc.so.6 (0x000000fff2b7a000)<br>
         /lib64/ld.so.1 (0x000000fff52ab000)<br>
<br>
I had to generate a 64-bit version of gmp and mpfr packages,<br>
and if I try to install them into /opt/cfarm prefix,<br>
they will be placed in /opt/cfarm/lib<br>
which is wrong because this directory should problably only contain o32 ABI libraries...<br>
<br>
Is there a 'proper' way to install a 64-bit n64 ABI library into /opt/cfarm?<br>
<br>
Pierre<br>
<br>
_______________________________________________<br>
cfarm-users mailing list<br>
<a href="mailto:cfarm-users@lists.tetaneutral.net" target="_blank">cfarm-users@lists.tetaneutral.net</a><br>
<a href="https://lists.tetaneutral.net/listinfo/cfarm-users" rel="noreferrer" target="_blank">https://lists.tetaneutral.net/listinfo/cfarm-users</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div style="font-family:"courier new",monospace">Paul H. Hargrove <<a href="mailto:PHHargrove@lbl.gov" target="_blank">PHHargrove@lbl.gov</a>><br>Pronouns: he, him, his<br></div><div style="font-family:"courier new",monospace">Computer Languages & Systems Software (CLaSS) Group</div><div style="font-family:"courier new",monospace">Computer Science Department</div><div style="font-family:"courier new",monospace">Lawrence Berkeley National Laboratory</div></div></div></div>