DragonFly and clang10
You can now use compilers.conf(5) to switch to clang10/llvm10 for building Dragonfly. Untested yet!
You can now use compilers.conf(5) to switch to clang10/llvm10 for building Dragonfly. Untested yet!
Don’t get too excited yet – clang import hasn’t happened. However, I want to draw attention to Rimvydas Jasinskas’ changes to alternate compiler handling, which would be for importing clang. His commit message goes into some of the rather thorny problems of transitioning between compilers and releases.
John Marino has added the starting framework to use clang as the alternate base compiler in DragonFly. Note that it’s not hooked into the build yet. This is the first non-GCC compiler added into DragonFly, so there’s some work yet before you can have an all-clang system. This should replace GCC 4.7, which is the current …
If you are using clang with DragonFly, and you want to always run the newest version, you can set options in compilers.conf, and use ‘clangnext‘.
It’s been possible to install and run clang on DragonFly for a long time, of course, and at least build world with it. However, John Marino is putting in significant work to make clang one of the system compilers, replacing the older gcc44 that’s in DragonFly now. (The newer gcc47 stays.) This won’t be part of the …
Today is the day that FreeBSD moves to using clang by default. This is not necessarily a surprise, but I like the finality of calling it “Clang-Day”. I think Clang will probably be the next compiler brought into DragonFly’s base system, instead of the next release of gcc. Don’t make any bets on my …
I think I’ve mentioned building DragonFly with clang before, but not pkgsrc. There’s two variables to set, plus some special handling for libf2c. Thomas Klausner has details. This is not tested on DragonFly.
Juan Francisco Cantero Hurtado has been working with clang and DragonFly, along with Sascha Wildner. DragonFly mostly compiles using clang, with lib/citrus being (the only? one of?) the last holdouts. Juan Francisco Cantero Hurtado detailed how to test it out using clang 3.0 in case someone else wants to help solve this.
I recently saw some terse notes on tech-pkg@netbsd.org about compiling using clang for pkgsrc. I haven’t tried this on DragonFly…
I spied a bulk build of pkgsrc using clang. It’s interesting to see the results… It’s on NetBSD, but it should be possible to try the same thing with CCVER on DragonFly. Any takers?
Sascha Wildner has set up $CCVER so that it can be used with ‘clangsvn’. If you install clang from svn into /usr/local, it’ll get picked up and used as the system compiler.
IBM’s developerWorks has an article up about GNU screen. It’s not BSD-specific, but the tips in using screen are useful. (Before someone brings it up: yes, tmux too.) Another article talks about inspecting network traffic using various tools including tcpdump and wireshark. It is a tremendous advantage to see what happens on a network at …
Continue reading “Messylaneous – Unixy articles, clang, pkgsrc projects, more”
BSDTalk has a very timely interview with Roman Divácký and Ed Schouten about the switch to clang/LLVM in FreeBSD. It’s 17 minutes, recorded at the recent BSDCan 2010.
clang, which many people look to as a gcc replacement, is now able to build itself. (Thanks John Marino for the heads-up, some time ago) It can also build world and kernel on DragonFly, going on the work of Sascha Wildner! Using the pkgsrc package, put clang_CC=/usr/pkg/bin/clang in /etc/compilers.conf and then set $CCVER to “clang” …
Continue reading “Self-hosting clang; building DragonFly with it too”
Several people have been working on having DragonFly compile with clang. Alex Hornung’s updated the clang page on the DragonFly site for details; if this interests you, a conversation on EFNet #dragonflybsd may be in order.
Alex Hornung has done some preliminary work with llvm/clang, and has successfully compiled a GENERIC DragonFly kernel, and completed a buildworld, using it. He also has some very nice notes available detailing the work. There’s potential for cross-BSD work with FreeBSD on this one, too.
Merry Christmas! I am probably opening presents or poking my children to wake up and open presents hurry hurry, as you read this. helloSystem 0.7 is out. FreeBSD, Jails and SYSV IPC. (via) FreeBSD: 2021 in Review: Advocacy. FreeBSD: 2021 in Review: Infrastructure Support. FreeBSD Foundation Q3 2021 Status Update. Foundation, not Project. OpenVPN on …
There’s a lot of releases happening. Next NYCBUG meeting: February 5th. I’ll post a reminder. Don’t forget there’s ChiBUG and SEMIBUG meetings coming up on the 11th and 18th, respectively. FOSDEM 2020 is happening now and there’s a BSD devroom. (reminded via) The MWL 2020 Asia Tour. Worth catching if you are on that side …
Lots of variety this week. NetBSD Advent Calendar 2019. (via) ARM64 and BSD discussion. Notqmail, the presentation topic for the January NYCBUG meeting and maybe for SEMIBUG at some point too. HAMBSD, presented at NorthernRST. (via) BSD-Licensed Combinatorics library/utility. This is neat. “The Microsoft LSG (former Open Source Technology Center) FreeBSD Team is pleased to …
I have a number of BSD user group notifications here – please tell me if you have a group and I’m not regularly posting about it. NYCBUG meeting on the 4th: Setting up a convenient working environment, with Ivan Ivanov. I’ll post a reminder. ChiBUG is meeting on the 17th. RSVP on the mailing list …