mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Toolchain: host-m4 build error
Date: Mon, 13 May 2019 07:48:59 +0200	[thread overview]
Message-ID: <20190513054859.iryvgkmvv3yr4t4e@pengutronix.de> (raw)
In-Reply-To: <20190512224359.GA20671@archibald.tuxnet>

Hi,

On Mon, May 13, 2019 at 12:43:59AM +0200, Clemens Gruber wrote:
> when building a toolchain based on OSELAS.Toolchain-2018.02.x, I get the
> following error at the end of the host-m4 build, in the install.pack
> stage:
> 
> new rpath '${ORIGIN}/../lib' too large; maximum length 4
> 
> ptxdist: error: Failed to adjust rpath for '~/toolchain/platform-../packages/host-m4-1.4.18/bin/m4'
> 
> --
> 
> readelf tells me:
> ...
> 0x000000000000000f (RPATH)              Library rpath: [/lib]
> ...
> 
> So there is not enough space to put in ${ORIGIN}/../lib
> 
> --
> 
> Any idea why this is only happening in the toolchain build and how to
> fix it?
> 
> Host OS: ArchLinux
> Host GCC: 8.3.0
> PTXdist: 2019.05.0

I've heard of this error, but I've never seen it myself.
Can you do the following:
$ ptxdist clean host-m4
Then move / remove platform-.../logfile
$ ptxdist -v install host-m4
And then send the logfile.

The gcc wrapper should be used when host-m4 is compiled. And it should add
a longer rpath. With '-v' the wrapper will write the full commandline, so
we can see where the rpath is lost.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-05-13  5:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-12 22:43 Clemens Gruber
2019-05-13  5:48 ` Michael Olbrich [this message]
2019-05-13 13:49   ` Clemens Gruber
2019-05-13 18:57     ` Michael Olbrich
2019-05-13 19:59       ` Clemens Gruber
2019-05-13 20:16         ` 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=20190513054859.iryvgkmvv3yr4t4e@pengutronix.de \
    --to=m.olbrich@pengutronix.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