Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2014 18:44:05 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Werner Thie <werner@thieprojects.ch>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: sysutils/u-boot-beaglebone-eabi port fails to build
Message-ID:  <F94FC62E-AE46-493B-A04D-64C40EAAB561@kientzle.com>
In-Reply-To: <52E7F07A.7090002@thieprojects.ch>
References:  <52E7F07A.7090002@thieprojects.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
The following needs to be added to the build commands in the Makefile:

     HOSTCC=3Dcc

As Jeroen pointed out, without this the U-Boot build system tries to use =
=91gcc=92 unconditionally to build the pieces that run on the build =
host.  Those pieces do not specifically require any GCC-specific =
features, so they should use =91cc=92 to use whatever native compiler is =
available.

Apologies for this being broken for so long=85  Not sure when I=92ll get =
back to it=85  if anyone wants to take over this port, please be my =
guest.

Tim


On Jan 28, 2014, at 10:01 AM, Werner Thie <werner@thieprojects.ch> =
wrote:

> Hi Tim
>=20
> sysutils/u-boot-beaglebone-eabi port fails with
>=20
> make install
> =3D=3D=3D>  Building for u-boot-beaglebone-eabi-2013.04
> (cd =
/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04;gmake =
CROSS_COMPILE=3Darm-eabi- )
> gmake[1]: Entering directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04'
> for dir in tools examples/standalone examples/api arch/arm/cpu/armv7  =
; do \
> 		gmake -C $dir _depend ; done
> gcc: not found
> gmake[2]: Entering directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/tools'
> gmake[2]: Nothing to be done for `_depend'.
> gmake[2]: Leaving directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/tools'
> gmake[2]: Entering directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/examples/s=
tandalone'
> gmake[2]: Nothing to be done for `_depend'.
> gmake[2]: Leaving directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/examples/s=
tandalone'
> gmake[2]: Entering directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/examples/a=
pi'
> gmake[2]: Nothing to be done for `_depend'.
> gmake[2]: Leaving directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/examples/a=
pi'
> gmake[2]: Entering directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/arch/arm/c=
pu/armv7'
> gmake[2]: Nothing to be done for `_depend'.
> gmake[2]: Leaving directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/arch/arm/c=
pu/armv7'
> gmake -C tools all
> gcc: not found
> gmake[2]: Entering directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/tools'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include =
/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/include/lib=
fdt_env.h -idirafter =
/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/include =
-idirafter =
/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/include2 =
-idirafter =
/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/include =
-I =
/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/lib/libfdt =
-I /usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/tools =
-DCONFIG_SYS_TEXT_BASE=3D0x80800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES =
-pedantic   -o gen_eth_addr.o gen_eth_addr.c -c
> gcc: not found
> gmake[2]: *** [gen_eth_addr.o] Error 127
> gmake[2]: Leaving directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04/tools'
> gmake[1]: *** [tools] Error 2
> gmake[1]: Leaving directory =
`/usr/ports/sysutils/u-boot-beaglebone-eabi/work/u-boot-2013.04'
> *** Error code 2
>=20
> arm-eabi-gcc is installed,
>=20
> arm-eabi-gcc -v
> Using built-in specs.
> COLLECT_GCC=3Darm-eabi-gcc
> COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc/arm-eabi/4.5.4/lto-wrapper
> Target: arm-eabi
> Configured with: ./../gcc-4.5.4/configure --target=3Darm-eabi =
--enable-languages=3Dc,c++,objc --datadir=3D/usr/local/arm-eabi/share =
--with-system-zlib --disable-nls --without-included_gettext =
--with-newlib --with-dwarf2 =
--with-gxx-include-dir=3D/usr/local/arm-eabi/lib/gcc//include/cxx/ =
--disable-shared --with-gmp=3D/usr/local --with-mpfr=3D/usr/local =
--with-mpc=3D/usr/local --prefix=3D/usr/local --mandir=3D/usr/local/man =
--infodir=3D/usr/local/info/ --build=3Di386-portbld-freebsd10.0
> Thread model: single
> gcc version 4.5.4 (GCC)
>=20
> System version:
> FreeBSD xtools 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789
>=20
> Mahalo, Werner
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F94FC62E-AE46-493B-A04D-64C40EAAB561>