Bug 276155 - devel/llvm14 devel/llvm15 devel/llvm16 devel/llvm17: fix build with clang 18
Summary: devel/llvm14 devel/llvm15 devel/llvm16 devel/llvm17: fix build with clang 18
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks: 276104
  Show dependency treegraph
 
Reported: 2024-01-06 17:28 UTC by Dimitry Andric
Modified: 2024-01-13 11:46 UTC (History)
0 users

See Also:
brooks: maintainer-feedback+


Attachments
devel/llvm14 devel/llvm15 devel/llvm16 devel/llvm17: fix build with clang 18 (6.16 KB, patch)
2024-01-06 17:30 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2024-01-06 17:28:58 UTC
Clang 18 is more strict in checking inline assembly constraints,
resulting in an error building devel/llvm14, devel/llvm15, devel/llvm16,
and devel/llvm17:

  /wrkdirs/usr/ports/devel/llvm14/work-default/llvm-project-14.0.6.src/compiler-rt/lib/asan/asan_rtl_x86_64.S:130:286: error: displacement 70368744177664 is not within [-2147483648, 2147483647]

This is fixed by two upstream commits:
https://github.com/llvm/llvm-project/commit/b9935bb02a50
https://github.com/llvm/llvm-project/commit/966d564e43e6
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2024-01-06 17:30:51 UTC
Created attachment 247490 [details]
devel/llvm14 devel/llvm15 devel/llvm16 devel/llvm17: fix build with clang 18
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2024-01-08 22:12:11 UTC
probably technically needs a PORTREVISION bump.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-01-12 16:32:52 UTC
A commit in branch main references this bug:

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

commit 0b672496d6927004bfcb41db685a66750420ead4
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-01-06 17:11:27 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-01-12 16:31:52 +0000

    devel/llvm14 devel/llvm15 devel/llvm16 devel/llvm17: fix build with clang 18

    Clang 18 is more strict in checking inline assembly constraints,
    resulting in an error building devel/llvm14, devel/llvm15, devel/llvm16,
    and devel/llvm17:

      /wrkdirs/usr/ports/devel/llvm14/work-default/llvm-project-14.0.6.src/compiler-rt/lib/asan/asan_rtl_x86_64.S:130:286: error: displacement 70368744177664 is not within [-2147483648, 2147483647]

    This is fixed by two upstream commits:
    https://github.com/llvm/llvm-project/commit/b9935bb02a50
    https://github.com/llvm/llvm-project/commit/966d564e43e6

    PR:             276155
    Approved by:    brooks (maintainer)
    MFH:            2024Q1

 devel/llvm14/Makefile | 6 +++++-
 devel/llvm14/distinfo | 4 ++++
 devel/llvm15/Makefile | 6 +++++-
 devel/llvm15/distinfo | 4 ++++
 devel/llvm16/Makefile | 6 +++++-
 devel/llvm16/distinfo | 4 ++++
 devel/llvm17/Makefile | 6 +++++-
 devel/llvm17/distinfo | 4 ++++
 8 files changed, 36 insertions(+), 4 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-01-12 16:37:55 UTC
A commit in branch 2024Q1 references this bug:

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

commit c91d810f65bbffe63287b537f025566ad7e2e598
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-01-06 17:11:27 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-01-12 16:37:34 +0000

    devel/llvm14 devel/llvm15 devel/llvm16 devel/llvm17: fix build with clang 18

    Clang 18 is more strict in checking inline assembly constraints,
    resulting in an error building devel/llvm14, devel/llvm15, devel/llvm16,
    and devel/llvm17:

      /wrkdirs/usr/ports/devel/llvm14/work-default/llvm-project-14.0.6.src/compiler-rt/lib/asan/asan_rtl_x86_64.S:130:286: error: displacement 70368744177664 is not within [-2147483648, 2147483647]

    This is fixed by two upstream commits:
    https://github.com/llvm/llvm-project/commit/b9935bb02a50
    https://github.com/llvm/llvm-project/commit/966d564e43e6

    PR:             276155
    Approved by:    brooks (maintainer)
    MFH:            2024Q1

    (cherry picked from commit 0b672496d6927004bfcb41db685a66750420ead4)

 devel/llvm14/Makefile | 6 +++++-
 devel/llvm14/distinfo | 4 ++++
 devel/llvm15/Makefile | 6 +++++-
 devel/llvm15/distinfo | 4 ++++
 devel/llvm16/Makefile | 6 +++++-
 devel/llvm16/distinfo | 4 ++++
 devel/llvm17/Makefile | 6 +++++-
 devel/llvm17/distinfo | 4 ++++
 8 files changed, 36 insertions(+), 4 deletions(-)