mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] rpath maxmimum length error
@ 2019-04-14  7:33 Rouven Czerwinski
  2019-04-18 14:23 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Rouven Czerwinski @ 2019-04-14  7:33 UTC (permalink / raw)
  To: ptxdist

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.

[1] Link: https://patchwork.openembedded.org/patch/34653/
[2] Link: https://nixos.org/patchelf.html

Regards,
Rouven

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] rpath maxmimum length error
  2019-04-14  7:33 [ptxdist] rpath maxmimum length error Rouven Czerwinski
@ 2019-04-18 14:23 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2019-04-18 14:23 UTC (permalink / raw)
  To: Rouven Czerwinski; +Cc: ptxdist

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
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-18 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-14  7:33 [ptxdist] rpath maxmimum length error Rouven Czerwinski
2019-04-18 14:23 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox