[MacPorts] #71137: i386-elf-gcc, x86_64-elf-gcc @12.2.0: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces (was: Cannot build i386-elf-gcc on macOS 15.0.1)

MacPorts noreply at macports.org
Mon Oct 21 22:20:49 UTC 2024


#71137: i386-elf-gcc, x86_64-elf-gcc @12.2.0: error: '__abi_tag__' attribute only
applies to structs, variables, functions, and namespaces
-------------------------------------------+---------------------
  Reporter:  tahamunawar                   |      Owner:  (none)
      Type:  defect                        |     Status:  new
  Priority:  Normal                        |  Milestone:
 Component:  ports                         |    Version:  2.10.2
Resolution:                                |   Keywords:  sequoia
      Port:  i386-elf-gcc, x86_64-elf-gcc  |
-------------------------------------------+---------------------
Changes (by ryandesign):

 * keywords:   => sequoia
 * port:  i386-elf-gcc => i386-elf-gcc, x86_64-elf-gcc


Comment:

 Pulling the error out of the log so it's easier to see:

 {{{
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i386
 -elf-gcc/i386-elf-gcc/work/gcc-12.2.0/gcc/cp/mapper-client.cc:31:
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i386
 -elf-gcc/i386-elf-gcc/work/gcc-12.2.0/gcc/system.h:227:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/map:2193:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/functional:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/vector:325:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__format/formatter_integral.h:35:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/locale:202:
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__locale:496:3:
 error: '__abi_tag__' attribute only applies to structs, variables,
 functions, and namespaces
   496 |   _LIBCPP_HIDE_FROM_ABI char_type toupper(char_type __c) const {
 return do_toupper(__c); }
       |   ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__config:874:26:
 note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
   874 |
 __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))
       |                          ^
 }}}

 I believe the x86_64-elf-gcc port is probably affected by the same
 problem. And while the Portfiles themselves look simple, updates may also
 be needed in the crossgcc portgroup and in the binutils dependencies. I'm
 not sure how to decide what versions of binutils and libc to update to for
 a particular version of gcc. I'm asking on the mailing list for guidance
 from someone more familiar with how to update these ports:

 https://lists.macports.org/pipermail/macports-dev/2024-October/045906.html

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


More information about the macports-tickets mailing list