I wanted to test some of the new features available in the clang-18 version (details can be found here: https://en.cppreference.com/w/cpp/compiler_support);
How should I go about this? Because I'm guessing that since FreeBSD has its own libc, it won't be enough to just compile the compiler ;D
I got a situation where I need to compile FreeBSD 14 Current from an old source (from 3 to 5 months ago) but I am getting multiple errors related to the last changes involving CLANG/LLVM16, like the explanation below:
Clang 16 introduced a warning that "implicit truncation from...
LLDB FreeBSD Developer's Guide
LLDB practical guide for the FreeBSD Developer to remember some very important commands, in the evaluation of debugging the code.
Note: ‘(lldb)’ is the debugger prompt. ‘$’ is the shell prompt.
load a program into lldb
Same in two steps:
I have a cross-platform project using devel/cmake and C++20. This project compiles fine under Windows, Linux and MacOS.
The project uses Google's protobuf library. On FreeBSD, I installed those from devel/protobuf.
The problem I'm facing is that the project requires lang/gcc11 as clang is...
FreeBSD 13.0 uses now llvm-11.0.1.
In /usr/ports/Mk/bsd.default-versions.mk is defined
#Possible values: 70, 80, 90, 10, 11, -devel (to be used when non-base compiler is required)
LLVM_DEFAULT?=90That's the version llvm-9.0..
So installing from the ports, where some ports LLVM needed, will...
Before you are gone "attack" me I'm gone tell you something: I'm a FreeBSD user since 5.2 and I love it; also FreeBSD is my main OS despite the fact that I also run several GNU/Linux instances on other machines, but having multiple version of the same software is unproductive. For eg. right now...
I use iRedMail to run a personal domain.
iRedMail on FreeBSD compiles all the necessary packages from Ports. LLVM is a dependency for Postgres, amongst others.
The full installation of LLVM is not required in the context above. Things like cross-compile, debugger are not used...
After running my normal updates for this month, I see llvm80 is building inside of poudriere. In the past, I disabled llvm from building and it has not built for some time. I do not remember what I did years ago to stop it from building. Could someone point me in the right direction to determine...
I am trying to build qemu-devel from source so I go:
/usr/ports/emulator/qemu-devel/ # make config-recursive && make -DBATCH install clean
it goes on until it fails here:
===> llvm80-8.0.1_3 needs Python 3.6 at least, but 2.7 was specified.
*** Error code 1
make: stopped in...
I have a machine now running 11.3-RELEASE that's been upgraded several times starting with the 10.x tree. Somewhere along the line, I've picked up both llvm60 and llvm80. I notice today that there are simultaneous updates for both, and my first thought is "surely this isn't necessary!"
How can I force FreeBSD 10.4 to use a newer LLVM version like 4.0 to compile cc libs?
I installed LLVM4.0 via ports
and I change my /etc/make.conf :
If if run clang --version it shows 3.4 the default one is used...
How can I setup my LLVM version...
About the status of LLVM utilities, and elfutils on FreeBSD (future 11.2) stable version.
Were there any leaps of a BSD toolchain on replacing binutils on stable (future 11.2) compared to on FreeBSD 11.1? Is there anything working that hasn't been represented in...
I created a new jail via ezjail-admin, and attempted to build devel/llvm50 with the command below
make -DBATCH WITH_DEBUG=yes install clean
I left my laptop running all night and in the morning I saw the build failed at some stage.
My base system (host that the jail is running on) is...
Is it possible to buildworld without Clang or GCC, so a newer llvm or Clang can be installed as a package? I tried this, and now I'm stuck with a system that can't compile anything, from the package compilers.
This topic seems to belong in "Installing and Upgrading FreeBSD..." but its about...
I'm in the process of testing the drm-next-4.7 branch from the FreeBSDDesktop github repository on several computers. As I want to avoid building world on every machine, I decided to set up a dedicated build machine running FreeBSD 11.0-STABLE. The plan was to build world, kernel and some...
I wonder how I can upgrade the Clang/llvm that is ported with FreeBSD.
I know i can get the newest version from ports but how can I make the ports version the default clang for the system.
I am looking at porting over llvmlite, and numba for python. It builds just fine with the documentation provided, however it is required to pass LLVM_CONFIG:
LLVM_CONFIG=/usr/local/bin/llvm-config37 python setup.py
Which works fine as an install for myself. However as a port, I wasn't...
Julia is a scientific programming language modeled after a few other languages that draws their advantages together for simplicity. It uses LLVM, and it has an MIT license.
While installing xorg from ports on FreeBSD 10.2 it builds lang/clang36 and devel/llvm36 tools among others as dependencies. Although I have both CLANG and LLVM (3.4.1) on base, Xorg still requires to have duplicates. Is it possible to avoid building CLANG and LLVM and use those from base...