Importing clang/LLVM into FreeBSD HEAD

Steve Kargl sgk at troutmask.apl.washington.edu
Wed Jun 2 21:57:23 UTC 2010


On Wed, Jun 02, 2010 at 11:48:11PM +0200, Pawel Worach wrote:
> On May 31, 2010, at 16:57, Steve Kargl wrote:
> > 
> > Can clang/LLVM build the livefs and bootonly CD's?
> > 
> 
> There is a buildbot here[1] that builds a live CD for boot
> testing, so I would say it works.
> 
> [1] http://amd64-clang-bot.qat.freebsd.org:8010/
> 

Clang cannot build a FreeBSD without the help of gcc.

http://amd64-clang-bot.qat.freebsd.org:8010/freebsd.diff

Index: sys/boot/i386/boot2/Makefile
===================================================================
--- sys/boot/i386/boot2/Makefile	(revision 208675)
+++ sys/boot/i386/boot2/Makefile	(working copy)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+CC=	gcc
+
 FILES=		boot boot1 boot2
 
 NM?=		nm
ndex: sys/boot/i386/zfsboot/Makefile
===================================================================
--- sys/boot/i386/zfsboot/Makefile	(revision 208675)
+++ sys/boot/i386/zfsboot/Makefile	(working copy)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+CC=	gcc
+
 .PATH:		${.CURDIR}/../boot2

Index: sys/boot/i386/gptboot/Makefile
===================================================================
--- sys/boot/i386/gptboot/Makefile	(revision 208675)
+++ sys/boot/i386/gptboot/Makefile	(working copy)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+CC=	gcc
+
 .PATH:		${.CURDIR}/../boot2
 
 FILES=		gptboot

Index: sys/boot/i386/gptzfsboot/Makefile
===================================================================
--- sys/boot/i386/gptzfsboot/Makefile	(revision 208675)
+++ sys/boot/i386/gptzfsboot/Makefile	(working copy)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+CC=	gcc
+
 .PATH:		${.CURDIR}/../boot2 ${.CURDIR}/../gptboot ${.CURDIR}/../zfsboot
 
 FILES=		gptzfsboot


-- 
Steve


More information about the freebsd-current mailing list