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 >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#48182): https://lists.yoctoproject.org/g/yocto/message/48182 Mute This Topic: https://lists.yoctoproject.org/mt/70213997/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
