Bug 291247 - devel/llvm19: Compiling failed due to a missing file
Summary: devel/llvm19: Compiling failed due to a missing file
Status: In Progress
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-02 10:36 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_committer freebsd_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.