[oi-dev] Firefox build - Link problems

Joshua M. Clulow josh at sysmgr.org
Tue Mar 9 08:38:19 UTC 2021


On Tue, 9 Mar 2021 at 00:35, Carsten Grzemba via oi-dev
<oi-dev at openindiana.org> wrote:
> I attempt to build newer Firefox for OI, but my results alwas run in core dumps early on start or later on exit. One of them is demonstrated here.
> Our current userland toolchain use gcc7, but with gcc7 I get an strange memory allocation error of g++, so I switched to gcc10. Here cores 'js' in libicu. libicu is build with gcc7:
>
> here is shown libstdc++ of gcc7 and gcc10 is loaded:
> $ pldd core
> core 'core' of 2496:    ./js
> /lib/amd64/libpthread.so.1
> /lib/amd64/libsocket.so.1
> /usr/lib/amd64/libffi.so.6.0.4
> /usr/lib/amd64/libicui18n.so.66.1
> /usr/lib/amd64/libicuuc.so.66.1
> /usr/lib/amd64/libicudata.so.66.1
> /usr/lib/mps/amd64/libplds4.so
> /usr/lib/mps/amd64/libplc4.so
> /usr/lib/mps/amd64/libnspr4.so
> /lib/amd64/libdl.so.1
> /lib/amd64/librt.so.1
> /usr/lib/amd64/libz.so.1.2.11
> /lib/amd64/libm.so.2
> /lib/amd64/libnsl.so.1
> /usr/gcc/10/lib/amd64/libstdc++.so.6.0.28
> /usr/gcc/10/lib/amd64/libgcc_s.so.1
> /lib/amd64/libc.so.1
> /usr/gcc/7/lib/amd64/libstdc++.so.6.0.24
> /usr/gcc/7/lib/amd64/libgcc_s.so.1
>
> if I modify the rpath to load the gcc7 libs:
> $ elfedit -e 'dyn:value -s RPATH "$ORIGIN:/usr/lib/mps/amd64:/usr/gcc/7/lib/amd64"' js
> the 'js' binary runs without core and an 'pldd' shows the libs of gcc7 only are loaded.

What was the RPATH/RUNPATH value before you modified it?

It might help to use "ldd -v" on the actual binary (rather than the
core) to see more details about why the runtime link editor decided to
load each copy of libstdc++...

-- 
Joshua M. Clulow
http://blog.sysmgr.org



More information about the oi-dev mailing list