public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Issue building gdb on Apple silicon
@ 2022-05-14 20:31 Shan Huang
  2022-05-23 10:38 ` Luis Machado
  0 siblings, 1 reply; 2+ messages in thread
From: Shan Huang @ 2022-05-14 20:31 UTC (permalink / raw)
  To: gdb

Hello,

I have encoutered the issue with building gdb on an Apple m1 machine. Currently these (ar nm objcopy objdump ranlib readelf strip) have been built by using ./configure --target=arm64-apple-darwin21.4.0 However, inside gdb subfolder I found there is no gdb executable being created. I tried to using the ./configure inside gdb subfolder, I have encoutered with the gmp missing, after I install it and supplied with --with-libgmp-prefix= PATH/TO/GMP, another error shows "../gnulib/Makefile.gnulib.inc: No such file or directory". I have checked https://sourceware.org/pipermail/gdb-patches/2020-October/172571.html However seems it's not the same. I wonder is there a way I could install gdb on M1 at the moment? Thanks very much.

Best,
Shan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Issue building gdb on Apple silicon
  2022-05-14 20:31 Issue building gdb on Apple silicon Shan Huang
@ 2022-05-23 10:38 ` Luis Machado
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Machado @ 2022-05-23 10:38 UTC (permalink / raw)
  To: Shan Huang, gdb

Hi,

On 5/14/22 21:31, Shan Huang via Gdb wrote:
> Hello,
> 
> I have encoutered the issue with building gdb on an Apple m1 machine. Currently these (ar nm objcopy objdump ranlib readelf strip) have been built by using ./configure --target=arm64-apple-darwin21.4.0 However, inside gdb subfolder I found there is no gdb executable being created. I tried to using the ./configure inside gdb subfolder, I have encoutered with the gmp missing, after I install it and supplied with --with-libgmp-prefix= PATH/TO/GMP, another error shows "../gnulib/Makefile.gnulib.inc: No such file or directory". I have checked https://sourceware.org/pipermail/gdb-patches/2020-October/172571.html However seems it's not the same. I wonder is there a way I could install gdb on M1 at the moment? Thanks very much.
> 
> Best,
> Shan

 From what I can see, GDB doesn't support Darwin on aarch64, although other tools in binutils/ do.

The supporting code needs to be contributed to GDB to make that work correctly, like it does for x86_64.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-23 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-14 20:31 Issue building gdb on Apple silicon Shan Huang
2022-05-23 10:38 ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).