Date: Fri, 24 Sep 2010 20:13:19 -0500 From: Mark Tinguely <marktinguely@gmail.com> To: current@freebsd.org Subject: Re: Clang cross builds world Message-ID: <4C9D4CAF.3070508@gmail.com> In-Reply-To: <4C9B6804.3070102@FreeBSD.org> References: <4C99A53E.7060707@FreeBSD.org> <AANLkTi=_ZpYZ7XwHJOYuRMOFCGebRwD=YEYORKnMmC0s@mail.gmail.com> <4C9A32B8.60204@kkip.pl> <4C9A6A38.4080307@freebsd.org> <4C9A7203.8010701@kkip.pl> <20100923065134.GA31455@freebsd.org> <4C9B3207.2070302@kkip.pl> <4C9B383A.6080008@FreeBSD.org> <4C9B38E2.7010403@kkip.pl> <4C9B6804.3070102@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I was inspired by the clang build world topic to try a cross build world of ARM from a i386 computer. I use the build command: make TARGET_ARCH=arm TARGET_CPUTYPE=xscale buildworld (I tried an "TARGET_CPUTYPE=cortex-a8" once also, I got the same errors below). /etc/src.conf is taken from the FreeBSD clang web page,. /etc/make.conf has perl version strings. The cross tools build stage apparently makes an i386 compiler: /usr/obj/arm.arm/usr/src/tmp/usr/bin/clang -### FreeBSD clang version 2.8 (branches/release_28 114020) 20100917 Target: i386-undermydesk-freebsd9.0 Thread model: posix When the library build stage begins, the assembler complains about the unknown "--32" option from clang. I know the "--32" options is a i386 target add-on option. Removing "--32" from the command line with a script shim, and sure enough clang is generating i386 assembly code. I know the clang and ARM is not tested nor supported. I am just looking for some clang cross architecture compiling wisdom. --Mark Tinguely
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C9D4CAF.3070508>