Date: Thu, 21 Apr 2011 19:11:16 +0200 From: Damjan Marion <damjan.marion@gmail.com> To: freebsd-toolchain@freebsd.org, freebsd-arm@freebsd.org Cc: Ben Gray <ben.r.gray@gmail.com> Subject: kernel cross-compiled with clang for ARM architecture Message-ID: <77B4B008-D5A6-48A7-BAF9-E5084BF098DA@gmail.com>
next in thread | raw e-mail | index | archive | help
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=3D"/opt/llvm/bin/clang -mcpu=3Dcortex-a9 -ccc-host-triple = arm-unknown-freebsd -mfloat-abi=3Dsoft" WERROR=3D"" 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=3D9760 [2] http://llvm.org/bugs/show_bug.cgi?id=3D9762 [3] http://llvm.org/bugs/show_bug.cgi?id=3D9777
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77B4B008-D5A6-48A7-BAF9-E5084BF098DA>