[MacPorts] #68592: gcc13 does not work with Macports-installed libc++: error: expected identifier before '__is_convertible'

MacPorts noreply at macports.org
Mon Mar 25 08:01:14 UTC 2024


#68592: gcc13 does not work with Macports-installed libc++: error: expected
identifier before '__is_convertible'
-------------------------------+--------------------
  Reporter:  barracuda156      |      Owner:  (none)
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.8.1
Resolution:                    |   Keywords:
      Port:  gcc13, gcc-devel  |
-------------------------------+--------------------

Comment (by barracuda156):

 Macports is set up wrong now: gcc13 should never be used with `libc++`
 until this bug is fixed, but it is chosen be default.
 ''This is what happens when someone commits directly to the master without
 testing.''

 Forget PowerPC, it is not working on Intel either:
 {{{
   /opt/local/bin/g++-mp-13 -DHYPRLANG_INTERNAL -Dhyprlang_EXPORTS
 -I/opt/local/var/macports/build/_Users_runner_work_macports-
 ports_macports-
 ports_ports_devel_hyprlang/hyprlang/work/hyprlang-0.5.0/./include
 -I/opt/local/var/macports/build/_Users_runner_work_macports-
 ports_macports-
 ports_ports_devel_hyprlang/hyprlang/work/hyprlang-0.5.0/./src -pipe -Os
 -DNDEBUG -I/opt/local/include -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -mmacosx-version-min=12.0 -fPIC -O3 -std=gnu++23 -MD -MT
 CMakeFiles/hyprlang.dir/src/common.cpp.o -MF
 CMakeFiles/hyprlang.dir/src/common.cpp.o.d -o
 CMakeFiles/hyprlang.dir/src/common.cpp.o -c /opt/local/var/macports/build
 /_Users_runner_work_macports-ports_macports-
 ports_ports_devel_hyprlang/hyprlang/work/hyprlang-0.5.0/src/common.cpp
   In file included from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/new:96,
                    from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__memory/construct_at.h:23,
                    from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__memory/allocator_traits.h:14,
                    from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__memory/allocate_at_least.h:13,
                    from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__memory/allocator.h:14,
                    from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/any:86,
                    from /opt/local/var/macports/build
 /_Users_runner_work_macports-ports_macports-
 ports_ports_devel_hyprlang/hyprlang/work/hyprlang-0.5.0/src/../include/hyprlang.hpp:6,
                    from /opt/local/var/macports/build
 /_Users_runner_work_macports-ports_macports-
 ports_ports_devel_hyprlang/hyprlang/work/hyprlang-0.5.0/src/public.hpp:2,
                    from /opt/local/var/macports/build
 /_Users_runner_work_macports-ports_macports-
 ports_ports_devel_hyprlang/hyprlang/work/hyprlang-0.5.0/src/common.cpp:1:
   /opt/local/libexec/gcc13/libc++/include/c++/v1/cstdlib:144:9: error:
 'at_quick_exit' has not been declared in '::'
     144 | using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;
         |         ^~~~~~~~~~~~~
   /opt/local/libexec/gcc13/libc++/include/c++/v1/cstdlib:145:9: error:
 'quick_exit' has not been declared in '::'
     145 | using ::quick_exit _LIBCPP_USING_IF_EXISTS;
         |         ^~~~~~~~~~
   In file included from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/exception:86,
                    from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/new:97:
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__type_traits/is_convertible.h:71:8:
 error: expected identifier before '__is_convertible'
      71 | struct __is_convertible
         |        ^~~~~~~~~~~~~~~~
 }}}

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


More information about the macports-tickets mailing list