[MacPorts] #65645: google-glog fails on 10.6.8 Rosetta: raw_logging.cc: error: #pragma GCC diagnostic not allowed inside functions

MacPorts noreply at macports.org
Tue Aug 9 18:07:24 UTC 2022


#65645: google-glog fails on 10.6.8 Rosetta: raw_logging.cc: error: #pragma GCC
diagnostic not allowed inside functions
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, rosetta, snowleopard
      Port:  google-glog   |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 So first of all, we need to use gcc-4.6 or later:
 https://github.com/civetweb/civetweb/issues/640
 Then, Rosetta ignores blacklisting `*gcc-4.*`, only whitelist works.
 Finally, when building with `gcc12`, it fails on:

 {{{
 Undefined symbols:
 "__ZN6google14FlagRegistererC1INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEPKcS9_S9_PT_SB_",
 referenced from:
       __GLOBAL__sub_I_logging.cc in logging.cc.o
       __GLOBAL__sub_I_logging.cc in logging.cc.o
       __GLOBAL__sub_I_logging.cc in logging.cc.o
       __GLOBAL__sub_I_logging.cc in logging.cc.o
       __GLOBAL__sub_I_logging.cc in logging.cc.o
       __GLOBAL__sub_I_vlog_is_on.cc in vlog_is_on.cc.o
 ld: symbol(s) not found
 }}}

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


More information about the macports-tickets mailing list