From: Claude Robitaille <claude-robitaille@hotmail.com>
To: Shahab Vahedi <shahab.vahedi@gmail.com>
Cc: Gdb <gdb@sourceware.org>
Subject: Re: Building gdbserver
Date: Sun, 17 Apr 2022 15:12:37 +0000 [thread overview]
Message-ID: <DS7PR07MB7686B5D95FF3971F61C5BE6DF7F09@DS7PR07MB7686.namprd07.prod.outlook.com> (raw)
In-Reply-To: <YlvqsIlxJAlUpM71@gmail.com>
Making progress. But it is still not successful.
I get this:
make[1]: Entering directory '/mnt/data/sbox/tools/gdbserver.build/gdbserver'
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:
gdbserver.build/intl/libintl.h
An include directory is missing?
PS
I took the instruction that I implemented from this wiki page: https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver
I guess it should be removed or amended to refer to the readme file.
BuildingCrossGDBandGDBserver - GDB Wiki - sourceware.org<https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver>
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.
sourceware.org
________________________________
From: Shahab Vahedi <shahab.vahedi@gmail.com>
Sent: April 17, 2022 6:23 AM
To: Claude Robitaille <claude-robitaille@hotmail.com>
Cc: Gdb <gdb@sourceware.org>
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 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]
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceware.org%2Fgit%2F%3Fp%3Dbinutils-gdb.git%3Ba%3Dblob%3Bf%3Dgdbserver%2FREADME%3Bhb%3DHEAD%23l81&data=04%7C01%7C%7Ca6fca4ea6eef4bd1957b08da205c5ada%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637857878273773854%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=amHKGcOXi5MxTfRzIHT1OhOiN1rjYQPZcpUHBhAWuec%3D&reserved=0
next prev parent 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DS7PR07MB7686B5D95FF3971F61C5BE6DF7F09@DS7PR07MB7686.namprd07.prod.outlook.com \
--to=claude-robitaille@hotmail.com \
--cc=gdb@sourceware.org \
--cc=shahab.vahedi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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).