tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Proposal: use GCC 6 when GCC 4.5...6.* is requested
Patch below.
These versions of GCC have a bug with FORTIFY on glibc seen in
this bulk build:
https://us-east.manta.joyent.com/pkgsrc/public/reports/Linux/el7/trunk/x86_64/20210114.2243/meta/report.html
Depending on newer GCC will also reduce the number of GCCs being built,
creating a better user experience.
The versions were picked to make CentOS 7 happy. We can go a bit further
than GCC6.
The caveat is that if someone is relying on pkgsrc GCC to just work, AND
doesn't have support from GCC6, this will create a worse experience.
Index: compiler/gcc.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v
retrieving revision 1.217
diff -u -r1.217 gcc.mk
--- compiler/gcc.mk 5 Dec 2020 09:24:00 -0000 1.217
+++ compiler/gcc.mk 15 Jan 2021 15:05:45 -0000
@@ -95,8 +95,8 @@
_LANGUAGES.gcc \
_LINKER_RPATH_FLAG \
_NEED_GCC2 _NEED_GCC3 _NEED_GCC34 _NEED_GCC44 \
- _NEED_GCC48 _NEED_GCC49 _NEED_GCC5 _NEED_GCC6 \
- _NEED_GCC7 _NEED_GCC8 _NEED_GCC9 _NEED_GCC10 \
+ _NEED_GCC6 \ _NEED_GCC7 _NEED_GCC8 _NEED_GCC9 \
+ _NEED_GCC10 \
_NEED_GCC_AUX _NEED_NEWER_GCC \
_PKGSRC_GCC_VERSION \
_USE_GCC_SHLIB _USE_PKGSRC_GCC \
@@ -171,17 +171,8 @@
# _GCC44_PATTERNS matches N s.t. 4.0 <= N < 4.5.
_GCC44_PATTERNS= 4.[0-4] 4.[0-4].*
-# _GCC48_PATTERNS matches N s.t. 4.5 <= N < 4.9.
-_GCC48_PATTERNS= 4.[5-8] 4.[5-8].*
-
-# _GCC49_PATTERNS matches N s.t. 4.9 <= N < 4.10.
-_GCC49_PATTERNS= 4.9 4.9.*
-
-# _GCC5_PATTERNS matches N s.t. 5.0 <= N < 6.
-_GCC5_PATTERNS= 5 5.*
-
-# _GCC6_PATTERNS matches N s.t. 6.0 <= N < 7.
-_GCC6_PATTERNS= 6 6.*
+# _GCC6_PATTERNS matches N s.t. 4.5 <= N < 7.
+_GCC6_PATTERNS= 4.[5-9] 4.[5-9]* 5 5.* 6 6.*
# _GCC7_PATTERNS matches N s.t. 7.0 <= N < 8.
_GCC7_PATTERNS= 7 7.*
@@ -322,24 +313,6 @@
_NEED_GCC44= yes
. endif
.endfor
-_NEED_GCC48?= no
-.for _pattern_ in ${_GCC48_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC48= yes
-. endif
-.endfor
-_NEED_GCC49?= no
-.for _pattern_ in ${_GCC49_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC49= yes
-. endif
-.endfor
-_NEED_GCC5?= no
-.for _pattern_ in ${_GCC5_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC5= yes
-. endif
-.endfor
_NEED_GCC6?= no
.for _pattern_ in ${_GCC6_PATTERNS}
. if !empty(_GCC_REQD:M${_pattern_})
Home |
Main Index |
Thread Index |
Old Index