[MacPorts] #37664: gcc47 @4.7.2 'init_priority' attribute is not supported on this platform

MacPorts noreply at macports.org
Wed Jan 16 10:11:31 PST 2013


#37664: gcc47 @4.7.2 'init_priority' attribute is not supported on this platform
--------------------+--------------------------------
 Reporter:  ilg@…   |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.1.2
 Keywords:  gcc     |       Port:  gcc47
--------------------+--------------------------------
 According to the GCC manuals, the
 {{{
  __attribute__ ((init_priority (NNN)))
 }}}
 should be supported by classes and
 {{{
  __attribute__((constructor(NNN)))
 }}}
 by functions.

 http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html#C_002b_002b-
 Attributes

 Unfortunately the current version fails to compile programs using this
 attributes:

 {{{
 OS.cpp:16:57: error: constructor priorities are not supported
 OS.cpp:35:59: error: 'init_priority' attribute is not supported on this
 platform
 }}}

 Regards,

 Liviu

-- 
Ticket URL: <https://trac.macports.org/ticket/37664>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list