tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

R-minqa package


I see the R-minqa package failing to install with

Error: package or namespace load failed for 'minqa' in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/pkgsrc/math/R-minqa/work/.destdir/usr/pkg/lib/R/library/00LOCK-minqa/00new/minqa/libs/':
  /usr/lib/ version GLIBCXX_3.4.11 required by /usr/pkgsrc/math/R-minqa/work/.destdir/usr/pkg/lib/R/library/00LOCK-minqa/00new/minqa/libs/ not defined

But ... /usr/lib contains as the newest version.

However, this is built with the pkgsrc gcc 10, and the
shared library is linked with

c++ -std=gnu++14 -shared -Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib -Wl,-zrelro -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -o altmov.o bigden.o biglag.o bobyqa.o bobyqb.o lagmax.o minqa.o newuoa.o newuob.o prelim.o rescue.o trsapp.o trsbox.o trstep.o uobyqa.o uobyqb.o update.o updatebobyqa.o -L/usr/pkg/gcc10/lib/gcc/powerpc--netbsd/10.3.0 -L/usr/pkg/gcc10/lib -Wl,-R/usr/pkg/gcc10//lib/. -Wl,-R/usr/pkg/gcc10/lib/. -lgfortran -lm -lpthread -Wl,-R/usr/pkg/lib/R/lib -L/usr/pkg/lib/R/lib -lR

...and /usr/pkg/gcc10/lib contains!)

But...  RPATH is specified pointing to that directory, so why
something turns up to load /usr/lib/ instead I've
not been able to figure out. ldd on the shlib prints

        -lstdc++.7 => /usr/pkg/gcc10//lib/./

My "reproduce this problem by building this package on another
host outside of pbulk / chroot" didn't manage to reproduce the
problem; that package installed just fine, so now I am confused.
Anyone have any hints?

It doesn't help the confusion that it appears that gcc in-tree
and pkgsrc gcc apparently uses different major numbering schemes
for libstdc++.


- Håvard

Home | Main Index | Thread Index | Old Index