Date: Sun, 25 Jan 2015 12:58:32 -0500 From: Yue Chen <ycyc321@gmail.com> To: Dimitry Andric <dim@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: How to get the source code of FreeBSD-Clang? Message-ID: <CAKtBrB4U9j6nY7awp84bzumTm=QfhYRpz8uuhHDFQ5xHU3jT_Q@mail.gmail.com> In-Reply-To: <A3CBF97B-689F-44B8-A0D8-4405C455BC18@FreeBSD.org> References: <CAKtBrB7A2yPFF2iby7h7CmDcrR=dUQpOTFXV9gGypwGWVsUp1g@mail.gmail.com> <A3CBF97B-689F-44B8-A0D8-4405C455BC18@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dim@freebsd.org> wrote: > O 25 Jan 2015, at 06:16, Yue Chen <ycyc321@gmail.com> 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKtBrB4U9j6nY7awp84bzumTm=QfhYRpz8uuhHDFQ5xHU3jT_Q>