pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lang/gcc49 and FORTIFY_SOURCES on CentOS 7
Hi,
Building lang/gcc49 on CentOS 7.6 yields:
-o<----
In file included from /usr/include/stdio.h:937:0,
from ../../../gcc-4.9.4/libitm/util.cc:27:
/usr/include/bits/stdio2.h: In function 'void GTM::gtm_verror(const char*, __va_list_tag*)':
/usr/include/bits/stdio2.h:124:1: error: inlining failed in call to always_inline 'int vfprintf(FILE*, const char*, __va_list_tag*)': function body can be overwritten at link time
vfprintf (FILE *__restrict __stream,
^
../../../gcc-4.9.4/libitm/util.cc:35:31: error: called from here
vfprintf (stderr, fmt, list);
^
-o<----
As suggested in an old thread I found, PKGSRC_USE_FORTIFY=no in mk.conf
works around the issue.
I tried PKGSRC_USE_FORTIFY.gcc47=no first but that didn't seem to have
effect, apparently this is a global-only variable.
If this is known problem with this known solution, shouldn't we disable
USE_FORTIFY for gcc49 by default? It doesn't seem like there’s a
mechanism for this yet but there could be.
Sijmen
Home |
Main Index |
Thread Index |
Old Index