tech-pkg archive

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

Re: proposal for setting minimum upgraded compiler version



On 7/14/23 01:48, Greg Troxel wrote:

This results in building multiple gcc versions which

   is wasteful of CPU time, disk writes, space etc

   makes the "different libstdc++" problem worse

   doesn't seem to have any real benefit.

That's true, and I too want it to go away.


The proposal (which is drafty) is

   define MIN_UPGRADED_GCC_VERSION.   This can be set in platform.mk, and
   if not will be a default in some gcc.mk.  Or it can be set by the
   user.

   Allow defining MIN_UPGRADED_FOO_VERSION for other compilers, even if
   not implemented.

   Whenever base gcc is not good enough, if MIN_UPGRADED_GCC_VERSION is
   >= the version that is required, use MIN_UPGRADED_GCC_VERSION instead.
   Similarly for other compilers, even if not implemented.

   Use MIN_UPGRADED_GCC_VERSION when building gfortran etc.


So if the base compiler is GCC 8 and MIN_UPGRADED_GCC_VERSION is set to 10,

1. Packages with no version constraints will be built with base GCC.
2. Packages requiring GCC >= 8 will be built with base GCC.
3. Packages requiring GCC >= 9 will be built with pkgsrc GCC 10, not 9.
4. Packages requiring GCC >= 10 will be built with pkgsrc GCC 10.
5. Packages requiring GCC >= 11 will be built with pkgsrc GCC 11.
6. Packages requiring GCC >= 12 will be built with pkgsrc GCC 12.

Is this what your proposal means?


Home | Main Index | Thread Index | Old Index