mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Andreas Pretzsch <apr@cn-eng.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Failed to compile gdbserver
Date: Sat, 29 Sep 2018 15:19:45 +0200	[thread overview]
Message-ID: <228b1c6d087e75cb500308dbff7a8d0baa231e4e.camel@cn-eng.de> (raw)
In-Reply-To: <20180730114456.m5qgkva4x3ovrodu@pengutronix.de>

On Mon, 2018-07-30 at 13:44 +0200, Michael Olbrich wrote:
> On Mon, Jul 30, 2018 at 11:29:04AM +0000, Denis OSTERLAND wrote:
> > I try to compile gdbserver with OSELAS.Toolchain-2018.02.0 on
> > armv5te + armv7a, but it fails.
> > I tried the default version 7.6.1:

Just hit me too, same setup.
Well, with ptxdist-2018.09, but same topic.


> You need to use the same version as the gdb in the toolchain. That's
> 8.1, if I remember correctly.

Correct, there gdb 8.1 is used. Build is successful with
PTXCONF_GDB_VERSION="8.1"
PTXCONF_GDB_MD5="0c85ecbb43569ec43b1c9230622e84ab"


Might be worth to check this, like it's done with gcc and glibc.
Their versions are set in platformconfig (and checked), in this case:
PTXCONF_CROSSCHAIN_CHECK="7.3.1"
PTXCONF_GLIBC_VERSION="2.27"
And so kind of centralizing toolchain version dependencies.

But gdb version (which gdbserver follows) is set in ptxconfig, as
PTXCONF_GDB_VERSION and PTXCONF_GDB_MD5. Where it belongs to, as those
are installed to the target. Either gdbserver or even full gdb.

Thinking of ways to improve this, I could imagine

1.) keep PTXCONF_GDB_* in ptxconfig, but add some "use version from
toolchain" config flag, which will in turn take the data setup in
platformconfig (probably new options there)

2.) add it somehow to "ptxdist migrate" (sensible / doable ?)

3.) at least add a comment to the config options

For #3 I could send in a patch, for #1 or #2 I'd need some assistance
from PTX side.

Michael, what do you think, and prefer ?

Best regards,
  Andreas

-- 

carpe noctem engineering
Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas Pretzsch
Dipl.-Ing. (FH) Andreas Pretzsch        Tel. +49-(0)7307-936088-1
Lange Strasse 28a                       Fax: +49-(0)7307-936088-9
89250 Senden, Germany                   email: apr@cn-eng.de


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2018-09-29 13:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30 11:29 Denis OSTERLAND
2018-07-30 11:44 ` Michael Olbrich
2018-07-30 11:56   ` Denis OSTERLAND
2018-09-29 13:19   ` Andreas Pretzsch [this message]
2018-10-09 10:45     ` Michael Olbrich

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=228b1c6d087e75cb500308dbff7a8d0baa231e4e.camel@cn-eng.de \
    --to=apr@cn-eng.de \
    --cc=ptxdist@pengutronix.de \
    /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