Skip to content

clang should be used on OpenBSD

$ uname -sr
OpenBSD 6.4
$ export AUTOCONF_VERSION=2.69                                                                                                                                               
$ export AUTOMAKE_VERSION=1.16                                                                                                                                               
$ ./boot
$ ./configure
[...]
checking version of gcc... configure: error: Need at least gcc version 4.4 (4.7+ recommended)                                                                                

Indeed OpenBSD's included gcc appears to be too old:

$ gcc --version                                                                                                                                                              
gcc (GCC) 4.2.1 20070719
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

But luckily it also ships with clang, which could be used instead:

$ clang --version
OpenBSD clang version 6.0.0 (tags/RELEASE_600/final) (based on LLVM 6.0.0)
Target: amd64-unknown-openbsd6.4
Thread model: posix
InstalledDir: /usr/bin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information