From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 11:04:52 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F09931065673; Sat, 1 May 2010 11:04:52 +0000 (UTC) (envelope-from hinokind@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 5681C8FC15; Sat, 1 May 2010 11:04:51 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so331039fgb.13 for ; Sat, 01 May 2010 04:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:to:subject:date :cc:mime-version:content-transfer-encoding:from:message-id :user-agent; bh=dRrAOnP8YuKEIV7w8+hc0vYMeseP4CTCjzF+g0ovXnU=; b=Pt56GKIDy7iTgewRKKjJEMm9jRWhVDkqbEdp8BNwvxdq6MwDzAnZc267QEEs/9cXAd wa3Jg5MvBgxqgt8wB5rQ1dS5jIJwX7G/BXThX/kVH4JFiwxAjzm8EuquXvaja5Lvou2W 1FwJO1heLU0ATLK8gM63RpRGVVN8rHaWcBe9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:to:subject:date:cc:mime-version :content-transfer-encoding:from:message-id:user-agent; b=YYZj3O1774eRAMG9B+3OREuh9bGEN1rCgD9WKQWgUog5QfbbglfqBkyisT7sSkwXgR 4kmNkYEI2oDrgJ8L4Nx9NB5XA2LMMQtxj0jzexribfRhy/0oSiz11IBLbby/BDhTJTrH pegn/HmS6Cgb/eyNc/hMmCBlblBG0B3YFYu38= Received: by 10.87.47.6 with SMTP id z6mr5878412fgj.13.1272711880830; Sat, 01 May 2010 04:04:40 -0700 (PDT) Received: from klevas (hst-17-80.splius.lt [77.79.17.80]) by mx.google.com with ESMTPS id 12sm1785848fgg.29.2010.05.01.04.04.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 May 2010 04:04:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-hackers@freebsd.org Date: Sat, 01 May 2010 14:04:38 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: =?utf-8?B?QW5kcml1cyBNb3JrxatuYXM=?= Message-ID: User-Agent: Opera Mail/10.10 (FreeBSD) Cc: freebsd-ports@freebsd.org Subject: GSoC: Making ports work with clang X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2010 11:04:53 -0000 Hi, I'm Andrius Mork=C5=ABnas from Lithuania. My Summer of Code proposal was= accepted this year and be working on my project, which is to make clang and ports= to be friendly with each other. My main goals are: * Create an easy way to set ports compiler to either clang or gcc (and n= o, CC=3Dclang is not a good way to do that). * Write a tool to detect common problems with individual ports not respe= cting environment variables like CC/CXX or doing other horrible things that= break compilation with clang. * Make Gnome, KDE, Xorg and other widely used things to work with clang.= I've been patching ports to work with clang since last October, so I kno= w my way around the ports tree by now. What's different in GSoC project, comp= ared to what I usually do is that I have specific goals to achieve now, rathe= r than fixing random things when I feel like it. More information will be available on FreeBSD wiki[1] later (some is alr= eady there). I've seen a lot of people interested in building ports with clang, espec= ially now, that rdivacky@ has finally announced ClangBSD testing[2]. However, ClangBSD and ports compiled with clang are two completely different thin= gs, so I don't recommend trying to use clang for ports just yet. I've even p= osted a mail to freebsd-current@ recently, asking people not to do it[3]. However I intend to write a howto in FreeBSD wiki sometime soon explaini= ng how to build ports with clang more safely, what to expect and what not t= o expect. It will also include some information for those who want to help= us with clang and/or ports, explaining what help we do or don't want. At so= me point during summer I'll probably ask people to start testing stuff, and= report problems, so stay tuned. If you have any questions, suggestions, or some other feedback, feel fre= e to mail me on or off list. [1] http://wiki.freebsd.org/SOC2010AndriusMorkunas [2] http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016648= .html [3] http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016990= .html -- = Andrius