From owner-freebsd-arm@FreeBSD.ORG Sat Sep 15 21:05:00 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F13961065670 for ; Sat, 15 Sep 2012 21:04:59 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id CEB0B8FC08 for ; Sat, 15 Sep 2012 21:04:59 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q8FL4qan096821; Sat, 15 Sep 2012 21:04:52 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 6d6qv5xsvuxaygb6cfpy2r6m66; Sat, 15 Sep 2012 21:04:52 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sat, 15 Sep 2012 14:04:52 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5053C7D1.2080308@gmail.com> To: KCasey42 X-Mailer: Apple Mail (2.1278) Cc: freebsd-arm@freebsd.org Subject: Re: Unable to build FreeBSD xdev tools for ARM on FreeBSD 10.0-CURRENT X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2012 21:05:00 -0000 I looked at this very briefly a while back. It looks like a great opportunity for someone interested in learning more about toolchain and library issues. Related: There's an active discussion on current@ about switching FreeBSD's default compiler to clang. Resolving these issues would be a big help in that effort. Cheers, Tim On Sep 15, 2012, at 9:00 AM, Warner Losh wrote: > I've never had this working for clang, only gcc. I've never had cross = building working for ARM. Perhaps we should fix this to force gcc until = the underlying issues can be fixed. Check to see that you don't have = WITH_CLANG_AS_CC defined, or CC=3Dclang. >=20 > Warner >=20 > On Sep 14, 2012, at 6:12 PM, KCasey42 wrote: >=20 >> Attempting to build the cross tools >> # cd /usr/src >> # make xdev XDEV=3Darm XDEV_ARCH=3Darm >>=20 >> on the following system >>=20 >> # uname -a >> FreeBSD xxx.xxx.xxx 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r240450: Thu = Sep 13 05:49:13 PDT 2012 = root@xxx.xxx.xxx:/usr/src/sys/amd64/compile/silver amd64 >>=20 >> using >>=20 >> # clang --version >> FreeBSD clang version 3.2 (trunk 162107) 20120817 >> Target: x86_64-unknown-freebsd10.0 >> Thread model: posix >>=20 >> produces the following error >>=20 >> clang -O -pipe -fpic -fvisibility=3Dhidden -DVISIBILITY_HIDDEN = -std=3Dgnu99 -Qunused-arguments -c = /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c -o = __sync_fetch_and_add_4.o >> In file included from = /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:6: >> /usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: error: = conflicting >> types for '__sync_fetch_and_add_4' >> NAME(volatile TYPE *ptr, TYPE value) >> ^ >> /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: note: = expanded from >> macro 'NAME' >> #define NAME __sync_fetch_and_add_4# clang --version >> FreeBSD clang version 3.2 (trunk 162107) 20120817 >> Target: x86_64-unknown-freebsd10.0 >> Thread model: posix >>=20 >> ^ >> /usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: note: >> '__sync_fetch_and_add_4' is a builtin with type 'int (volatile = int *, int, >> ...)' >> NAME(volatile TYPE *ptr, TYPE value) >> ^ >> /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: note: = expanded from >> macro 'NAME' >> #define NAME __sync_fetch_and_add_4 >> ^ >> In file included from = /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:6: >> /usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: error: = definition of >> builtin function '__sync_fetch_and_add_4' >> NAME(volatile TYPE *ptr, TYPE value) >> ^ >> /usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: note: = expanded from >> macro 'NAME' >> #define NAME __sync_fetch_and_add_4 >> ^ >> 2 errors generated. >> *** [__sync_fetch_and_add_4.o] Error code 1 >>=20 >> Stop in /usr/src/lib/libcompiler_rt. >> *** [lib/libcompiler_rt__PL] Error code 1 >>=20 >> Stop in /usr/src. >> *** [libraries] Error code 1 >>=20 >> Stop in /usr/src. >> *** [_xi-libraries] Error code 1 >>=20 >> Stop in /usr/src. >> *** [xdev] Error code 1 >>=20 >> Stop in /usr/src. >> _______________________________________________ >> 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" >=20 > _______________________________________________ > 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" >=20 >=20