Opened 7 weeks ago

Closed 4 weeks ago

#70899 closed defect (duplicate)

mysql8 @8.4.2: fails to compile with Xcode Clang on Sonoma

Reported by: raxod502-plaid (Radon Rosborough) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: sonoma Cc: pspanja (Petar Španja), cooljeanius (Eric Gallager)
Port: mysql8

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I recently uninstalled libunwind due to #69235 and this triggered rev-upgrade for a number of ports. They all rebuilt successfully except for mysql8 which fails with the following:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.4.2/storage/ndb/plugin/ndb_binlog_purger.cc:79:20: error: no member named 'any_of' in namespace 'std::ranges'
:info:build    79 |   if (std::ranges::any_of(m_purge_files, [filename](const auto &request) {
:info:build       |       ~~~~~~~~~~~~~^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.4.2/storage/ndb/plugin/ndb_binlog_purger.cc:98:25: error: no member named 'none_of' in namespace 'std::ranges'
:info:build    98 |            std::ranges::none_of(m_purge_files, [session](const auto &request) {
:info:build       |            ~~~~~~~~~~~~~^
:info:build 2 errors generated.

Here is the compiler that is being selected:

:debug:configure Preferred compilers: clang macports-clang-19 macports-clang-18 macports-clang-17 macports-clang-16
:debug:configure Using compiler 'Xcode Clang'

I will attach the full build output to this ticket.

Attachments (1)

main.log.bz2 (80.5 KB) - added by jmroot (Joshua Root) 7 weeks ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 weeks ago by jmroot (Joshua Root)

Owner: set to herbygillot
Status: newassigned

comment:2 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Changed 7 weeks ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added

comment:3 Changed 7 weeks ago by pspanja (Petar Španja)

Cc: pspanja added

comment:4 Changed 6 weeks ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:5 Changed 4 weeks ago by raxod502-plaid (Radon Rosborough)

This build error is resolved by running

sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++

as is now documented in https://trac.macports.org/wiki/ProblemHotlist#clts16 from #70750

Version 0, edited 4 weeks ago by raxod502-plaid (Radon Rosborough) (next)

comment:6 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.