From owner-freebsd-current@FreeBSD.ORG Wed Apr 21 00:44:51 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3FD9106566B for ; Wed, 21 Apr 2010 00:44:50 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by mx1.freebsd.org (Postfix) with ESMTP id 4C9608FC20 for ; Wed, 21 Apr 2010 00:44:49 +0000 (UTC) Received: by bwz28 with SMTP id 28so7672462bwz.14 for ; Tue, 20 Apr 2010 17:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=5/PM3Wv9XBvCEC/Ldb0x8WSVI5P0DrDstNykd6G1jbo=; b=bLGPV3+66ojP2jyND/BdC9Cku5ySx9i2ZHbE0AbSZidsWzz+wJbmHh7HIttqX66Wln 8v2d+uztSPMnfPCMPP1yzD8fC0NDg2OVZc/32VKrDsyBUoxRBWPl0QbywShsRErLHpeL ChwuROp/x4M6Hq22vT0Heko07Erq3mBlwiaN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qOumymQe4yloZa9klpUlbGfoyep40yu3qSvuD0CC0faOfYwZ6aLfO1L5joc7Xw0MHX /iTHhQmCT9Zg47y5DroRhh9mtN7XX0IyCczrtMnPtdT/l/6dDdm5HhA4EEnM93HOvNVw LfLByY2XOLs4vLyGwoE2fs1hSm5SdHTYxOopI= MIME-Version: 1.0 Received: by 10.239.132.194 with HTTP; Tue, 20 Apr 2010 17:44:47 -0700 (PDT) In-Reply-To: <20100416160818.GA69460@freebsd.org> References: <20100416160818.GA69460@freebsd.org> Date: Tue, 20 Apr 2010 20:44:47 -0400 Received: by 10.239.192.79 with SMTP id d15mr639812hbi.52.1271810687313; Tue, 20 Apr 2010 17:44:47 -0700 (PDT) Message-ID: From: Mehmet Erol Sanliturk To: Roman Divacky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: current@freebsd.org Subject: Re: [CFT]: ClangBSD is selfhosting, we need testers now X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2010 00:44:51 -0000 On Fri, Apr 16, 2010 at 12:08 PM, Roman Divacky wrote: > Hi, > > ClangBSD is a branch of FreeBSD that aims at integrating clang ( > clang.llvm.org) > into FreeBSD, replacing GCC as a system compiler. > > Recently, we've achieved the state when clang can compile all of FreeBSD > world > on i386/amd64 platforms (including all the C++ apps we have and itself) > and a bootable kernel. Thus we feel that the time has come to ask the > FreeBSD > community for wider testing on i386/amd64 (you sure can help with other > platforms too :)). > > How to setup ClangBSD: > > The default configuration of ClangBSD requires clang installed so you can > either install fresh llvm-devel port (portinstall devel/llvm-devel) or > change > CC to "gcc" and CXX to "g++" in share/mk/sys.mk. I recommend the former. > > > svn co http://svn.freebsd.org/base/projects/clangbsd/ clangbsd > > cd clangbsd && make buildworld > > echo NO_WERROR= >> /etc/make.conf > echo WERROR= >> /etc/make.conf > > make DESTDIR=/clangbsd-chroot/ installworld > > > now you have ClangBSD world installed and you can chroot into it. I don't > recommend installing ClangBSD into real root as it is not tested enough. > > You can also start using clang compiled kernel - either build the kernel in > the ClangBSD chroot (set NO_WERROR=yo and WERROR=yo in /etc/src.conf) or > set > CC to clang and build kernel the normal way. > > This information (and more) is also provided on: > > http://wiki.freebsd.org/BuildingFreeBSDWithClang > > We kindly ask you to setup ClangBSD chroot and/or use clang compiled kernel > and > use it as you would normally use FreeBSD. Please report back > > Thank you, > > Roman Divacky on behalf of the ClangBSD team > To participate in such tests would be very pleasing for many FreeBSD users , but for less experienced users that may be very difficult . To help to less experienced users to participate to such tests , I have prepared a skeleton algorithm for application of such tests . The skeleton algorithm needs to be completed to make it a usable algorithm . I am NOT so much experienced to prepare it completely , and reason is that for preparing that skeleton . I do NOT have sufficient knowledge to complete places specified by ... and to write scripts to apply some steps repeatedly without re-keying the necessary statements over and over with possible errors . If that skeleton is re-worked and completed to be usable , it is likely that more people will be able to apply such tests , including me . It should be written in such a structure that a FreeBSD user having knowledge to . install FreeBSD , . add packages , . perform file operations ( cp , mv , etc. ) , . apply scripts , . and other minimal knowledge to apply steps explicitly specified in the following algorithm , will be able to apply it . The algorithm may be tested by less experienced users to report its difficult to understand or apply parts . ( Similar algorithms may be generated and used to test other aspects . This may be a starting template for them . ) If you find useful , the following text may be completed and incorporated into a suitable page of wiki.freebsd.org or any other one ( by using already present copyright of the attached page ) . Thank you very much . Mehmet Erol Sanliturk To apply a complete test cycle about building FreeBSD from source by using CLang and LLVM compiling system , the following steps may be applied . Some of them may be already completed with respect to installed parts , and those steps may be skipped . (A) Install FreeBSD 8.0 Stable from ftp://ftp4.freebsd.org/pub/FreeBSD/snapshots/201004/FreeBSD-8.0-STABLE-201004-amd64-dvd1.iso OR ... (B) Login as root . Add the following packages in the listed order : pkg_add -rv llvm pkg_add -rv clang pkg_add -rv subversion-freebsd . . . The following script ... may be downloaded to apply that step . (C) Login as root . Check the versions of the following packages : ... To ensure that the latest versions of the following packages are already installed , apply the following statements : ... The following script ... may be downloaded to apply that step . (D) Study the following pages to apply required steps to build a bootable FreeBSD operating system : (E) http://wiki.freebsd.org/SubversionPrimer Apply the steps described in that page to construct a source tree in your local computer . The following script ... may be downloaded to apply that step . (F) http://wiki.freebsd.org/Tinderbox Apply the following steps to be able to build FreeBSD from sources with CLang by scripts : ... The following script ... may be downloaded to apply that step . (G) http://wiki.freebsd.org/BuildingFreeBSDWithClang Download latest Makefile from ... to compile FreeBSD sources by the CLang compiler by applying the following steps : ... by using scripts downloadable from : ... Apply the scripts to compile FreeBSD sources . (H) If compilation fails , prepare a message containing the following information ... and send it to the following address : ... ( A sample message text may be downloaded from .... ) Start from step ( ... ) . (I) After a successfull compilation , create a bootable CD or DVD or USB disk or USB stick : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html Apply the following steps to create a bootable FreeBSD CD : OR http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html Apply the following steps to create a bootable FreeBSD DVD : OR If the testing computer can boot from a USB port ( This can be checked from BIOS and set from BIOS if BIOS allows booting from USB ) : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html Apply the following steps to create a bootable FreeBSD USB disk or stick : (J) On another computer , try to install the newly created FreeBSD operating system . If FreeBSD could not be booted successfully , prepare a message containing the following information : ... and send that message to the following address : ... ( A sample message text may be downloaded from .... ) If FreeBSD could be booted and installed successfully , prepare a message having the following information ... and attach dmesg file ... to the message and sent it to the following address ... ( A sample message text may be downloaded from .... ) (K) Execute the following programs in succession to test their workability : . . . (i) Program name : ... On successful completion ,send the message created from template downloadable from ... to the following address specified in template : ... On failure of execution ,send the message created from template downloadable from ... by attaching the following information ( or files ) ... to the following address specified in template : ... ( End of the algorithm . )