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

MacPorts noreply at macports.org
Sat Nov 18 17:59:39 UTC 2017


#55302: libgcc fails to build as universal 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 kencu):

 I let my "reference" 10.6.8 VM run overnight building libgcc +universal,
 and it failed to build it. I obtained the same error you did:

 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc/work/gcc-7.2.0/libsanitizer/asan/asan_mac.cc:84:45:
 error: 'getsectiondata' was not declared in this scope
    __asan_global *globals = (__asan_global *)getsectiondata(
                                              ^~~~~~~~~~~~~~
 }}}

 Now I'm confused, because I just built it on my day-to-day 10.6.8 machine
 without any trouble, although it is configured slightly differently.

 I have the following installed on that reference VM:
 {{{
 $ port -v installed | grep ld
   ld64 @3_0+ld64_127+universal platform='darwin 10' archs='i386 x86_64'
 date='2017-10-22T18:23:31-0700'
   ld64 @3_0+ld64_127 (active) platform='darwin 10' archs='x86_64'
 date='2017-05-10T12:50:27-0700'
   ld64-127 @127.2_14+llvm34+universal platform='darwin 10' archs='i386
 x86_64' date='2017-10-22T18:23:29-0700'
   ld64-127 @127.2_14+llvm34 (active) platform='darwin 10' archs='x86_64'
 date='2017-05-10T12:50:25-0700'
   ld64-236 @236.3_7+llvm34 platform='darwin 10' archs='x86_64'
 date='2017-05-10T15:43:54-0700'
 }}}
 I _think_ the issue might be in the linker, above. I'll try upgrading to a
 newer linker (ld64 version) and see what happens.

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


More information about the macports-tickets mailing list