tech-pkg archive

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

R-minqa package



Hi,

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/minqa.so':
  /usr/lib/libstdc++.so.7: version GLIBCXX_3.4.11 required by /usr/pkgsrc/math/R-minqa/work/.destdir/usr/pkg/lib/R/library/00LOCK-minqa/00new/minqa/libs/minqa.so not defined

But ... /usr/lib contains libstdc++.so.9 as the newest version.

However, this is built with the pkgsrc gcc 10, and the minqa.so
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 minqa.so 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 libstdc++.so.7(!)

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

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

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++.

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index