Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937164 - sys-devel/llvm-18: fails to build with GCC 15
Summary: sys-devel/llvm-18: fails to build with GCC 15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-03 02:01 UTC by Sam James
Modified: 2024-10-12 04:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc15-x86.patch (gcc15-x86.patch,441 bytes, patch)
2024-08-03 02:01 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-03 02:01:16 UTC
Created attachment 898826 [details, diff]
gcc15-x86.patch

I've fixed this upstream already.

We need three patches:
1) https://github.com/llvm/llvm-project/commit/7e44305041d96b064c197216b931ae3917a34ac1
2) https://github.com/llvm/llvm-project/pull/101766
3) Attached patch (only needed for <19, so no upstream PR, it'll be handled by the backport of 1))
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-03 03:01:44 UTC
Note that unfortunately it fixes an installed header so a revbump is needed.
Comment 2 Larry the Git Cow gentoo-dev 2024-08-03 14:33:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1584c5d3895e81d0dee700366d4bfe373a4f4135

commit 1584c5d3895e81d0dee700366d4bfe373a4f4135
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-08-03 10:03:13 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-08-03 14:33:22 +0000

    sys-devel/llvm: Backport gcc-15 fixes to 18.x
    
    Closes: https://bugs.gentoo.org/937164
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/llvm/Manifest              |   1 +
 sys-devel/llvm/llvm-18.1.8-r3.ebuild | 549 +++++++++++++++++++++++++++++++++++
 2 files changed, 550 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-10-12 04:04:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=867d488d1eedef28864dc3f773e020dac36979b4

commit 867d488d1eedef28864dc3f773e020dac36979b4
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-10-11 22:51:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-12 04:03:13 +0000

    dev-lang/rust: backport llvm patches for gcc-15
    
    No revbump since this is build-only.
    
    Bug: https://bugs.gentoo.org/937164
    Closes: https://bugs.gentoo.org/937525
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Closes: https://github.com/gentoo/gentoo/pull/38947
    Signed-off-by: Sam James <sam@gentoo.org>

 .../rust/files/1.81.0-backport-bug937164.patch     | 15 +++++++++++
 .../rust/files/1.81.0-backport-llvm-pr101761.patch | 30 ++++++++++++++++++++++
 .../rust/files/1.81.0-backport-llvm-pr101766.patch | 29 +++++++++++++++++++++
 dev-lang/rust/rust-1.81.0.ebuild                   |  3 +++
 4 files changed, 77 insertions(+)