Opened 2 years ago

Last modified 6 months ago

#66267 assigned defect

MySQL 8.0.31 failed to be built with macports-clang-15 on macOS <= 10.12 Sierra

Reported by: laggardkernel (laggardkernel) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chrstphrchvz (Christopher Chavez), cooljeanius (Eric Gallager)
Port: mysql8

Description

Checking from port health, mysql 8.0.31 failed to be built on macOS <= 10.14 Mojave.

https://ports.macports.org/port/mysql8/details/

Here's the error part extracted from the build log.

/opt/local/libexec/llvm-15/bin/../include/c++/v1/__algorithm/iterator_operations.h:100:5: error: static assertion failed due to requirement 'is_same<varlen_element, varlen_element &>::value': It looks like your iterator's `iterator_traits<It>::reference` does not match the return type of dereferencing the iterator, i.e., calling `*it`. This is undefined behavior according to [input.iterators] and can lead to dangling reference issues at runtime, so we are flagging this.
    static_assert(is_same<__deref_t<_Iter>, typename iterator_traits<__uncvref_t<_Iter> >::reference>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-15/bin/../include/c++/v1/__algorithm/iterator_operations.h:129:5: note: in instantiation of function template specialization 'std::_IterOps<std::_ClassicAlgPolicy>::__validate_iter_reference<varlen_iterator &>' requested here
    __validate_iter_reference<_Iter>();
    ^

Change History (7)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to herbygillot
Status: newassigned

comment:2 Changed 22 months ago by laggardkernel (laggardkernel)

The package has been built successfully after upgrading mysql8 to 8.0.32. While I needed to change configure.compiler to macports-clang-14 to get the building passed with 8.0.31.

comment:3 Changed 21 months ago by kencu (Ken)

Summary: MySQL 8.0.31 failed to be built with macports-clang-15 on macOS <= 10.14 MojaveMySQL 8.0.31 failed to be built with macports-clang-15 on macOS <= 10.13 Mojave

comment:4 Changed 21 months ago by kencu (Ken)

Summary: MySQL 8.0.31 failed to be built with macports-clang-15 on macOS <= 10.13 MojaveMySQL 8.0.31 failed to be built with macports-clang-15 on macOS <= 10.12 Sierra

comment:5 Changed 15 months ago by chrstphrchvz (Christopher Chavez)

Why was the title of this ticket was changed to “… <= 10.12 Sierra”? This port only supports 10.13 or later.

The varlen_sort.h error under LLVM clang 15 was indeed fixed in 8.0.32: https://github.com/mysql/mysql-server/commit/69fb953b5547. I believe this ticket can be closed.

comment:6 Changed 15 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:7 Changed 6 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.