tech-pkg archive

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

Re: pkg_add: Missing required library: /pkg/2024Q4/gcc10//lib/./libgcc_s.so.1



* On 2025-01-06 at 08:03 GMT, Taylor R Campbell wrote:

In my bulk build on 2024Q4, various packages are failing in the
depends stage with this log output:

pkg_add: Missing required library: /pkg/2024Q4/gcc10//lib/./libgcc_s.so.1
pkg_add: Missing required library: /pkg/2024Q4/gcc10//lib/./libquadmath.so.0
pkg_add: Missing required library: /pkg/2024Q4/gcc10//lib/./libstdc++.so.7
pkg_add: Can't install dependency gcc10-libs>=10.2.0
pkg_add: Expected dependency gcc10-libs>=10.2.0 still missing

I thought someone had committed a workaround for this, pending a
proper fix for the gcc-libs packages, but I lost track of that thread.

What's the deal with it?  How do I make the bulk build work?

Nobody has committed a fix yet.  There are at least two problems:

 * The patchset for gcc was broken at some point, with a subst variable
   in patch-gcc_Makefile.in being removed, and then cargo-culted to all
   newer GCC packages.  There should be a @MACHINE_GNU_PLATFORM@ as you
   can see in:

     https://github.com/TritonDataCenter/pkgsrc-extra/blob/main/gcc13/patches/patch-gcc_Makefile.in

   This explains the double "//", and means the files from the gcc-libs
   packages will not be found unless using the override specs.  I've
   mentioned this at least three times now.

 * The generation of REQUIRES is sub-optimal on most platforms, simply
   parsing the output of ldd rather than identifying the actual
   libraries required by each object.  See my recent mail to Greg where
   I show an updated version of my patch that I've been using ~forever
   that with some minor modifications should work on NetBSD and others.

     https://mail-index.netbsd.org/pkgsrc-users/2025/01/02/msg040773.html

This also fixes an issue I saw where my gcc13-libs package was I'd recommend that someone step up and commit to taking proper care of the pkgsrc GCCs. They are obviously incredibly important packages that have the potential to affect every other package, but have suffered from neglect and questionable choices over the years, which is why I now use my own and don't have the resources to properly test and commit fixes to the pkgsrc ones.

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index