[Libre-soc-bugs] [Bug 847] dev-env-setup script for binutils-gdb for target powerpc64le-linux-gnu

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Jun 13 20:59:09 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=847

--- Comment #25 from vklr at vkten.in <vklr at vkten.in> ---
(In reply to Dmitry Selyutin from comment #23)
> Veera, I have a problem with a fresh install. Upon launching as inside
> chroot environment on talos1, I observe the following:
> 
> $ echo | powerpc64le-linux-gnu-as -mlibresoc - -c /tmp/test.o 
> powerpc64le-linux-gnu-as: error while loading shared libraries:
> libopcodes-2.38.50.20220525.so: cannot open shared object file: No such file
> or directory
> $ ldd /usr/local/bin/powerpc64le-linux-gnu-as
>         linux-vdso64.so.1 (0x00007fff8ef20000)
>         libopcodes-2.38.50.20220525.so => not found
>         libbfd-2.38.50.20220525.so => not found
>         libdl.so.2 => /lib/powerpc64le-linux-gnu/libdl.so.2

Find out in which directory libopcodes-2.38.50.20220525.so and
libbfd-2.38.50.20220525.so are installed and add that to
/etc/ld.so.conf.d/binutils-gdb.conf and run 'ldconfig' as root. Thats it.

In my installed system output of ldd:
root at 75-224-155-23:~# ldd /usr/local/binutils-gdb/bin/powerpc64le-linux-gnu-as
        linux-vdso64.so.1 (0x00007fffb3d80000)
        libopcodes-2.38.50.20220609.so =>
/usr/local/binutils-gdb/lib/libopcodes-2.38.50.20220609.so (0x00007fffb3c20000)
        libbfd-2.38.50.20220609.so =>
/usr/local/binutils-gdb/lib/libbfd-2.38.50.20220609.so (0x00007fffb3a40000)
        libdl.so.2 => /lib/powerpc64le-linux-gnu/libdl.so.2
(0x00007fffb3a00000)
        libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 (0x00007fffb37e0000)
        /lib64/ld64.so.2 (0x00007fffb3da0000)

So the directory is /usr/local/binutils-gdb/lib and if installed prefix is
/usr/local then the conf dir will be /usr/local/lib

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list