From owner-freebsd-arm@FreeBSD.ORG Sun Aug 4 23:58:35 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 914972AC; Sun, 4 Aug 2013 23:58:35 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 47FFA2F0E; Sun, 4 Aug 2013 23:58:34 +0000 (UTC) Received: from steiner.cc.vt.edu (steiner.cc.vt.edu [198.82.163.51]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id r74Nvwwr030059; Sun, 4 Aug 2013 19:57:58 -0400 Received: from auth3.smtp.vt.edu (auth3.smtp.vt.edu [198.82.161.152]) by steiner.cc.vt.edu (MOS 4.3.3-GA) with ESMTP id YJN83175; Sun, 4 Aug 2013 19:57:57 -0400 X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu 0 none X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu 0 none Received: from gromit.chumby.lan (c-98-249-9-133.hsd1.va.comcast.net [98.249.9.133]) (authenticated bits=0) by auth3.smtp.vt.edu (8.13.8/8.13.8) with ESMTP id r74Nvtpf031545 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 4 Aug 2013 19:57:56 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: RFC: sysutils/u-boot-beaglebone-eabi From: Paul Mather In-Reply-To: Date: Sun, 4 Aug 2013 19:57:55 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <2B87571B-10D1-43CF-B6AB-0982EAE6EFDF@gromit.dlib.vt.edu> References: To: Tim Kientzle X-Mailer: Apple Mail (2.1508) Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 23:58:35 -0000 On Aug 4, 2013, at 2:12 PM, Tim Kientzle wrote: >=20 > On Aug 3, 2013, at 4:05 PM, Paul Mather wrote: >=20 >> On Jul 31, 2013, at 11:45 PM, Tim Kientzle = wrote: >>=20 >>> I (finally) got this port committed and would appreciate feedback. >>=20 >> I have problems building this on my build system, which runs = FreeBSD/amd64 10.0-CURRENT (r253579) as a virtual machine under KVM. It = fails when building math/gmp: >>=20 >> =3D=3D=3D=3D=3D >> [...] >> checking size of mp_limb_t... 8 >> configure: error: Oops, mp_limb_t is 64 bits, but the assembler code >> in this configuration expects 32 bits. >> You appear to have set $CFLAGS, perhaps you also need to tell GMP the >> intended ABI, see "ABI and ISA" in the manual. >> =3D=3D=3D> Script "configure" failed unexpectedly. >> Please report the problem to ale@FreeBSD.org [maintainer] and attach = the >> "/usr/ports/math/gmp/work/gmp-5.1.2/config.log" including the output = of the >> failure of your make command. Also, it might be a good idea to = provide an >> overview of all packages installed on your system (e.g. a >> /usr/local/sbin/pkg-static info -g -Ea). >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/ports/math/gmp >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/ports/math/gmp >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/ports/devel/arm-eabi-gcc >> *** Error code 1 >=20 > If I'm reading this right, the build is breaking trying to > configure a native amd64 math/gmp which is required > for building a cross-GCC. I think this is unrelated to ARM. >=20 > Can you build math/gmp on it's own? >=20 > If not, you should ping the math/gmp maintainer. >=20 > If you can, then I don't really know what's going on. The math/gmp port does build independently. So, anyone that already has = it installed won't have a problem building devel/arm-eabi-gcc. On my = system, I didn't have it already installed, and I think the = CONFIGURE_ARGS in devel/cross-gcc/Makefile pollutes the build = environment so that the installation of the math/gmp dependency gets = confused and thinks it is building for the target arch instead of the = native arch. When the target arch is 32-bit and the native arch is = 64-bit, this confusion appears to be fatal. :-) So, you can install the port successfully on amd64 -CURRENT if you = manually install math/gmp and then install = sysutils/u-boot-beaglebone-eabi. If you don't, the install will fail = due to the bad build of math/gmp. Cheers, Paul.