Re: Issue building gdb on Apple silicon

Luis Machado via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.