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 […]
Results for clang
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 firstname.lastname@example.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 […]
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” […]
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.
Last minute again. Introducing the Netgate SG-1000 microFirewall (Pre-loaded with pfSense) (via) I lost my OpenBSD full-disk encryption password. (via) OpenBSD: Use the space freed up by sparc and zaurus to import LLVM. (via) g2k16 hackathon: Undeadly has reports about ddb, vmm + vmd, package signing, ports + wifi, fuse, and a lot more. iXsystems to […]
If you’re part of a BSD user group, please let me know your schedule. I’m able to catch NYCBUG announcements cause I’m on their announce@ mailing list – but I could use more. DiscoverBSD for 2015/03/30. Lumina 0.8.3 is released. Building PC-BSD Utilities From Source. (video) BSD Magazine for March. Directly building FreeBSD AMI images. […]
Remembered to do this all at the last minute, after I got the new server up. LibertyBSD, an OpenBSD fork with no non-free firmware. OPNSense, a FreeBSD-based firewall that is new to me. OpenBSD projects that aren’t OpenBSD. Broken build tracker for pkgsrc. (via) pkgsrc-2014Q4 is out. pkgviews is gone from pkgsrc. NetBSD can now […]
Thanks to John Marino and people I don’t know the name of in the gcc project, DragonFly is now part of the gcc test suite. “What about clang?” you say? We’re not picky; DragonFly works with either.
Running late putting this together… Back to bullets! The weekly PC-BSD digest for January 3rd. DiscoverBSD’s weekly roundup. PC-BSD’s weekly digest. Jailing FreeBSD 4 on FreeBSD 10. FreeBSD 4 has been a very long-lived release, so to speak. OpenBSD has a new auto-install feature that needs to be tested. Julio Merino has plans for his […]
BSDTalk 233 plays David Chisnall’s hour of presentation from vBSDCon 2013 about moving from gcc to llvm/clang.
DragonFly has two included compilers – GCC 4.4, and GCC 4.7. Traditionally, we switch from one compiler to the other as default, and then replace the old one with a newer release, and so on. Until recently, dports built almost exclusively using GCC 4.4. John Marino’s switching to GCC 4.7, for a variety of reasons […]
Barely getting this done in time for Saturday… FreeBSD can now download firmware for Samsung drives. FreeBSD has updated ipfilter to 5.1.2. FreeBSD has updated to OpenPAM Nummularia. On FreeBSD, clang means no gcc or libstdc++. (part of the switch) FreeBSD has new Hyper-V drivers. NetBSD has support for the ‘4G Systems XS Stick W14’. NetBSD […]
There’s been a lot of commit activity across the BSDs, but my list doesn’t seem to reflect that. A lot of incremental work, I suppose. FreeBSD has imported the multiqueue VirtIO driver FreeBSD has added support for the BCM20702A0 chipset, for Bluetooth adapters. FreeBSD can now reach single user mode with Digi i.MX53 / Wi-i.MX53 boards […]
A person labeled only as ‘wicked’ sent me a link to this conversation about BSD unification. I’ve seen the topic brought up before, and I’d argue that it’s already happening, slowly. DragonFly has code brought in from FreeBSD, pkgsrc from NetBSD, pf and dhclient from OpenBSD, etc. ‘bmake’ is used in NetBSD, FreeBSD, and DragonFly […]
Whee! deadweight, “Find unused CSS selectors by scraping your HTML”. I’ve needed something like this for years. (via) The same sort of thing for pkgsrc: pkg_leaves. Worth running at least yearly, or at least before any significant pkgsrc upgrade. There’s no point in updating a package you don’t use or need. GNU Coreutils cheat sheet, […]
John Marino has added a ‘gcc47’ compiler ccvar, so you can build world and kernel with it. ‘It’ is actually gcc-aux, since it seems to work better than the basic (“vanilla”?) gcc47. You also get Ada support, though that wasn’t the driving reason to pick it. This is brand new so don’t try it unless […]
The release announcement for pkgsrc-2012Q2 is out. New in this quarterly release: statistics about clang and pkgsrc. A surprisingly large number of packages build just fine with clang instead of gcc.
I got to use the ‘roguelike’ tag again this week, which always makes me happy. Surprisingly, it’s not about… that roguelike. RSA encryption explained. (via) Someone from Google went to BSDCan 2012 and blogged about it. The takeaways are interesting, especially something I’ve seen elsewhere: “Don’t buy systems that can’t take registered RAM in a […]
I’m going for more verbose linking. Because my opinion layered over a bunch of linkblogging is just what you wanted on a weekend, isn’t it? If not – too late! NYCBUG posts audio of their regular presentations, and I’m linking to this one by James K. Lowden, titled “Free Database Systems: What They Should Be, […]
Whee! Do you like the Opera browser? Apparently all it takes is a little misspelling to confuse it with a U.S. daytime talk show host. The “Best of Oprah emails to Opera“. (via) Mistaken identity on the Internet is always fun. Popular free software licenses, described. (via) One of the better, non-polemic descriptions I’ve seen. […]
I mentioned previously that Postgres 9 is already in pkgsrc, but the flip side of that is both Postgres 8.2, and MySQL 4 are being removed. If you still have these installed, be ready to migrate at your next upgrade. Oh, and you can switch to clang for building pkgsrc, too.
The compiler pcc, while having both history and speed, doesn’t get the attention that clang/LLVM gets. There’s a NetBSD blog article about building NetBSD with pcc. (via) I recall it couldn’t be used for DragonFly because of TLS support; I don’t know if that’s still an issue. It’s been covered here before.
Sascha Wildner has posted a patch that makes it very easy to switch out the compiler used to build DragonFly. This builds on earlier work from Alex Hornung. This should make it into the base system. Everyone’s looking at compilers that aren’t gcc these days, it seems.
A bunch of links, cause that’s the easiest way to get this all out: ‘Beket’ has added a vkernel debugging howto on the DragonFly site. The Open64 compiler may work may work with some tweaking on DragonFly. And llvm/clang too. You can use BSD almost any way you want. Linux, not so much. (via) Hammer […]
Sascha Wildner has been fixing various bugs in DragonFly through use of reports generated by the LLVM/Clang static analyzer.Â There are many more fixes made by Sascha than what I linked here – thanks, Sascha!
pcc has been added to NetBSD (via pkgsrc) and OpenBSD, and Steve Mynott has been messing with it on DragonFly. It doesn’t work as a replacement for GCC, but it looks promising. There are other alternatives in progress, too.