[MacPorts] #63469: gcc @7.5.0_2: Fails to link projects compiled with -fstack-protector-strong

MacPorts noreply at macports.org
Fri Sep 10 00:04:43 UTC 2021


#63469: gcc @7.5.0_2: Fails to link projects compiled with -fstack-protector-strong
--------------------------+--------------------
  Reporter:  evanmiller   |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.1
Resolution:               |   Keywords:
      Port:  gcc7 cmocka  |
--------------------------+--------------------

Comment (by evanmiller):

 It looks like this is supposed to be controlled at GCC's own configure-
 time with {{{TARGET_LIBC_PROVIDES_SSP}}} being set when
 {{{__stack_chk_fail}}} is found. However when I configure gcc7 manually,
 both with itself and with gcc-apple-4.2, I see

 {{{
 checking __stack_chk_fail in target C library... checking for
 __stack_chk_fail... no
 no __stack_chk_fail on this target
 no
 }}}

 I'd need to kick off a full build to see if that result is different in
 the MP build environment. If so we can either hunt down the bug or inject
 {{{gcc_cv_libc_provides_ssp=no}}} into GCC's configure env. Since it's
 such a PITA to re-compile, maybe slip the (hypothetical) fix into the next
 rev-bump....

-- 
Ticket URL: <https://trac.macports.org/ticket/63469#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list