Date: Thu, 21 Apr 2011 12:37:34 -0500 From: Mark Tinguely <marktinguely@gmail.com> To: Damjan Marion <damjan.marion@gmail.com> Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org Subject: Re: kernel cross-compiled with clang for ARM architecture Message-ID: <4DB06B5E.3050707@gmail.com> In-Reply-To: <77B4B008-D5A6-48A7-BAF9-E5084BF098DA@gmail.com> References: <77B4B008-D5A6-48A7-BAF9-E5084BF098DA@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/21/2011 12:11 PM, Damjan Marion wrote: > Hi, > > I managed to cross-compile latest -CURRENT + Ben's patches with clang and compiled kernel boots on pandaboard. > Pandaboard support is still work in progress, but clang compiled kernel boots up to the same point like gcc version. > > I used latest clang/llvm from svn with following: > > CC="/opt/llvm/bin/clang -mcpu=cortex-a9 -ccc-host-triple arm-unknown-freebsd -mfloat-abi=soft" > WERROR="" > > This works both on FreeBSD and Mac OS X host. > > Issues: > - integrated assembler for ARM doesn't work properly ( I filled bugs [1] and [2]) > - gnu as works ok but newer version of binutils is needed which supports ARMv7 instructions > - i had to patch [3] clang to invoke cross linker properly (thanks to guys form #freebsd-clang ) > > > Regards, > > Damjan > > [1] http://llvm.org/bugs/show_bug.cgi?id=9760 > [2] http://llvm.org/bugs/show_bug.cgi?id=9762 > [3] http://llvm.org/bugs/show_bug.cgi?id=9777 > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > Good job. I made a binutils 2.19 tar file that drops right into the source tree. It has many of the v7 features. http://www.tinguelys.info/mark/freebsd/binutils2.19.tgz LLVM is suppose to have utilities as well, which should be the long term solution. --Mark Tinguely
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DB06B5E.3050707>