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.
===> The following configuration options are available for llvm18-18.1.8_7:
BE_AMDGPU=on: AMD GPU backend (required by mesa)
BE_WASM=on: WebAssembly backend (required by firefox via wasi)
CLANG=on: Build clang
COMPILER_RT=on: Sanitizer libraries
DOCS=on: Build and/or install documentation
EXTRAS=on: Extra clang tools
FLANG=off: Flang FORTRAN compiler
LIT=on: Install lit and FileCheck test tools
LLD=on: Install lld, the LLVM linker
MLIR=on: Multi-Level Intermediate Representation
OPENMP=on: Install libomp, the LLVM OpenMP runtime library
POLLY=on: Polyhedral loop and data-locality optimizer
PYCLANG=on: Install python bindings to libclang
STATIC_LIBS=on: Install static libraries (does not effect sanitizers)
====> Options available for the single BACKENDS: you have to select exactly one of them
BE_FREEBSD=off: Backends for FreeBSD architectures
BE_NATIVE=off: Backend(s) for this architecture (X86)
BE_STANDARD=on: All non-experimental backends
===> Use 'make config' to modify these settings
devel/llvm18: remove LLDB, assorted fixes
Users are almost certainly better off with a newere LLDB so remove the
option to save build time.
Fix build with libc++ from LLVM 21. (PR 296203)
Fix plist issues. (PR 298493)
PR: 296203, 298493
Sponsored by: DARPA, AFRL
devel/llvm[14-22]: backport powerpc64le patch from CURRENT
Since 16.0, powerpc64le switches to IEEE long double binary128.
This set of patches backports the change from CURRENT.
LLVM 12 and 13 are omitted, because binary128 handling in those
versions is not finished.
devel/llvm??: remove libxml2 discovery
In commit af979dd126ff4 the dependency on libxml2 was removed. But
libxml2 was still found for LLDB and used if it was present at configure
time.
PR: 295076
Submitted by: laurent
devel/llvm??: Add Mips back to standard backends
I'd forgotten that STANDARD_BACKENDS is includes _FREEBSD_BACKENDS so
Mips dropped out of the list when it was removed from _FREEBSD_BACKENDS.
PR: 295111
Fixes: 2a7c0561200c ("all: drop support for FreeBSD 13, mips and risc64sf")
all: drop support for FreeBSD 13, mips and risc64sf
Reviewed by: many (*)
Differential Revision: https://reviews.freebsd.org/D55624
Differential Revision: https://reviews.freebsd.org/D55642 (merged in from bofh)
many (*)
acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
nobutaka pkubaj se tagattie thj
Anton Saietskii
GenericRikka
Gert Doering
Jan Bramkamp
Oleh Hushchenkov
Oleksandr Kryvulia
Ralf van der Enden
Yamagi
desktop kde python tcltk office
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
python.mk: rename PYTHON_EXT_SUFFIX to PYTHON_TAG, document, etc
EXT_SUFFIX, according to PEP 3149, refers to the full tag and
extension for compiled extension module objects, eg .cpython-311.so,
.cpython-313t.so, etc. We do not use the correct semantic meaning,
and this usage becomes ambiguous and confusing when tags do not
match between bytecode and compiled extension module objects.
Rename our PYTHON_EXT_SUFFIX to PYTHON_TAG to align with PEP 3147's
specification of a magic tag, which consists of implementation name
and shorthand version only. This is meant for bytecode and other
files containing this tag in their filename that do not depend on
a specific Python ABI for the same version. Chase all existing
consumers.
(Only the first 15 lines of the commit message are shown above )
devel/llvm18: backport llvm19 fixes
Pull in the patch from llvm1[567] and manually patch fold-logical.cpp
(there's nothing sensible to back port because the offending code was
rewritten in a commit that doesn't apply easily between 18 and 19.)
PR: 283966, 285195
Submitted by: milios@ccsys.com (fixed backport patch)
devel/llvm18: Fix !CLANG plist
llvm-debuginfo-analyzer isn't part of Clang, but was matched by the
overly broad pattern `-analyzer`.
Reported by: jrtc27
Sponsored by: DARPA, AFRL
devel/llvm*: flip LICENSE_FILE_BSD3CLAUSE setting [NFC]
The location of this license file moved in LLVM 16. Since I'm doing
cleanup in this area and the split of ports is about 50/50, switch to
setting the old location in the older ports so the newer ports set fewer
variables.
Sponsored by: DARPA, AFRL
devel/llvm*: LICENSE_DIR simplification
WRKSRC moved to the top of the source tree with llvm12. As a result,
LICENSE_DIR became ${WRKSRC}/llvm. Given that llvm11 the only port that
wasn't setting LICENSE_DIR, flip the script and default to
${WRKSRC}/llvm with llvm11 overriding.
Sponsored by: DARPA, AFRL
devel/llvm*: Always define LLVM2 license [NFC]
All LLVM ports in the tree use the Apache License 2.0 with LLVM
Exceptions license so cerntralize the definition.
Sponsored by: DARPA, AFRL
devel/llvm[789]: restore arm_bf16.h to ARM backend
arm_bf16.h is generated for both armv7 and aarch64 so move it back to
ARM. We don't support AArch64 without ARM so we can just move it and
not need to worry about duplicate supression (I'd previously fixed the
issue in llvm19 in a more complicated manner so this change removes the
duplicate supression and documents why it's not needed.)
PR: 281179
Reported by: Mark Millard
devel/llvm18: fix host dependent compiler output for i386
Merge fixes for a couple cases where the compiler generated different
i386 code depending on the host. In the base system this showed up as
very small differences in a couple object files in buildworld for i386
depending on the host architecture (i386 or amd64).
PR: 276961
devel/llvm18: Backport __stack_chk_guard fix
Backport upstream commit commit 26464f2662d1 which marks __stack_chk_guard
dso_local except for PPC64 to fix loading an x86 kernel build with
--fstack-protector.
Also update to 18.1.8. From a packaging perspective this only bumps the
version number since it only touchs libc++ which we don't ship. As such,
I'd waited to bundle this bump with a functional change.
Drop releases.llvm.org, the LLVM project seems to nonlonger update it.
Co-authored by: Ahmad Khalifa <ahmadkhalifa570@gmail.com>
Pull Request: https://github.com/freebsd/freebsd-ports/pull/283
devel/llvm18: misc improvements
Fix worse runtime performance on Zen CPU when optimizing for Zen. [0]
Install all standard heaaders with clang. Historically we've been
unable to build FreeBSD with the full set due to conflicts and/or
missing features between the compiler provided headers and
FreeBSD's headers. I've verified that I can build world and kernel on
the main, stable/14, and stable/13 branches for amd64 so let's give it
another try in broader testing. [1]
PR: 278908 [0], 274542 [1]
devel/llvm18: 18.1.6 release
Included changes are in the release annoucment:
https://discourse.llvm.org/t/18-1-6-released/79068
This includes a fix for -march=native which was broken in 18.1.5. Also
includs a fix for OpenMP child processes.
PR: 278843, 279131
devel/llvm*: Remove unnecessary C/CFLAGS definitions
As of 3c5189a0fd4c82addfb659024bf28c5006bf88f7
there's no need to define DNDEBUG manually
PR: 277909
Approved by: portmgr (maintainer timeout, 2+ weeks)
devel/llvm18: PLIST_SUB improvements [NFC]
Chase changes in library suffixes and fix an overly pesimistic
substitution. No functional change, but will reduce plist churn when 19
comes out assuming there aren't further upstream changes in suffixes.
devel/llvm18: 18.1.1 release
No functional change as all this release does does is set
LLVM_VERSION_SUFFIX="" (which we now do in the Makefile) and bump the
release version.
devel/llvm18: Update to 18.1.0rc3
Add a build conflict with ${ARCH}-binutils for COMPILER_RT to avoid
plist issues. Technically this is only an issue for 64-bit
architectures that build 32-bit sanitizers (the presence of <triple>-ld
is picked up and it doesn't pass some cmake test), but it's easier to
just block all of them.
devel/llvm18: update to 18.1.0rc2
Add a libLLVM-18.so symlink to address hardcoding in Uses/llvm.mk and
other locations. [0]
Reported by: Mark Millard <marklmi@yahoo.com>
devel/llvm18: fix plist issues with BE_NATIVE
Several flang modules depend on the PPC backend.
Add a couple more arm headers that depend on the Arm or AArch64
backends.
Reported by: Mark Millard <marklmi@yahoo.com>
devel/llvm-devel: update to 18.1.0rc1
Update from 17 to 18 and connect to build.
Upstream has changed versioning so release branches bump the minor
version to 1 to differentiate them from the pre-branch development
version.
I've moved the .cmake files into STATIC_LIBS as they aren't useful
without .a files. This removes from from the lite flavor (which will
likely be replaced with subpackages.) [0]
PR: 271821 [0]