On Sun, Apr 14, 2019 at 09:33:41AM +0200, Rouven Czerwinski wrote:
> Hello,
> 
> I'm currently hitting the following error while trying to build
> toolchains for Arch Linux:
> 
> ----------------------------
> target: host-m4.install.pack
> ----------------------------
> 
> new rpath '${ORIGIN}/../lib' too large; maximum length 4
> 
> ptxdist: error: Failed to adjust rpath for 
> '/home/phoenix/build/tc-build/src/OSELAS.Toolchain-2018.12.0/platform-arm-v7a-linux-gnueabihf-gcc-8.2.1-glibc-2.28-binutils-2.31.1-kernel-4.19-sanitized/packages/host-m4-1.4.18/bin/m4'
> 
> make: *** 
> [/opt/lib/ptxdist-2018.12.0/rules/post/ptxd_make_world_install.make:60: 
> /home/phoenix/build/tc-build/src/OSELAS.Toolchain-2018.12.0/platform-arm-v7a-linux-gnueabihf-gcc-8.2.1-glibc-2.28-binutils-2.31.1-kernel-4.19-sanitized/state/host-m4.install.pack]
>  Error 1
> 
> Because chrpath can not dynamically allocate more space for the new
> rpath. I found a bug report for oe-core which ran into the same issue
> under [1].
> Their suggested solution is to switch to patchelf [2]. Is there an interest
> for this switch in ptxdist as well? If so I'll gladly send-patches.

PTXdist should specify a long enough rpath at build-time. Please do a clean
build with '-v' and send the host-m4.compile section from the logfile.

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
[email protected]

Reply via email to