All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Denys Dmytriyenko" <denis@denix.org>
To: Marco Cavallini <cavallini.koan@gmail.com>
Cc: Yocto Project Discussion <yocto@yoctoproject.org>
Subject: Re: [yocto] ERROR: could not relocate installing toolchain SDK
Date: Tue, 28 Jan 2020 11:57:45 -0500	[thread overview]
Message-ID: <20200128165745.GL4735@denix.org> (raw)
In-Reply-To: <CAFQ+DijY3q_Fc56uwCKuH_hPiH1LMk3_B=SR5rqWpA70OHxZ7g@mail.gmail.com>

On Tue, Jan 28, 2020 at 09:25:18AM +0100, Marco Cavallini wrote:
> Hello,
> I found a bug when installing a toolchain sdk and the installation
> path contains a dash.
> Using the default directory or a path without a dash it works.

It's not dash, it's the new path is longer than what was reserved in ELF 
headers:
> interp size = 73 and 76 is needed.

I thought there was some attempt to use chrpath or patchelf or something 
to be able to expand the ELF headers with longer paths...

Not sure what the currect status is - I've been using my own workaround 
for many years that extends the "default" toolchain location to the max 
path length and then at the end changes the install script back to the 
original default. That way all ELF headers have "interp" field pre-allocated 
to the max and the resulting SDK/toolchain can be relocated w/o issues.

-- 
Denys


> Yocto 3.0 'zeus'
> 
> $ ./fslc-x11-glibc-x86_64-meta-toolchain-cortexa9t2hf-neon-koan-toolchain-3.0.sh
> FSLC X11 SDK installer version 3.0
> ==================================
> Enter target directory for SDK (default: /opt/fslc-x11/3.0): /opt/poky/test-3.0
> You are about to install the SDK to "/opt/poky/test-3.0". Proceed [Y/n]?
> Extracting SDK...............................................................................................................done
> Setting it up...ERROR: could not relocate
> /opt/poky/test-3.0/sysroots/x86_64-fslcsdk-linux/usr/bin/llvm-mc,
> interp size = 73 and 76 is needed.
> ERROR: could not relocate
> /opt/poky/test-3.0/sysroots/x86_64-fslcsdk-linux/usr/bin/llvm-mca,
> interp size = 73 and 76 is needed.
> ERROR: could not relocate
> /opt/poky/test-3.0/sysroots/x86_64-fslcsdk-linux/usr/bin/clang-9,
> interp size = 73 and 76 is needed.
> ERROR: could not relocate
> /opt/poky/test-3.0/sysroots/x86_64-fslcsdk-linux/usr/bin/llvm-mt,
> interp size = 73 and 76 is needed.
> ...etc...
> 
> Distinti Saluti / Best Regards
> --
> Marco Cavallini | KOAN sas | Bergamo - Italia
> embedded software engineering
> https://KoanSoftware.com

> 


  reply	other threads:[~2020-01-28 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-28  8:25 [yocto] ERROR: could not relocate installing toolchain SDK Marco Cavallini
2020-01-28 16:57 ` Denys Dmytriyenko [this message]
     [not found]   ` <25813.1643957559728018781@lists.yoctoproject.org>
2022-02-07 19:19     ` Randy MacLeod

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=20200128165745.GL4735@denix.org \
    --to=denis@denix.org \
    --cc=cavallini.koan@gmail.com \
    --cc=yocto@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.