BSD Ports

devel/llvm18 18.1.8_3 MidnightBSD

LLVM and Clang

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
bd843b83e3
License
${LICENSE:NARM}
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

The newest version among them is 18.1.8, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/llvm1818.1.8_3 newestno data-[email protected]2026-07-06
FreeBSDdevel/llvm1818.1.8_6 newestnone known-[email protected]2026-10-20
DragonFlydevel/llvm1818.1.8_2 newestnone known-[email protected]-
HardenedBSDdevel/llvm1818.1.8_5 newestno data-[email protected]-
GhostBSDdevel/llvm1818.1.8_5 newestno data-[email protected]-

Install

Binary package:

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

From mports:

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

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

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

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Library 1

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

Options name: devel_llvm

OptionDefaultDescription
BE_AMDGPUonAMD GPU backend (required by mesa)
BE_FREEBSDoffBackends for FreeBSD architectures
BE_NATIVEoffBackend(s) for this architecture (${_NATIVE_BACKENDS})
BE_STANDARDoffAll non-experimental backends
BE_WASMonWebAssembly 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 6908
  • 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-config
  • bin/llvm-cov
  • 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-modextract
  • bin/llvm-mt
  • 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/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-tblgen
  • bin/diagtool
  • bin/hmaptool
  • bin/intercept-build
  • bin/nvptx-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
  • bin/clang-move
  • bin/clang-pseudo
  • bin/clang-query
  • bin/clang-rename
  • bin/clang-reorder-fields

The first 100 are listed.

distinfo 1
FileSizeSHA256
llvm-project-18.1.8.src.tar.xz1.3206726e+080b58557a6d32ceee97c8d533a59b9212d87e0fc4d2833924eb6c611247db2f2a
Master sites 1
  • https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/

Commit history 2

DateCommitCreditsLog message
bd843b83e3 Lucas Holt devel/llvm18: fix MidnightBSD macro patch
Place the MidnightBSD target macro definitions next to the FreeBSD definitions so they apply inside the scope where Release and CCVersion are available. This restores patch application and fixes the Targets.cpp compile failure seen in Magus run 641. AI-Assisted-by: Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
851db4390e Lucas Holt devel/llvm18: define MidnightBSD version macros in scope
AI-Assisted-by: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>