public inbox for
 help / color / mirror / Atom feed
From: Claude Robitaille <>
To: Shahab Vahedi <>
Cc: Gdb <>
Subject: Re: Building gdbserver
Date: Sun, 17 Apr 2022 15:12:37 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Making progress. But it is still not successful.

I get this:

make[1]: Entering directory '/mnt/data/sbox/tools/'
  CXX    alloc.o
In file included from ../../binutils-gdb/gdbserver/../gdbsupport/common-defs.h:197,
                 from ../../binutils-gdb/gdbserver/../gdb/alloc.c:37:
../../binutils-gdb/gdbserver/../gdbsupport/gdb_locale.h:27:11: fatal error: libintl.h: No such file or directory
   27 | # include <libintl.h>

The include file exists and is here:

An include directory is missing?

I took the instruction that I implemented from this wiki page:
I guess it should be removed or amended to refer to the readme file.
BuildingCrossGDBandGDBserver - GDB Wiki -<>
1. Problem statement "I have a ARM GNU/Linux board, and I want to be able to debug programs running in it, from the comfort of my x86_64 GNU/Linux machine.

From: Shahab Vahedi <>
Sent: April 17, 2022 6:23 AM
To: Claude Robitaille <>
Cc: Gdb <>
Subject: Re: Building gdbserver

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
> cd
> ../binutils-gdb/gdbserver/configure --host=x86_64-w64-mingw32
> make
> But I get this error at the beginning of make
> Makefile:110: ../gnulib/ No such file or directory
> make: *** No rule to make target '../gnulib/'.  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
$ ../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].



  reply	other threads:[~2022-04-17 15:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-17  3:35 Claude Robitaille
2022-04-17 10:23 ` Shahab Vahedi
2022-04-17 15:12   ` Claude Robitaille [this message]
2022-04-17 17:19     ` Shahab Vahedi
2022-04-17 18:07       ` Claude Robitaille
2022-04-17 19:40         ` Claude Robitaille
2022-04-18  1:40           ` Claude Robitaille
2022-04-18 15:38     ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).