Re: Importing clang/LLVM into FreeBSD HEAD

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Wed, 2 Jun 2010 14:57:22 -0700
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)
_at__at_ -1,5 +1,7 _at__at_
 # $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)
_at__at_ -1,5 +1,7 _at__at_
 # $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)
_at__at_ -1,5 +1,7 _at__at_
 # $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)
_at__at_ -1,5 +1,7 _at__at_
 # $FreeBSD$
 
+CC=	gcc
+
 .PATH:		${.CURDIR}/../boot2 ${.CURDIR}/../gptboot ${.CURDIR}/../zfsboot
 
 FILES=		gptzfsboot


-- 
Steve
Received on Wed Jun 02 2010 - 19:57:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC