'; }
Bug 291247 - devel/llvm19: Compiling failed due to a missing file
Summary: devel/llvm19: Compiling failed due to a missing file
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-27 15:07 UTC by Trev
Modified: 2025-12-12 18:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trev 2025-11-27 15:07:03 UTC
Compiling llvm19 on amd64 FreeBSD 13.5-R p6 failed due to a missing file:

"/usr/ports/devel/llvm19/work-default/llvm-project-19.1.7.src/llvm/tools/gold/gold-plugin.cpp:40:10: fatal error: 'plugin-api.h' file not found
  40 | #include <plugin-api.h>"

Installing the devel/binutils package resolved the issue.
Comment 1 Brooks Davis freebsd_committerfreebsd_triage 2025-12-02 10:36:59 UTC
I believe the issue is that disabling the GOLD option is broken because there's no actual mechanism to stop the plugin from trying to build.  I'm honestly not sure how this hasn't come up as a problem before.  I'll commit a fix to each of the ports as I get it tested.
Comment 2 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:13 UTC
A commit in branch main references this bug:

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

commit 6fb41863d079a7d69497f2d2d2c73d1ba572981c
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:28 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:05:36 +0000

    devel/llvm12: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm12/Makefile                                       |  3 ++-
 devel/llvm12/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 3 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:14 UTC
A commit in branch main references this bug:

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

commit 128f72b23891bd1ad91699e25e3b54dc91bd7c52
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:29 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:05:37 +0000

    devel/llvm11: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm11/Makefile                                       |  3 ++-
 devel/llvm11/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 4 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:15 UTC
A commit in branch main references this bug:

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

commit c67ff903ebb72a63761889e1780451d0671211b4
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:25 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:04:25 +0000

    devel/llvm16: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm16/Makefile                                       |  3 ++-
 devel/llvm16/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 5 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:16 UTC
A commit in branch main references this bug:

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

commit 4438cc0381fc30d6e4867998539a02a1ad88d724
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:26 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:05:34 +0000

    devel/llvm15: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm15/Makefile                                       |  3 ++-
 devel/llvm15/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 6 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:16 UTC
A commit in branch main references this bug:

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

commit 78ffea3bfe2b6f9b24f9331418a68a7fcb663b41
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:27 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:05:36 +0000

    devel/llvm13: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm13/Makefile                                       |  3 ++-
 devel/llvm13/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 7 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:17 UTC
A commit in branch main references this bug:

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

commit 8bdb01cdf3ff532d7457b39be7ca01e8e6e29d6f
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:23 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:04:23 +0000

    devel/llvm19: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm19/Makefile                                       |  3 ++-
 devel/llvm19/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 8 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:18 UTC
A commit in branch main references this bug:

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

commit 6b80b5acae0b649b418178c5dbc88e482c4b9cad
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:26 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:05:35 +0000

    devel/llvm14: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm14/Makefile                                       |  3 ++-
 devel/llvm14/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 9 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:19 UTC
A commit in branch main references this bug:

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

commit cfedc18cd014407085cdc36c07323c151d4b98c6
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:25 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:04:25 +0000

    devel/llvm18: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm18/Makefile                                       |  3 ++-
 devel/llvm18/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 10 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:20 UTC
A commit in branch main references this bug:

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

commit 4e1881d3af605651ea021c26e57727375a982dcd
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:23 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:04:23 +0000

    devel/llvm21: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm21/Makefile                                       |  3 ++-
 devel/llvm21/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 11 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:21 UTC
A commit in branch main references this bug:

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

commit c181633fc977ddbe347417fc6a5ce15cf5bf3929
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:24 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:04:24 +0000

    devel/llvm20: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm20/Makefile                                       |  3 ++-
 devel/llvm20/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 12 commit-hook freebsd_committerfreebsd_triage 2025-12-09 16:06:22 UTC
A commit in branch main references this bug:

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

commit 01d933a4488e35f8aada363e5469a1ba96585f77
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-12-09 16:04:25 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-12-09 16:04:25 +0000

    devel/llvm17: don't build gold plugin when disabled

    Disabling the GOLD option didn't actually disable building the plugin,
    it just didn't install it in the package.  Actually stop traversing into
    the directory when the option disabled so we don't end up needing
    devel/binutils.

    PR:             291247
    Sponsored by:   DARPA, AFRL

 devel/llvm17/Makefile                                       |  3 ++-
 devel/llvm17/files/gold-off-llvm_tools_CMakeLists.txt (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)