From owner-freebsd-toolchain@FreeBSD.ORG Tue Jun 21 09:12:31 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 297D8106566B for ; Tue, 21 Jun 2011 09:12:31 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id A874F8FC08 for ; Tue, 21 Jun 2011 09:12:30 +0000 (UTC) Received: by wwg11 with SMTP id 11so41979wwg.1 for ; Tue, 21 Jun 2011 02:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=W7pTZPGK4UzeNNmlo7VS4KV6ZLZFmYUQ3EA4OH244EU=; b=wOb5YAm2sxrO4H5AMmNxJL42S2Z4oYuDQRgXZi2YUL/9WVNyptEc5Ki4F9jQCxT7uM 8CAM4aLLv2FGOKS1ZaJX5RvXED0FrBmuPzTQPkrSwQeDISEP+3cY48YBkCugwycbnHv/ MUG1ObQjF/s5kc98FXpJbEkYao3CidsFXAGuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=YzgSnOLhs0Oc1QYkBaNmtiMkN54pFYPLZ9zxCXJRJMetKXSZpiqCQmokwbe8XcHPdI q9k4/0WXA640t5XHDgakRpA2Gvct6CfI86bubb05AFowDe/A9P38X4Q+FHj7n8IEdWJw 8o2sS8lc6b0FBgz3Hm73RIOjYKe40T0+WPykY= Received: by 10.216.61.9 with SMTP id v9mr4567803wec.2.1308647549365; Tue, 21 Jun 2011 02:12:29 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id u64sm3349479weq.4.2011.06.21.02.12.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 02:12:28 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: Date: Tue, 21 Jun 2011 11:12:26 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <8E65FA9C-330B-4055-8959-75EE06E557E8@gmail.com> References: <15B76B64-D26E-420D-AE37-B52A694CDF98@gmail.com> To: Warner Losh X-Mailer: Apple Mail (2.1084) Cc: toolchain@FreeBSD.org Subject: Re: cross-compiling for arm with clang X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 09:12:31 -0000 On Jun 17, 2011, at 9:16 PM, Warner Losh wrote: >=20 > On Jun 17, 2011, at 12:38 PM, Damjan Marion wrote: >=20 >> Now, I'm back on my original problem, clang invokes /usr/bin/as which = is i386 AS instead of ARM version in obj tree. >=20 > That's a bogus assumption on the part of clang. At the very least, it = should be adding the magic gas flags to use the correct triple for the = platform. But if you did that, your next complaint would be that we = only build as for the native architecture and not anything else. >=20 >> How this works on other platforms (i.e. cross-compiling for amd64)? >=20 > How it normally works is that we build a compiler that invokes the = right as, ld, etc for the architecture in question. Clang is clearly = broken here in assuming that as can cope with anything other than native = assembler :) We normally either build gcc that knows where to find = these files. In the buildworld case, this is communicate with weird = paths and shell variables. With the whole 'xdev' series of targets = (which are instructive to look at), we build into a specific location = /usr/freebsd-xdev-arm/bin, etc). >=20 > It works by accident for i386 on amd64, I think. as treats the more = or less as the same. I submitted a patch[1] to clang mailer which invokes xxx-yyy-zzz-as/ld = based on -ccc-host-triple. Patch is copy of netbsd code which is already = in clang. For me it works well, even when I use clang on Darwin host, it calls = proper as/ld. # /opt/llvm/bin/clang -ccc-host-triple arm-unknown-freebsd = -mfloat-abi=3Dsoft test.c -o test -v -c clang version 3.0 (http://llvm.org/git/clang.git = 98138cdfdee05c0afbab2b209ce8cfe4a52474e1) Target: arm-unknown-freebsd Thread model: posix [snip] End of search list. "/opt/llvm/bin/arm-unknown-freebsd-as" -o test = /var/folders/kb/kbDaYaFqFQaCg3mXbTLH5U+16gE/-Tmp-/cc-RMHOwf.s Is this what we need to support cross-compiling freebsd with clang? Is there any other comment to this patch[1]? [1] = http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110620/043072= .html From owner-freebsd-toolchain@FreeBSD.ORG Tue Jun 21 17:09:53 2011 Return-Path: Delivered-To: toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A1E21065672 for ; Tue, 21 Jun 2011 17:09:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id BBA7A8FC20 for ; Tue, 21 Jun 2011 17:09:52 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5LH6RlR079380 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Tue, 21 Jun 2011 11:06:29 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <8E65FA9C-330B-4055-8959-75EE06E557E8@gmail.com> Date: Tue, 21 Jun 2011 11:06:17 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <15B76B64-D26E-420D-AE37-B52A694CDF98@gmail.com> <8E65FA9C-330B-4055-8959-75EE06E557E8@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Tue, 21 Jun 2011 11:06:29 -0600 (MDT) Cc: toolchain@FreeBSD.org Subject: Re: cross-compiling for arm with clang X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 17:09:53 -0000 On Jun 21, 2011, at 3:12 AM, Damjan Marion wrote: >=20 > On Jun 17, 2011, at 9:16 PM, Warner Losh wrote: >=20 >>=20 >> On Jun 17, 2011, at 12:38 PM, Damjan Marion wrote: >>=20 >>> Now, I'm back on my original problem, clang invokes /usr/bin/as = which is i386 AS instead of ARM version in obj tree. >>=20 >> That's a bogus assumption on the part of clang. At the very least, = it should be adding the magic gas flags to use the correct triple for = the platform. But if you did that, your next complaint would be that we = only build as for the native architecture and not anything else. >>=20 >>> How this works on other platforms (i.e. cross-compiling for amd64)? >>=20 >> How it normally works is that we build a compiler that invokes the = right as, ld, etc for the architecture in question. Clang is clearly = broken here in assuming that as can cope with anything other than native = assembler :) We normally either build gcc that knows where to find = these files. In the buildworld case, this is communicate with weird = paths and shell variables. With the whole 'xdev' series of targets = (which are instructive to look at), we build into a specific location = /usr/freebsd-xdev-arm/bin, etc). >>=20 >> It works by accident for i386 on amd64, I think. as treats the more = or less as the same. >=20 > I submitted a patch[1] to clang mailer which invokes xxx-yyy-zzz-as/ld = based on -ccc-host-triple. Patch is copy of netbsd code which is already = in clang. >=20 > For me it works well, even when I use clang on Darwin host, it calls = proper as/ld. >=20 > # /opt/llvm/bin/clang -ccc-host-triple arm-unknown-freebsd = -mfloat-abi=3Dsoft test.c -o test -v -c > clang version 3.0 (http://llvm.org/git/clang.git = 98138cdfdee05c0afbab2b209ce8cfe4a52474e1) > Target: arm-unknown-freebsd > Thread model: posix > [snip] > End of search list. > "/opt/llvm/bin/arm-unknown-freebsd-as" -o test = /var/folders/kb/kbDaYaFqFQaCg3mXbTLH5U+16gE/-Tmp-/cc-RMHOwf.s >=20 >=20 > Is this what we need to support cross-compiling freebsd with clang? As we do it today? No. Today we build the binaries as 'as' which are = part of the buildworld. These binaries aren't called = arm-unknown-freebsd-as, but instead 'as'. Do we want to switch? Maybe. There's a make xdev target that installs both the = /usr/arm-freebsd/usr/bin/as type files as well as symbolic links in = /usr/local/bin/arm-freebsd-as. But that target isn't part of = buildworld. It has been tested recently (it was broken for a while in = 8, and I'm not sure I've merged the patches over yet). However, it = doesn't include the extra bogus 'unknown' which if you were to have = included it breaks many of the autoconf scripts that I ran into when I = did this patch. Also, I install things as = /usr/local/bin/arm-freebsd9-as as well, since that's what we needed for = gcc compatibility. I suppose we could include a unknown thing. However, you'd need to install symlinks to make this work in a = build-world setting. > Is there any other comment to this patch[1]? >=20 >=20 > [1] = http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110620/043072= .html Not enough of a llvm guy to know if this patch is good or bad. Warner From owner-freebsd-toolchain@FreeBSD.ORG Tue Jun 21 21:31:49 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B9BF10656E4 for ; Tue, 21 Jun 2011 21:31:49 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9B6468FC13 for ; Tue, 21 Jun 2011 21:31:48 +0000 (UTC) Received: by wwe6 with SMTP id 6so194686wwe.31 for ; Tue, 21 Jun 2011 14:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=2j97zLGtj+9+Vc3G6f57duNHVlZvBU963z/asmUpdKw=; b=eKPhE/0Xu/W4dVE/O4RlTgkx2HGx66YfjqKC1sWuyePh8LNaVeFwy0me4yXnUO++ZN YlAfTC1Hk5jufiK+eqrDo03xmZt1OWH9T76kQhgJ21JpGgDo9UDLf5jD/o7xA6av5r6y o2ADriT9uN2sUsoIue366JLO6wmwW+/TluVNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=Q7w7Jy+UOiGxpKEXkGn8soJlt2NQa7UX1snkWMptJo8JbGkjmRRQKCoIZT8xjyaHIj 054eoCPuIM9qDV4ZUt7skwysWLL7vqjLsrPDXhHSMFFUO/VrS4aN21te0Dh/5HGWW4jY CPJOwif3OgBZ8tj+KuOt0xE19piJcFquHoYxQ= Received: by 10.227.177.72 with SMTP id bh8mr254354wbb.67.1308691907438; Tue, 21 Jun 2011 14:31:47 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id et5sm4322256wbb.16.2011.06.21.14.31.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 14:31:46 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: Date: Tue, 21 Jun 2011 23:31:43 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <932DB8CA-22DA-495F-89AC-F547146780B6@gmail.com> References: <15B76B64-D26E-420D-AE37-B52A694CDF98@gmail.com> <8E65FA9C-330B-4055-8959-75EE06E557E8@gmail.com> To: Warner Losh X-Mailer: Apple Mail (2.1084) Cc: toolchain@FreeBSD.org Subject: Re: cross-compiling for arm with clang X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 21:31:49 -0000 On Jun 21, 2011, at 7:06 PM, Warner Losh wrote: >=20 > On Jun 21, 2011, at 3:12 AM, Damjan Marion wrote: >>=20 >> On Jun 17, 2011, at 9:16 PM, Warner Losh wrote: >>>=20 >>> How it normally works is that we build a compiler that invokes the = right as, ld, etc for the architecture in question. Clang is clearly = broken here in assuming that as can cope with anything other than native = assembler :) We normally either build gcc that knows where to find = these files. In the buildworld case, this is communicate with weird = paths and shell variables. With the whole 'xdev' series of targets = (which are instructive to look at), we build into a specific location = /usr/freebsd-xdev-arm/bin, etc). >>>=20 >>> It works by accident for i386 on amd64, I think. as treats the more = or less as the same. >>=20 >> I submitted a patch[1] to clang mailer which invokes = xxx-yyy-zzz-as/ld based on -ccc-host-triple. Patch is copy of netbsd = code which is already in clang. >>=20 >> For me it works well, even when I use clang on Darwin host, it calls = proper as/ld. >>=20 >> # /opt/llvm/bin/clang -ccc-host-triple arm-unknown-freebsd = -mfloat-abi=3Dsoft test.c -o test -v -c >> clang version 3.0 (http://llvm.org/git/clang.git = 98138cdfdee05c0afbab2b209ce8cfe4a52474e1) >> Target: arm-unknown-freebsd >> Thread model: posix >> [snip] >> End of search list. >> "/opt/llvm/bin/arm-unknown-freebsd-as" -o test = /var/folders/kb/kbDaYaFqFQaCg3mXbTLH5U+16gE/-Tmp-/cc-RMHOwf.s >>=20 >>=20 >> Is this what we need to support cross-compiling freebsd with clang? >=20 > As we do it today? No. Today we build the binaries as 'as' which are = part of the buildworld. These binaries aren't called = arm-unknown-freebsd-as, but instead 'as'. >=20 > Do we want to switch? Maybe. Seems that clang will first try to run as/ld which is in the same = directory like clang. That is exactly what we have in /usr/obj/.../bin = so seems that buildworld should work out of the box. Problem with ARM is that clang is not build as part of cross-tools, so = clang from /usr/bin is called instead which also means that as/ld from = /usr/bin are used. --- share/mk/bsd.own.mk (revision 223366) +++ share/mk/bsd.own.mk (working copy) @@ -415,7 +415,7 @@ __T=3D${MACHINE_ARCH} .endif # Clang is only for x86 and 32-bit powerpc right now, by default. -.if ${__T} =3D=3D "amd64" || ${__T} =3D=3D "i386" || ${__T} =3D=3D = "powerpc" +.if ${__T} =3D=3D "amd64" || ${__T} =3D=3D "i386" || ${__T} =3D=3D = "powerpc" || ${__T} =3D=3D "arm" __DEFAULT_YES_OPTIONS+=3DCLANG .else Unfortunately this doesn't mean that cross-compiling works fine now for = ARM. It fails on building lib/libcompiler_rt. Here is output if anybody have idea how to fix it: = http://pastebin.com/Ly2jARjd Damjan From owner-freebsd-toolchain@FreeBSD.ORG Tue Jun 21 21:58:42 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E681D1065747 for ; Tue, 21 Jun 2011 21:58:41 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 97C218FC14 for ; Tue, 21 Jun 2011 21:58:41 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5LLsI0j082440 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Tue, 21 Jun 2011 15:54:19 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <932DB8CA-22DA-495F-89AC-F547146780B6@gmail.com> Date: Tue, 21 Jun 2011 15:54:09 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <15B76B64-D26E-420D-AE37-B52A694CDF98@gmail.com> <8E65FA9C-330B-4055-8959-75EE06E557E8@gmail.com> <932DB8CA-22DA-495F-89AC-F547146780B6@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Tue, 21 Jun 2011 15:54:20 -0600 (MDT) Cc: toolchain@freebsd.org Subject: Re: cross-compiling for arm with clang X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 21:58:42 -0000 On Jun 21, 2011, at 3:31 PM, Damjan Marion wrote: >=20 > On Jun 21, 2011, at 7:06 PM, Warner Losh wrote: >>=20 >> On Jun 21, 2011, at 3:12 AM, Damjan Marion wrote: >>>=20 >>> On Jun 17, 2011, at 9:16 PM, Warner Losh wrote: >>>>=20 >>>> How it normally works is that we build a compiler that invokes the = right as, ld, etc for the architecture in question. Clang is clearly = broken here in assuming that as can cope with anything other than native = assembler :) We normally either build gcc that knows where to find = these files. In the buildworld case, this is communicate with weird = paths and shell variables. With the whole 'xdev' series of targets = (which are instructive to look at), we build into a specific location = /usr/freebsd-xdev-arm/bin, etc). >>>>=20 >>>> It works by accident for i386 on amd64, I think. as treats the = more or less as the same. >>>=20 >>> I submitted a patch[1] to clang mailer which invokes = xxx-yyy-zzz-as/ld based on -ccc-host-triple. Patch is copy of netbsd = code which is already in clang. >>>=20 >>> For me it works well, even when I use clang on Darwin host, it calls = proper as/ld. >>>=20 >>> # /opt/llvm/bin/clang -ccc-host-triple arm-unknown-freebsd = -mfloat-abi=3Dsoft test.c -o test -v -c >>> clang version 3.0 (http://llvm.org/git/clang.git = 98138cdfdee05c0afbab2b209ce8cfe4a52474e1) >>> Target: arm-unknown-freebsd >>> Thread model: posix >>> [snip] >>> End of search list. >>> "/opt/llvm/bin/arm-unknown-freebsd-as" -o test = /var/folders/kb/kbDaYaFqFQaCg3mXbTLH5U+16gE/-Tmp-/cc-RMHOwf.s >>>=20 >>>=20 >>> Is this what we need to support cross-compiling freebsd with clang? >>=20 >> As we do it today? No. Today we build the binaries as 'as' which = are part of the buildworld. These binaries aren't called = arm-unknown-freebsd-as, but instead 'as'. >>=20 >> Do we want to switch? Maybe. >=20 > Seems that clang will first try to run as/ld which is in the same = directory like clang. That is exactly what we have in /usr/obj/.../bin = so seems that buildworld should work out of the box. >=20 > Problem with ARM is that clang is not build as part of cross-tools, so = clang from /usr/bin is called instead which also means that as/ld from = /usr/bin are used. >=20 > --- share/mk/bsd.own.mk (revision 223366) > +++ share/mk/bsd.own.mk (working copy) > @@ -415,7 +415,7 @@ > __T=3D${MACHINE_ARCH} > .endif > # Clang is only for x86 and 32-bit powerpc right now, by default. > -.if ${__T} =3D=3D "amd64" || ${__T} =3D=3D "i386" || ${__T} =3D=3D = "powerpc" > +.if ${__T} =3D=3D "amd64" || ${__T} =3D=3D "i386" || ${__T} =3D=3D = "powerpc" || ${__T} =3D=3D "arm" > __DEFAULT_YES_OPTIONS+=3DCLANG > .else Well, you'd need to add to the comment too :) I'm not sure it is time to make this the default. Adding -DWITH_CLANG = to the cross build would also accomplish the same thing. The reason we = don't yet build arm is that it hasn't been very well tested... > Unfortunately this doesn't mean that cross-compiling works fine now = for ARM. It fails on building lib/libcompiler_rt. > Here is output if anybody have idea how to fix it: = http://pastebin.com/Ly2jARjd Not sure how to fix that. Warner= From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 13:09:30 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A13AE1065672 for ; Wed, 22 Jun 2011 13:09:30 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 369628FC15 for ; Wed, 22 Jun 2011 13:09:30 +0000 (UTC) Received: by wyb33 with SMTP id 33so782985wyb.13 for ; Wed, 22 Jun 2011 06:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=HBzIMM1BN5hCU98ooBK75pdXxTjFd/r94ZnM6VkxFJM=; b=PMY7hDOfLjRlwoOn+g2TSqft1g6yUjbawZIgtZMbEAFXQ8E2sv2ZkGu4ONyV4OU122 EjEg8HCxOInPkwAuwdVRZzEUGAJU29dF4dyPEZdZoae6lplY0TBZW/052/8LZs7HFhRC xvi2+0mgPIBlKpQ0PnFYjcRZ6BdIbaEqdjQ/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=dE6PHfu3hG/ikqfu+m5D42LA0t2C1X29QzvCrHBKcRGunH0bnb6/vnAI6YITGrBFud LoqyDKzYYyzOK/QonvyBA108lPtyTSPxwAD58qoP8CokGQM96wrYP/H66Riw/q7KGCZU YA1yCI4HFCo8PKZGjExNMtNcz2pmoc4Rs0qXI= Received: by 10.227.209.146 with SMTP id gg18mr732531wbb.71.1308748169216; Wed, 22 Jun 2011 06:09:29 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id gf6sm430268wbb.58.2011.06.22.06.09.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 06:09:28 -0700 (PDT) From: Damjan Marion Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Jun 2011 15:09:26 +0200 Message-Id: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> To: toolchain@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Cc: Subject: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 13:09:30 -0000 Hi, On my ongoing effort to support clang cross-compiling of world for ARM = architecture I hit one weird issue: Problem is that old ARM Architecture Reference Manual (ARMv5) specifies = mnemonics "mov r0, r0, rrx"=20 while new ARM ARM defines same instruction as "rrx r0,r0".=20 Both have same opcode: 0xe1a00060. Problem is that clang currently uses GAS to assemble files and GAS = version we have (2.17.50) doesn't have a clue about new mnemonics "rrx = r0,r0". I see 3 options to fix this: 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, = rrx" instead of "rrx r0,r0") 2. Maintain same patch for freebsd only 3. patch binutils to support this new mnemonics Any thoughts how to proceed? Thanks, Damjan From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 15:42:45 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECAD71065676 for ; Wed, 22 Jun 2011 15:42:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A9BF28FC08 for ; Wed, 22 Jun 2011 15:42:45 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5MFdHL6092990 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Wed, 22 Jun 2011 09:39:19 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> Date: Wed, 22 Jun 2011 09:39:08 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Wed, 22 Jun 2011 09:39:19 -0600 (MDT) Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 15:42:46 -0000 I'd be inclined to include a small patch to FreeBSD's binutils to = implement this. You might be able to snag it from a newer version of = binutils if you can track down the author of that code and ask if you = can include it in a GPLv2 version of binutils. Warner On Jun 22, 2011, at 7:09 AM, Damjan Marion wrote: >=20 > Hi, >=20 > On my ongoing effort to support clang cross-compiling of world for ARM = architecture I hit one weird issue: >=20 > Problem is that old ARM Architecture Reference Manual (ARMv5) = specifies mnemonics "mov r0, r0, rrx"=20 > while new ARM ARM defines same instruction as "rrx r0,r0".=20 >=20 > Both have same opcode: 0xe1a00060. >=20 > Problem is that clang currently uses GAS to assemble files and GAS = version we have (2.17.50) doesn't have a clue about new mnemonics "rrx = r0,r0". >=20 > I see 3 options to fix this: >=20 > 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, = rrx" instead of "rrx r0,r0") > 2. Maintain same patch for freebsd only > 3. patch binutils to support this new mnemonics >=20 > Any thoughts how to proceed? >=20 > Thanks, >=20 > Damjan >=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to = "freebsd-toolchain-unsubscribe@freebsd.org" >=20 >=20 From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 17:10:26 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 942FE1065675 for ; Wed, 22 Jun 2011 17:10:26 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 278398FC24 for ; Wed, 22 Jun 2011 17:10:25 +0000 (UTC) Received: by ewy1 with SMTP id 1so472460ewy.13 for ; Wed, 22 Jun 2011 10:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=z5bTfbMOMHPUFntc3imnaIzpvboFU3+7A1Mk7qCFHPw=; b=fTfaJqD7cnjObFHk/x84/iB+Za/EmpCZnhjRPHi6ls6BY+1JarQeHQjCTQRbGKzG4+ D6OzBJKePZsHNCfSZzGNWqM+Wuqc2Ax+KSdGs6IaaGpA2OAskQDlPB1bbSWhz3lJDEtb pHVhaber0n3ZfXQiNb3j/j5xDkwz9FMmGpRWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TQZnvFnZMzcG6ngKhwNHG3HRbSUoFJwYBqMlROCDjepl0FuB4w32OSWEnZGWK1keAb FepYwdaONvFK9QB+lrfEe3SAzzugipOdqXHglwUQaA++XOcUxECin+2LL8+roSsLqH1R 9IVrF1LR8w1qE5jyzPUp51NBNikWsiYY+M9Jw= MIME-Version: 1.0 Received: by 10.14.34.88 with SMTP id r64mr734829eea.77.1308760927856; Wed, 22 Jun 2011 09:42:07 -0700 (PDT) Received: by 10.213.35.17 with HTTP; Wed, 22 Jun 2011 09:42:07 -0700 (PDT) In-Reply-To: <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> Date: Wed, 22 Jun 2011 12:42:07 -0400 Message-ID: From: Ryan Stone To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 17:10:26 -0000 On Wed, Jun 22, 2011 at 11:39 AM, Warner Losh wrote: > I'd be inclined to include a small patch to FreeBSD's binutils to impleme= nt this. =A0You might be able to snag it from a newer version of binutils i= f you can track down the author of that code and ask if you can include it = in a GPLv2 version of binutils. Wouldn't the FSF be the copyright owner? I thought that they required copyright assignment for contributions? From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 17:36:36 2011 Return-Path: Delivered-To: toolchain@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FFF71065672 for ; Wed, 22 Jun 2011 17:36:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C96C58FC08 for ; Wed, 22 Jun 2011 17:36:35 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5MHUWEQ094157 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Wed, 22 Jun 2011 11:30:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Wed, 22 Jun 2011 11:30:19 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> To: Ryan Stone X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Wed, 22 Jun 2011 11:30:34 -0600 (MDT) Cc: toolchain@FreeBSD.ORG Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 17:36:36 -0000 On Jun 22, 2011, at 10:42 AM, Ryan Stone wrote: > On Wed, Jun 22, 2011 at 11:39 AM, Warner Losh wrote: >> I'd be inclined to include a small patch to FreeBSD's binutils to = implement this. You might be able to snag it from a newer version of = binutils if you can track down the author of that code and ask if you = can include it in a GPLv2 version of binutils. >=20 > Wouldn't the FSF be the copyright owner? I thought that they required > copyright assignment for contributions? Not necessarily. Only large things need to be assigned. Simple patches = not so much... Warner From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 22 17:50:11 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DC80106566C for ; Wed, 22 Jun 2011 17:50:11 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id EE8398FC18 for ; Wed, 22 Jun 2011 17:50:10 +0000 (UTC) Received: by fxm11 with SMTP id 11so1189686fxm.13 for ; Wed, 22 Jun 2011 10:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=1otnIeUIqycbwaJp218v3611sgErkwk7uY0xKQZylMo=; b=HUzj7R9shzT57uJ3LfBXXg28WhPUQCd9zlIm0uQuVyWjfGPCpdaO2FeFyc4utEiX7l SyaNV+Ni25iSy5A0/IEKq4E0j3dLA+G9r3n78fIRRHNCbnRfkawamNwtXKKO9bE/1ibz bmewTqlaKASWXbJb1dkmfFefrdvNb04iQ3xso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=OAVy/226Czu03XJpBEbYo8GABuuKajpMVHeFuv2605C49HKjCoMWaoNeiIa6EstKzv T15GsxTbKfixZX/me4tXcCrBO5JV+CZM8wvK4E0KWWV1/0lsRGYiJOLQwidGtVARs01L 4R+O8dV0+uiasDrEuWFBSA7kCQilFId+qXgoI= Received: by 10.223.87.69 with SMTP id v5mr90625fal.147.1308765009805; Wed, 22 Jun 2011 10:50:09 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id e16sm465047fak.41.2011.06.22.10.50.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2011 10:50:08 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: Date: Wed, 22 Jun 2011 19:50:05 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <67E75E6B-41EA-4FD5-B22A-29997CF6CF1C@gmail.com> References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> To: Warner Losh X-Mailer: Apple Mail (2.1084) Cc: toolchain@FreeBSD.ORG, Ryan Stone Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 17:50:11 -0000 On Jun 22, 2011, at 7:30 PM, Warner Losh wrote: >=20 > On Jun 22, 2011, at 10:42 AM, Ryan Stone wrote: >=20 >> On Wed, Jun 22, 2011 at 11:39 AM, Warner Losh wrote: >>> I'd be inclined to include a small patch to FreeBSD's binutils to = implement this. You might be able to snag it from a newer version of = binutils if you can track down the author of that code and ask if you = can include it in a GPLv2 version of binutils. >>=20 >> Wouldn't the FSF be the copyright owner? I thought that they = required >> copyright assignment for contributions? >=20 > Not necessarily. Only large things need to be assigned. Simple = patches not so much... Does this mean that we can import ARMv7 support patch which is published = before upgrade to GPLv3 ? http://sourceware.org/ml/binutils/2006-02/msg00305.html From owner-freebsd-toolchain@FreeBSD.ORG Thu Jun 23 13:30:40 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60E931065673 for ; Thu, 23 Jun 2011 13:30:40 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D85FF8FC17 for ; Thu, 23 Jun 2011 13:30:39 +0000 (UTC) Received: by fxm11 with SMTP id 11so1901464fxm.13 for ; Thu, 23 Jun 2011 06:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=E4/mNYFljWySYJCMxnASWPsPa0zvfxw9XplTdmEJi5Q=; b=g3RuOT0uOlKeoOH98pRWNX5+W1V8UtKlstD/7E6WEXJIhmn7O71mQYUUHimuqU+s+2 QBREHiHqHmF0OLdIORFiplMa+fEYdprUASdL3bpbTg8ut/K3TO90pajo6D5N14W5ZfEh Wo7s4yK6PGkExbvHuKZfaELt0Cat40awyKmQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=s6EyKzmfSKu9FsGUWPicGPDLm77yAvgrVy7mfwBxUrfwZznvILmFwk5crB3Bxe7YzY xTkewr7WVA0jVdBFZixUEtPwg1exHZL5HyDa8RAc6KLd6z0pGpUeal8EI71ftfy7314I VBpq5rFjBzzF1mIbc6s6BDxK+5ZfEMyVezFRg= Received: by 10.223.161.194 with SMTP id s2mr2651531fax.143.1308835838675; Thu, 23 Jun 2011 06:30:38 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id w15sm989815faj.23.2011.06.23.06.30.36 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Jun 2011 06:30:37 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> Date: Thu, 23 Jun 2011 15:30:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <932AAF33-57B3-4E12-AA9B-4AD457377F1D@gmail.com> References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> <744CFC2C-0F17-4AED-A54A-FC93EB885FAD@bsdimp.com> To: Warner Losh X-Mailer: Apple Mail (2.1084) Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 13:30:40 -0000 On Jun 22, 2011, at 5:39 PM, Warner Losh wrote: > I'd be inclined to include a small patch to FreeBSD's binutils to = implement this. You might be able to snag it from a newer version of = binutils if you can track down the author of that code and ask if you = can include it in a GPLv2 version of binutils. I just realized that apple is developing own assembler which is actually = based on very old binutils 1.38 from 1988. It is licensed under GPLv2. I can see some arm related stuff there which = I miss in our assembler. http://opensource.apple.com/tarballs/cctools/ Can we use parts from Apple AS and merge it with our binutils? Damjan From owner-freebsd-toolchain@FreeBSD.ORG Sat Jun 25 15:25:38 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 564EA1065673 for ; Sat, 25 Jun 2011 15:25:38 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id D97728FC0C for ; Sat, 25 Jun 2011 15:25:37 +0000 (UTC) Received: by fxe6 with SMTP id 6so555275fxe.17 for ; Sat, 25 Jun 2011 08:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=CuCB64d3VOmgtiswA8qQ0TOP83LfWeMKXo5dQM9Z5a4=; b=O7PPYpn4ebLdvy5OV6iv/BnBlVh9efb3ONx4PbxvEVlBLMIqvGm4Z/VtpfA2pOpUvp BKzmycfzTrUZD9+1IvCKuO55IAzzv7VUJ/43xggNFkgkIUFK6eoHm8bt4yo83G9qao0L nj4J3rswr9qK9mnMM3zNQGvGKQftj2au8sUjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=igsMVFBL3RqmQR+PTxucdQAvrHfWDNDqHOlojO0qPRxjGWBRgysb5XBJN2HQ36s046 29gNALvTQ9gINIGxeq5J4dJmXSKFPSsz10KBahaBLkLwReyUUTjbo2oFrauj+Cm/Zm+E HRjyCjKXMF/4g1LkZaZ9LCEZdGuAW3T/zTPZY= Received: by 10.223.67.194 with SMTP id s2mr6179494fai.124.1309015536856; Sat, 25 Jun 2011 08:25:36 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-79-155.zg3.cable.xnet.hr [109.60.79.155]) by mx.google.com with ESMTPS id n13sm2322262fab.46.2011.06.25.08.25.33 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Jun 2011 08:25:35 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: Date: Sat, 25 Jun 2011 17:25:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> To: Gerald Pfeifer X-Mailer: Apple Mail (2.1084) Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 15:25:38 -0000 On Jun 25, 2011, at 5:16 PM, Gerald Pfeifer wrote: > On Wed, 22 Jun 2011, Damjan Marion wrote: >> I see 3 options to fix this: >>=20 >> 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, = rrx" instead of "rrx r0,r0") >> 2. Maintain same patch for freebsd only >> 3. patch binutils to support this new mnemonics >=20 > 4. Finally upgrade to a modern version of binutils. >=20 > Yes, I know that is GPLv3. Been there, done that, and it is not a = problem=20 > at all, just FUD. IBM, SAP, Oracle, and all the others are not = concerned > about GPLv3 in the toolchain, nor should we. Except for FUD. Too late. Fix is already in SVN (r223484) :) Damjan= From owner-freebsd-toolchain@FreeBSD.ORG Sat Jun 25 15:42:43 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D406D10657D5 for ; Sat, 25 Jun 2011 15:42:43 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.freebsd.org (Postfix) with SMTP id 794418FC0C for ; Sat, 25 Jun 2011 15:42:43 +0000 (UTC) Received: (qmail 23143 invoked from network); 25 Jun 2011 15:16:01 -0000 Received: from 200.32.196.141 (HELO ?10.11.127.239?) (200.32.196.141) by relay00.pair.com with SMTP; 25 Jun 2011 15:16:01 -0000 X-pair-Authenticated: 200.32.196.141 Date: Sat, 25 Jun 2011 09:16:03 -0600 (CST) From: Gerald Pfeifer To: Damjan Marion In-Reply-To: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> Message-ID: References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 15:42:43 -0000 On Wed, 22 Jun 2011, Damjan Marion wrote: > I see 3 options to fix this: > > 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, rrx" instead of "rrx r0,r0") > 2. Maintain same patch for freebsd only > 3. patch binutils to support this new mnemonics 4. Finally upgrade to a modern version of binutils. Yes, I know that is GPLv3. Been there, done that, and it is not a problem at all, just FUD. IBM, SAP, Oracle, and all the others are not concerned about GPLv3 in the toolchain, nor should we. Except for FUD. Gerald From owner-freebsd-toolchain@FreeBSD.ORG Sat Jun 25 16:40:11 2011 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F34131065678 for ; Sat, 25 Jun 2011 16:40:11 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B133F8FC12 for ; Sat, 25 Jun 2011 16:40:11 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5PGaK7A033632 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Sat, 25 Jun 2011 10:36:20 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sat, 25 Jun 2011 10:36:02 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <12B50B3F-88E0-430D-AB67-FBC1BC4373B1@bsdimp.com> References: <0C35FE0F-3301-44C6-AC40-233F6C446EBC@gmail.com> To: Gerald Pfeifer X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Sat, 25 Jun 2011 10:36:20 -0600 (MDT) Cc: toolchain@freebsd.org Subject: Re: ARM issue with old binutils X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 16:40:12 -0000 On Jun 25, 2011, at 9:16 AM, Gerald Pfeifer wrote: > On Wed, 22 Jun 2011, Damjan Marion wrote: >> I see 3 options to fix this: >>=20 >> 1. Ask clang folks to patch llvm to use old mnemonics ("mov r0, r0, = rrx" instead of "rrx r0,r0") >> 2. Maintain same patch for freebsd only >> 3. patch binutils to support this new mnemonics >=20 > 4. Finally upgrade to a modern version of binutils. >=20 > Yes, I know that is GPLv3. Been there, done that, and it is not a = problem=20 > at all, just FUD. IBM, SAP, Oracle, and all the others are not = concerned > about GPLv3 in the toolchain, nor should we. Except for FUD. Except there *ARE* FreeBSD users that have said that it is a real = problem for them. It isn't FUD. The project has adopted the policy in = reaction to large commercial FreeBSD users that have very restrictive = company policies driven by their legal department's evaluation of GPLv3. Warner