Re: Building gdbserver

Shahab Vahedi via Gdb
2022-04-17T10:24:15Z

Hi Claude,

On Sun, Apr 17, 2022 at 03:35:52AM +0000, Claude Robitaille via Gdb wrote:
> Hi, I am trying to cross compile gdbserver.
>
> I am using this little script I did:
>
>
> #!/bin/bash
> #source in binutils-gdb
>
> mkdir gdbserver.build
> cd gdbserver.build
>
> ../binutils-gdb/gdbserver/configure --host=x86_64-w64-mingw32
> make
>
>
> But I get this error at the beginning of make
>
> Makefile:110: ../gnulib/Makefile.gnulib.inc: No such file or directory
> make: *** No rule to make target '../gnulib/Makefile.gnulib.inc'. Stop.
>
> I did try different with different release but most of them don't even go that far; is gdbserver new in binutils-gdb? Is it supposed to be compilable?

You have to use the top level configure. Something along the lines:

$ cd gdbserver.build
$ ../binutils-gdb/configure --host=x86_64-w64-mingw32
$ make all-gdbserver
$ make install-gdbserver DESTDIR=<whatever_makes_sense_for_you>

You can find more details in gdbserver's README file [1].

Cheers,
Shahab

[1]