[cfarm-users] gcc230: Unable to use GDB on 64-bit mips executable

Pierre Muller pierre at freepascal.org
Tue Jun 17 23:59:28 CEST 2025


Hello,

   after manually compiling gmp and mpfr libraries,
and twisting configure, I finally managed to generate a n64 ABI gdb-16.3 executable.

   I tried to move it to /opt/cfarm/gdb-16.3-mips32-all
bit this will probably also not work for other users, if it is related to fs.protected_symlinks...

You should be able to use it directly as
/home/muller/bin/gdb-16.3-64

In the hope this can help others,

Pierre

Le 17/06/2025 à 23:16, Paul H. Hargrove via cfarm-users a écrit :
> 
> 
> On Tue, Jun 17, 2025 at 2:06 PM Andreas Schwab <schwab at linux-m68k.org <mailto:schwab at linux-m68k.org>> wrote:
> 
>     On Jun 17 2025, Paul H. Hargrove via cfarm-users wrote:
> 
>      > I've symlinked from my GDB install to /opt/cfarm/gdb-8.0.1.
>      > However, Pierre reported that the symlink gave permission denied errors,
>      > while direct access to the symlink target worked fine.
>      > No clue what's up with that.
> 
>     It's a security feature (fs.protected_symlinks).
> 
> [...]
> 
> Ah.  Makes sense.
> 
> Anybody who wishes to use my install of GDB 8.0.1 can just use the symlink target "manually":
>     /home/phargrov/MIPS64/gdb-8.0.1/bin/gdb
> 
> I am going to see if I can find the "recipe" I used 7.5 years ago, and update it to generate a GDB 16.3 that works on `-mabi=64` executables.
> 
> -Paul
> -- 
> Paul H. Hargrove <PHHargrove at lbl.gov <mailto:PHHargrove at lbl.gov>>
> Pronouns: he, him, his
> Computer Languages & Systems Software (CLaSS) Group
> Computer Science Department
> Lawrence Berkeley National Laboratory
> 
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users



More information about the cfarm-users mailing list