[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:52:18 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, we need to use the same compiler for `gflags` and `google-glog`,
 something related to: https://github.com/gflags/gflags/issues/203
 Once that is done, i.e. `gflags` is rebuilt with `gcc12`, `google-glog`
 build proceeds and finally fails on atomics:
 {{{
 Undefined symbols:
   "___atomic_load_8", referenced from:
       _main in logging_unittest.cc.o
   "___atomic_store_8", referenced from:
       _main in logging_unittest.cc.o
 ld: symbol(s) not found
 collect2: error: ld returned 1 exit status
 make[2]: *** [logging_unittest] Error 1
 }}}

 I will add ldflag now for that, and hopefully issue is fixed.

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


More information about the macports-tickets mailing list