From owner-freebsd-arm@FreeBSD.ORG Wed Jan 29 02:44:58 2014 Return-Path: Delivered-To: freebsd-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 ESMTPS id 1E7EA87F for ; Wed, 29 Jan 2014 02:44:58 +0000 (UTC) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E40791324 for ; Wed, 29 Jan 2014 02:44:57 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id w10so1137336pde.35 for ; Tue, 28 Jan 2014 18:44:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=e0dMukTkbXvlQIdLksYe8vwK1/J/Yhjyy5o9K8wESjM=; b=KrptjRjRiP6fxQLmvqTsYOhZR0xo7w4RDYCHkyyXK856LEiRuLgr0uhMsatui4TVAO 16uiMIqteXsqm63wg7Hfug9yEsAhClc1cj6eGKeqrtoxYuH+mHBiq8u+SzZd62GMd0iD ztcWewIaWkejZGYDAKwNlIsHAjQKOYY2TJut32SclBTxCl3xpEKoO562syFfkKO90wD8 35231LGbYBFID1NS58LMMTCsD6FM4nzTdmSRVYIc4OZ/xi9uqR1cnaHDiW+5ksZ0fZWy RGi/OxGn/bZv7sHoRdOEBIquCHmdwY/Yj4qY+A4Wpsr3gmBOOZ1j/MoKdZ2tnc0qzdUo FkIQ== X-Gm-Message-State: ALoCoQkzLfUABFqsUFJ58OUq0/j8dIv2Y3hoQi6hoUVeeu7lIHVSVm/1BG4Jv5X+fSBxnP45q0ve X-Received: by 10.66.163.164 with SMTP id yj4mr5120619pab.91.1390963490854; Tue, 28 Jan 2014 18:44:50 -0800 (PST) Received: from [192.168.1.2] (c-24-6-182-22.hsd1.ca.comcast.net. [24.6.182.22]) by mx.google.com with ESMTPSA id ns7sm1515506pbc.32.2014.01.28.18.44.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 18:44:48 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: sysutils/u-boot-beaglebone-eabi port fails to build From: Tim Kientzle In-Reply-To: <52E7F07A.7090002@thieprojects.ch> Date: Tue, 28 Jan 2014 18:44:05 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <52E7F07A.7090002@thieprojects.ch> To: Werner Thie X-Mailer: Apple Mail (2.1827) Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jan 2014 02:44:58 -0000 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 = 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"