Bug 279131 - base/llvm18 ports broken with march=native on old cpu
Summary: base/llvm18 ports broken with march=native on old cpu
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 14.0-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-18 16:01 UTC by Elijah Crane
Modified: 2024-05-21 10:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elijah Crane 2024-05-18 16:01:58 UTC
git branch stable/14, 14.1-STABLE stable/14-n267682-626ee3cac845 GENERIC amd64
host cpu ryzen 5950 has no avx512 extension

I've got the same error with march=native flag while trying to build ports which using system CC (chrome, libreoffice)
https://github.com/llvm/llvm-project/issues/91719

Please merge patch from upstream
https://github.com/llvm/llvm-project/commit/87f3407856e61a73798af4e41b28bc33b5bf4ce6
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2024-05-20 16:20:23 UTC
This is reported fixed in 18.1.6 while I'll update to shortly.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-05-20 21:31:26 UTC
A commit in branch main references this bug:

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

commit b74e0482275ebf33f39cc5db20a61d8744d490e1
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-05-20 20:51:59 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-05-20 21:29:35 +0000

    devel/llvm18: 18.1.6 release

    Included changes are in the release annoucment:
        https://discourse.llvm.org/t/18-1-6-released/79068

    This includes a fix for -march=native which was broken in 18.1.5.  Also
    includs a fix for OpenMP child processes.

    PR:             278843, 279131

 devel/llvm18/Makefile | 2 +-
 devel/llvm18/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 3 Elijah Crane 2024-05-21 10:49:44 UTC
Tested, all ok, thanks!