Results for clang

Clang-Day today for FreeBSD

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 […]

Building pkgsrc with clang

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.

New clang 3.0 and DragonFly work

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.

More clang and pkgsrc

I recently saw some terse notes on tech-pkg@netbsd.org about compiling using clang for pkgsrc.  I haven’t tried this on DragonFly…

clang and pkgsrc bulk builds

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?

An easy way to use clang

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.

Messylaneous – Unixy articles, clang, pkgsrc projects, more

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 […]

New BSDTalk: clang clang clang

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.

Self-hosting clang; building DragonFly with it too

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” […]

Progress with 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.

Progress with clang

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.

DragonFly in GCC tests

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.

In Other BSDs for 2014/01/11

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: David Chisnall

BSDTalk 233 plays David Chisnall’s hour of presentation from vBSDCon 2013 about moving from gcc to llvm/clang.

Moving dports to gcc 4.7

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 […]

In Other BSDs for 2013/09/14

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 […]

In Other BSDs for 2013/09/07

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 […]

Ecumenical BSD

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 […]

Lazy Reading for 2012/09/09

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, […]

gcc47 means gcc-aux for you

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 […]

pkgsrc-2012Q2 released

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.

Lazy Reading for 2012/06/10

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 […]

Lazy Reading for 2011/11/13

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, […]

Lazy Reading for 2011/05/29

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. […]

pkgsrc database, compiler changes

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.

More pcc notes

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.

More compilers, easily

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.

Messylaneous, 03/12/2009

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 […]

Analysis benefits

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!

GCC alternatives

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.