[cfarm-users] gcc230: Unable to use GDB on 64-bit mips executable
Paul H. Hargrove
phhargrove at lbl.gov
Wed Jun 18 00:12:08 CEST 2025
Thanks, Pierre.
I have confirmed that your build can debug a C "Hello, World!" built with
each of `-mabi=32`, `-mabi=n32` and `-mabi=64`.
Consequently, I've dropped my own attempts to build GDB 16.3 and have
removed my symlink in /opt/cfarm to the ancient GDB 8.0.1.
-Paul
On Tue, Jun 17, 2025 at 3:00 PM Pierre Muller via cfarm-users <
cfarm-users at lists.tetaneutral.net> wrote:
> 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
>
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users
>
--
Paul H. Hargrove <PHHargrove at lbl.gov>
Pronouns: he, him, his
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department
Lawrence Berkeley National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20250617/8e1c1771/attachment.htm>
More information about the cfarm-users
mailing list