RFC: sysutils/u-boot-beaglebone-eabi

Paul Mather paul at gromit.dlib.vt.edu
Sun Aug 4 23:58:35 UTC 2013


On Aug 4, 2013, at 2:12 PM, Tim Kientzle <kientzle at freebsd.org> wrote:

> 
> On Aug 3, 2013, at 4:05 PM, Paul Mather wrote:
> 
>> On Jul 31, 2013, at 11:45 PM, Tim Kientzle <kientzle at freebsd.org> wrote:
>> 
>>> I (finally) got this port committed and would appreciate feedback.
>> 
>> 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:
>> 
>> =====
>> [...]
>> 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.
>> ===>  Script "configure" failed unexpectedly.
>> Please report the problem to ale at 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
>> 
>> Stop.
>> make: stopped in /usr/ports/math/gmp
>> *** Error code 1
>> 
>> Stop.
>> make: stopped in /usr/ports/math/gmp
>> *** Error code 1
>> 
>> Stop.
>> make: stopped in /usr/ports/devel/arm-eabi-gcc
>> *** Error code 1
> 
> 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.
> 
> Can you build math/gmp on it's own?
> 
>  If not, you should ping the math/gmp maintainer.
> 
>  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.



More information about the freebsd-arm mailing list