[MacPorts] #55302: libgcc fails to build on SnowLeopard: error: 'getsectiondata' was not declared in this scope

MacPorts noreply at macports.org
Tue Nov 28 09:23:14 UTC 2017


#55302: libgcc fails to build on SnowLeopard: error: 'getsectiondata' was not
declared in this scope
-----------------------+-------------------------
  Reporter:  rmottola  |      Owner:
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  snowleopard
      Port:  libgcc    |
-----------------------+-------------------------

Comment (by rmottola):

 I don't have ideas about libmacho.

 However I tried using the compiled gcc48 and it gives me issues.
 I have

 {{{
   gcc48 @4.8.5_2+universal (active) platform='darwin 10' archs='i386
 x86_64' date='2017-11-21T04:12:06+0100'
   gcc_select @0.1_8 (active) platform='darwin 10' archs='noarch'
 date='2017-11-08T23:26:46+0100'
   libgcc @7.2.0_1+universal (active) platform='darwin 10' archs='i386
 x86_64' date='2017-11-20T23:16:37+0100'
   libgcc6 @6.4.0_1+universal (active) platform='darwin 10' archs='i386
 x86_64' date='2017-11-21T02:31:19+0100'
 }}}

 That says I have now libgcc and gcc48 as "universal" for intel, right?
 However:

 {{{
 gcc-mp-4.8 -march=pentium-m hello.c
 hello.c:1:0: error: CPU you selected does not support x86-64 instruction
 set
 }}}

 without specifing the architecture, I get a.out as 64bit.

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


More information about the macports-tickets mailing list