Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2013 19:57:55 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   Re: RFC:  sysutils/u-boot-beaglebone-eabi
Message-ID:  <2B87571B-10D1-43CF-B6AB-0982EAE6EFDF@gromit.dlib.vt.edu>
In-Reply-To: <D95F2D1D-BC27-4C45-A351-F644E2C9F472@freebsd.org>
References:  <A8C10E4A-3577-4334-A916-381E69688137@freebsd.org> <A108D8A0-6427-47FB-9BC9-49183A0E3DE4@gromit.dlib.vt.edu> <D95F2D1D-BC27-4C45-A351-F644E2C9F472@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 4, 2013, at 2:12 PM, Tim Kientzle <kientzle@freebsd.org> wrote:

>=20
> On Aug 3, 2013, at 4:05 PM, Paul Mather wrote:
>=20
>> On Jul 31, 2013, at 11:45 PM, Tim Kientzle <kientzle@freebsd.org> =
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2B87571B-10D1-43CF-B6AB-0982EAE6EFDF>