tech-pkg archive

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

Re: gcc*-libs help needed: rpath needs fixing



On Fri 30 Aug 2024 at 19:25:44 +0200, Thomas Klausner wrote:
> The gcc*-libs packages (used when USE_PKGSRC_GCC_RUNTIME is set, to
> avoid pulling in the corresponding big gcc* package) are currently
> done by just repackaging the libraries included in the corresponding
> gcc* base package; but they are installed in a different location.

Another thing I noticed in my installation, was that packages compiled
with the gcc12 package, and then installed on my laptop without gcc12
but with gcc12-libs, still didn't find some of the libraries.  The RPATH
built into the using packages seemed to be incorrect.

I wanted to look deeper into it to see if it was some kind of operator
error or what, but for this case I want to mention it.

For example, /usr/pkg/bin/pan (from news/pan) has as RPATH

/usr/pkg/gcc12/x86_64--netbsd/lib/.
/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0
/usr/pkg/lib
/usr/X11R7/lib

The latter are system locations so we can ignore them for now.
But for the first two I would have expected that those directories are
filled by gcc12 and gcc12-libs respectively, and contain the same files,
so that either package can satisfy the dependency. But this is not the
case:

$ ls /usr/pkg/gcc12/x86_64--netbsd/lib/. /usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0
/usr/pkg/gcc12/lib/gcc/x86_64--netbsd/12.3.0:
crtbegin.o          crtendS.o           install-tools/      libgcc_eh.a
crtbeginS.o         finclude/           libcaf_single.a     libgcov.a
crtbeginT.o         include/            libcaf_single.la*   plugin/
crtend.o            include-fixed/      libgcc.a

/usr/pkg/gcc12/x86_64--netbsd/lib/.:
gcc/                      libgfortran.so.5@         libobjc.so.4.0*
libatomic.so@             libgfortran.so.5.0*       libquadmath.so@
libatomic.so.3@           libgomp.so@               libquadmath.so.0@
libatomic.so.3.0*         libgomp.so.1@             libquadmath.so.0.0*
libcc1.so@                libgomp.so.1.0*           libstdc++.so@
libcc1.so.0@              libitm.so@                libstdc++.so.7@
libcc1.so.0.0*            libitm.so.1@              libstdc++.so.7.30*
libgcc_s.so*              libitm.so.1.0*            libstdc++.so.7.30-gdb.py
libgcc_s.so.1*            libobjc.so@
libgfortran.so@           libobjc.so.4@

I have set

USE_PKGSRC_GCC=         yes
USE_PKGSRC_GCC_RUNTIME= yes

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index