BSD Ports

devel/llvm21 21.1.8_3 MidnightBSD

LLVM and Clang

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
a05b377b53
License
bsd3, LLVM, LLVM2, mit, publicdom, REGEX
Categories
devel, lang

Description

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker), LLDB (a debugger), an OpenMP runtime library, and the LLVM infrastructure these are built on.

In the other systems

SystemPortVersion
MidnightBSDdevel/llvm2121.1.8_3
FreeBSDdevel/llvm2121.1.8_4
HardenedBSDdevel/llvm2121.1.8_4
GhostBSDdevel/llvm2121.1.8_4

Install

Binary package:

mport install llvm${LLVM_MAJOR_MINOR:C/\.[0-9]$//}

From mports:

cd /usr/mports/devel/llvm21 && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	llvm${LLVM_MAJOR_MINOR:C/\.[0-9]$//}>0:devel/llvm21

Dependencies

As this port's Makefile names them.

Library 1

Build dependencies 1
Run dependencies 1

Configuration

Options name: devel_llvm

OptionDefaultDescription
BE_AMDGPUoffAMD GPU backend (required by mesa)
BE_FREEBSDoffBackends for FreeBSD architectures
BE_NATIVEoffBackend(s) for this architecture (${_NATIVE_BACKENDS})
BE_STANDARDoffAll non-experimental backends
BE_WASMoffWebAssembly backend (required by firefox via wasi)
CLANGonBuild clang
COMPILER_RToffSanitizer libraries
DOCSoff
LLDonInstall lld, the LLVM linker
STATIC_LIBSoffInstall static libraries (does not effect sanitizers)
USES
cmake compiler:c++17-lang cpe tar:xz shebangfix ${_USES_PYTHON}
Service scripts
none
Conflicts with
llvm${LLVM_MAJOR_MINOR:C/\.[0-9]$//} llvm${LLVM_MAJOR_MINOR:C/\.[0-9]$//}-lite

Files

pkg-plist 7886
  • bin/bugpoint
  • bin/dsymutil
  • bin/llc
  • bin/lli
  • bin/llvm-addr2line
  • bin/llvm-ar
  • bin/llvm-as
  • bin/llvm-bcanalyzer
  • bin/llvm-bitcode-strip
  • bin/llvm-cat
  • bin/llvm-cfi-verify
  • bin/llvm-cgdata
  • bin/llvm-config
  • bin/llvm-cov
  • bin/llvm-ctxprof-util
  • bin/llvm-cvtres
  • bin/llvm-cxxmap
  • bin/llvm-debuginfo-analyzer
  • bin/llvm-debuginfod
  • bin/llvm-debuginfod-find
  • bin/llvm-diff
  • bin/llvm-dis
  • bin/llvm-dlltool
  • bin/llvm-dwarfdump
  • bin/llvm-dwarfutil
  • bin/llvm-dwp
  • bin/llvm-exegesis
  • bin/llvm-extract
  • bin/llvm-gsymutil
  • bin/llvm-ifs
  • bin/llvm-install-name-tool
  • bin/llvm-jitlink
  • bin/llvm-libtool-darwin
  • bin/llvm-link
  • bin/llvm-lipo
  • bin/llvm-mc
  • bin/llvm-ml
  • bin/llvm-ml64
  • bin/llvm-modextract
  • bin/llvm-nm
  • bin/llvm-objcopy
  • bin/llvm-objdump
  • bin/llvm-opt-report
  • bin/llvm-otool
  • bin/llvm-pdbutil
  • bin/llvm-profdata
  • bin/llvm-profgen
  • bin/llvm-ranlib
  • bin/llvm-rc
  • bin/llvm-readelf
  • bin/llvm-readobj
  • bin/llvm-readtapi
  • bin/llvm-reduce
  • bin/llvm-remarkutil
  • bin/llvm-rtdyld
  • bin/llvm-sim
  • bin/llvm-size
  • bin/llvm-split
  • bin/llvm-stress
  • bin/llvm-strings
  • bin/llvm-strip
  • bin/llvm-symbolizer
  • bin/llvm-tblgen
  • bin/llvm-tli-checker
  • bin/llvm-undname
  • bin/llvm-windres
  • bin/llvm-xray
  • bin/opt
  • bin/reduce-chunk-list
  • bin/sancov
  • bin/amdgpu-arch
  • bin/analyze-build
  • bin/c-index-test
  • bin/clang
  • bin/clang++
  • bin/clang-check
  • bin/clang-cpp
  • bin/clang-extdef-mapping
  • bin/clang-format
  • bin/clang-linker-wrapper
  • bin/clang-offload-bundler
  • bin/clang-offload-packager
  • bin/clang-repl
  • bin/clang-scan-deps
  • bin/clang-sycl-linker
  • bin/clang-tblgen
  • bin/diagtool
  • bin/hmaptool
  • bin/intercept-build
  • bin/nvptx-arch
  • bin/offload-arch
  • bin/scan-build
  • bin/scan-build-py
  • bin/scan-view
  • bin/clangd
  • bin/clang-apply-replacements
  • bin/clang-change-namespace
  • bin/clang-doc
  • bin/clang-include-cleaner
  • bin/clang-include-fixer

The first 100 are listed.

distinfo 1
FileSizeSHA256
llvm-project-21.1.8.src.tar.xz1.58958576e+084633a23617fa31a3ea51242586ea7fb1da7140e426bd62fc164261fe036aa142
Master sites 1
  • https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/

Commit history 2

DateCommitCreditsLog message
a05b377b53 Lucas Holt *: bump PORTREVISION for the textproc/libxml2 2.15 shared library change (#848)
`textproc/libxml2` 2.15 changed SONAME from `libxml2.so.2` to `libxml2.so.16` **and** removed ELF symbol versioning entirely — the new library defines no `LIBXML2_*` versions at all. Consumers built against the old library were never rebuilt, so they still record a dependency on `libxml2.so.2` plus version requirements nothing can satisfy, and fail at load time: ``` ld-elf.so.1: /usr/local/lib/libxml2.so.2: version LIBXML2_2.4.30 required by /usr/local/lib/libevdocument3.so.4 not defined ``` ### Scope `Tools/scripts/bump_revision.pl -f -l textproc/libxml2` — **436 Makefiles**: 323 revisions incremented, 113 gained a `PORTREVISION` line. The diff touches nothing but `PORTREVISION` lines (verified: `git diff -U0` shows no other changed line), and spot-checked ports still …
ba88a0be93 Lucas Holt devel/llvm21: fix wrapper script dispatching all commands to bugpoint
The realpath call resolved symlinks before extracting the basename, so every command (clang21, llvm-ar21, ld.lld21, etc.) resolved to bugpoint21 and executed bugpoint instead of the intended tool. Use ${0##*/} directly. This is the same defect fixed in devel/llvm19 by 2d080d0ca3. AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Holt <[email protected]>