From owner-freebsd-current@FreeBSD.ORG  Thu May 31 15:46:02 2012
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 02C971065674
	for <freebsd-current@freebsd.org>; Thu, 31 May 2012 15:46:02 +0000 (UTC)
	(envelope-from freebsd-current@iaelu.net)
Received: from mail.iaelu.net (mail.iaelu.net [88.190.241.77])
	by mx1.freebsd.org (Postfix) with ESMTP id 8621F8FC1D
	for <freebsd-current@freebsd.org>; Thu, 31 May 2012 15:46:01 +0000 (UTC)
Received: from [172.30.0.150] ([172.30.0.150]) (authenticated bits=0)
	by mail.iaelu.net (8.14.5/8.14.5) with ESMTP id q4VFYYF9012196
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT)
	for <freebsd-current@freebsd.org>;
	Thu, 31 May 2012 17:34:35 +0200 (CEST)
	(envelope-from freebsd-current@iaelu.net)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iaelu.net; s=eienni;
	t=1338478475; bh=kdNGa29zG6EnDde0VGl9K0rXsOHEvt7p0TTfBrythq0=;
	h=From:Subject:Date:To;
	b=y4EKpxN5HGLH0W+6W1Foc7zZTUlM5kC7aqMl86FIl9D24rTRk0SgCQuoxy5vt7ZCg
	D6DUFMSb6/lN9/E0JVy5BosZgX259jJRLyEmyVv7COSEZyACOsGniwIeSJSj4EH7KQ
	ZSNaCzoG8q3R9MfMvAH2n8qHhzsDIU0nKNIN8ooo=
From: Guillaume Bibaut <freebsd-current@iaelu.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Thu, 31 May 2012 17:34:34 +0200
Message-Id: <B5D0F46B-2E89-412B-BDCC-41F11656BC49@iaelu.net>
To: freebsd-current@freebsd.org
Mime-Version: 1.0 (Apple Message framework v1278)
X-Mailer: Apple Mail (2.1278)
Subject: Cross dev tools for arm
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 31 May 2012 15:46:02 -0000

Hello,

I've been trying to build arm cross dev tools on an amd64 virtual =
machine with clang, and it doesn't seem to build.
The virtual machine is built on base/head svn tree with revision =
r236355.

Since I'm really new to the arm world, my mail might seem awkward and it =
might be completly normal that it doesn't build.

here is a tail of what I'm getting
(there are escaped string from clang)

/usr/src # make xdev XDEV=3Darm XDEV_ARCH=3Darm

...
=3D=3D=3D> lib/libcompiler_rt (obj,depend,all,install)
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:
=1B[1m/usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: =
=1B[0m=1B[0;1;31merror: =1B[0m=1B[1mconflicting
      types for '__sync_fetch_and_add_4'=1B[0m

NAME(volatile TYPE *ptr, TYPE value)
=1B[0;1;32m^
=1B[0m=1B[1m/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: =
=1B[0m=1B[0;1;30mnote: =1B[0mexpanded from
      macro 'NAME'=1B[0m
#define NAME            __sync_fetch_and_add_4
=1B[0;1;32m                        ^
=1B[0m=1B[1m/usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: =
=1B[0m=1B[0;1;30mnote: =1B[0m
      '__sync_fetch_and_add_4' is a builtin with type 'int (volatile int =
*, int,
      ...)'=1B[0m
NAME(volatile TYPE *ptr, TYPE value)
=1B[0;1;32m^
=1B[0m=1B[1m/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: =
=1B[0m=1B[0;1;30mnote: =1B[0mexpanded from
      macro 'NAME'=1B[0m
#define NAME            __sync_fetch_and_add_4
=1B[0;1;32m                        ^
=1B[0mIn file included from =
/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:6:
=1B[1m/usr/src/lib/libcompiler_rt/__sync_fetch_and_op_n.h:34:1: =
=1B[0m=1B[0;1;31merror: =1B[0m=1B[1mdefinition of
      builtin function '__sync_fetch_and_add_4'=1B[0m
NAME(volatile TYPE *ptr, TYPE value)
=1B[0;1;32m^
=1B[0m=1B[1m/usr/src/lib/libcompiler_rt/__sync_fetch_and_add_4.c:2:15: =
=1B[0m=1B[0;1;30mnote: =1B[0mexpanded from
      macro 'NAME'=1B[0m
#define NAME            __sync_fetch_and_add_4
=1B[0;1;32m                        ^
=1B[0m2 errors generated.
*** [__sync_fetch_and_add_4.o] Error code 1

Stop in /usr/src/lib/libcompiler_rt.
*** [lib/libcompiler_rt__PL] Error code 1

Stop in /usr/src.
*** [libraries] Error code 1

Stop in /usr/src.
*** [_xi-libraries] Error code 1

Stop in /usr/src.
*** [xdev] Error code 1

Stop in /usr/src.

Script done on Thu May 31 17:06:06 2012


Thanks for any answer you guys could give me, or not :)