Hi, On Mon, May 13, 2019 at 07:48:59AM +0200, Michael Olbrich wrote: > 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 I am sending the logfile attached to this message. Thanks, Clemens