Bug 269442 - databases/mysql80-server: Fails to build on recent head
Summary: databases/mysql80-server: Fails to build on recent head
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL: https://github.com/mysql/mysql-server...
Keywords: patch
Depends on:
Blocks:
 
Reported: 2023-02-09 18:00 UTC by Guido Falsi
Modified: 2023-02-12 01:26 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
patch v1 (4.50 KB, patch)
2023-02-10 15:19 UTC, Guido Falsi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Falsi freebsd_committer freebsd_triage 2023-02-09 18:00:32 UTC
Hi,

I just noticed that mysql 8.0 server fails on head after commit 50d7464c3fe6 (import of clang/llvm 15.0.7).

Upstream already has a patch for this here:

https://github.com/mysql/mysql-server/commit/69fb953b55474f32d0e1e35b043599c34e516349

I'm reporting this right away so it can be fixed quickly, I have still not tested the fix.
Comment 1 Jochen Neumeister freebsd_committer freebsd_triage 2023-02-09 18:33:56 UTC
(In reply to Guido Falsi from comment #0)

Hi,
can you give me more info on this? I had tested it without problems on FreeBSD 12.3, 13.1 and CURRENT (amd64 / i386) in poudriere.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2023-02-09 18:43:01 UTC
Yesterday evening llvm 15.0.7 has been imported into head (commit 50d7464c3fe6 to src is the last one completing the import).

__FreeBSD_version was also bumped in commit 3264f6b88fce7c5437d205685863617d8f6a22dd

Looks like this version of clang includes changes to the libc++ library affecting MySql server.

there are also other changes affecting other ports for which I;m testing my own fixes.

Since in this case the fix is coming from upstream and is beyond my understanding of how it works, I thought I could report it right away.

I'm building a bunch of ports to update my machines on current at commit e6cf1a0826c9d7f229e41224ec7b783501636528, committed at 2023-02-08 20:50:46 +0000

(that's yesterday evening UTC)
Comment 3 Jochen Neumeister freebsd_committer freebsd_triage 2023-02-09 19:37:06 UTC
thanks for the feedback. i will update my build machine with CURRENT and test it.
Comment 4 Guido Falsi freebsd_committer freebsd_triage 2023-02-10 15:19:35 UTC
Created attachment 240048 [details]
patch v1

I created a simple patch I tested i poudriere that makes it compile in all supported FreeBSD versions.

Hope it helps.
Comment 5 Jochen Neumeister freebsd_committer freebsd_triage 2023-02-11 15:23:26 UTC
Do you have more details for me? I can not reproduce the error. I have updated my server running on CURRENT, and also both CURRENT jails (i386 / amd64). In both CURRENT jails MySQL 8.0 builds successfully.
Comment 6 Guido Falsi freebsd_committer freebsd_triage 2023-02-11 16:28:32 UTC
I'm getting the error compiling with poudriere with latest head, here is alink to a log file:

https://www.madpilot.net/cloud/s/KWC92qayFeb5kTZ


The failure may not show if, for example, you configured your systems to use another compiler by default.
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-02-12 01:26:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f33a321916b70feece270f78b03eb081a7cefbf

commit 9f33a321916b70feece270f78b03eb081a7cefbf
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2023-02-12 01:22:17 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2023-02-12 01:24:41 +0000

    databases/mysql80-server: Fix build with LLVM15

    This Patch fix an LLVM15 Problem on CURRENT

    PR:     269442
    Reported by:    madpilot
    Sponsored by:   Netzkommune GmbH

 .../mysql80-server/files/patch-llvm15-fix (new)    | 103 +++++++++++++++++++++
 1 file changed, 103 insertions(+)