From owner-freebsd-current@FreeBSD.ORG Sun Jan 25 17:59:05 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2F52541F; Sun, 25 Jan 2015 17:59:05 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3F71FD4; Sun, 25 Jan 2015 17:59:04 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id q1so4603808lam.2; Sun, 25 Jan 2015 09:59:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2/9dn2zZpe67hrn5NiHOSlGbBs79TWlZThrUGOtHtc8=; b=pN7eWASenGYIX38tBjyF10jATrjo2fWzDICxouJu9l35JjGedBafeRaw8O2uQFseeq 1Ji2Mo3qTkm/thjd3n2n6ibx/k/juObSg+5KepQzOu73Urfd+JuyD/VqhP/W1DHAos8b wkhUFWmgNkqQM4V5UpxLuGT7DNIYdWsqn+O6v2FXJk4bYYYVm1EiS/Go1yuPyeKMD2HZ yrd4oyhFVpu/M1BQiq9MQylsF83h9HpAEZ/fGjAA649HhQ1Xj1uQiMoFemNMStR4wkCH n8b+oN/d8YDzQ3lrfcjIFbY65Y7Ea3s4VqVWGuHn74iKubEBG1rMSmKjWrPX7/wvLahS 5+pg== X-Received: by 10.152.116.43 with SMTP id jt11mr11297406lab.69.1422208742734; Sun, 25 Jan 2015 09:59:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.12.6 with HTTP; Sun, 25 Jan 2015 09:58:32 -0800 (PST) In-Reply-To: References: From: Yue Chen Date: Sun, 25 Jan 2015 12:58:32 -0500 Message-ID: Subject: Re: How to get the source code of FreeBSD-Clang? To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 25 Jan 2015 17:59:05 -0000 Any patch available for LLVM 3.5 ? As I build using the command you provide, the DWARF section still has problems. On Sun, Jan 25, 2015 at 10:39 AM, Dimitry Andric wrote: > O 25 Jan 2015, at 06:16, Yue Chen wrote: > > > > When I use the original versions (even 3.4.1) of LLVM/Clang to compile > > FreeBSD kernel, it always has problems. > > > > Since I need to modify something in LLVM source and then build the > kernel, > > where can I get the FreeBSD-friendly Clang/LLVM source code? > > See the contrib/llvm/patches directory for the list of patches that you > need to apply. Not all of these are strictly needed to compile just a > kernel, but it is safest to just apply them all. > > For 3.4.1, you can use the set available here: > > https://svnweb.freebsd.org/base/stable/10/contrib/llvm/patches/ > > Alternatively, you can compile the kernel using: > > make buildkernel WERROR= MK_FORMAT_EXTENSIONS=no > > which should fix any errors that were emitted because of -Werror. > > -Dimitry > >