From owner-freebsd-arm@FreeBSD.ORG Wed Aug 13 10:40:57 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 D9633132 for ; Wed, 13 Aug 2014 10:40:57 +0000 (UTC) Received: from poczta.toomeek.waw.pl (unknown [IPv6:2001:67c:232c:1000::fd9b:4fb4]) by mx1.freebsd.org (Postfix) with ESMTP id 98199242E for ; Wed, 13 Aug 2014 10:40:57 +0000 (UTC) Received: from [192.168.137.1] (cpk219.neoplus.adsl.tpnet.pl [83.31.216.219]) by poczta.toomeek.waw.pl (Postfix) with ESMTPSA id 35EB9C600D7 for ; Wed, 13 Aug 2014 06:40:53 -0400 (EDT) Message-ID: <53EB40BC.8070506@toomeek.waw.pl> Date: Wed, 13 Aug 2014 12:41:00 +0200 From: TooMeeK Admin User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: U-boot for Banana Pi References: <53EAAEDB.8060802@toomeek.waw.pl> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.9 (poczta.toomeek.waw.pl [0.0.0.0]); Wed, 13 Aug 2014 06:40:54 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.98.1 at a8d2ba546e X-Virus-Status: Clean X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2014 10:40:57 -0000 Thank You for fast response :) root@freebsd:/usr/src/u-boot-sunxi # echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin it is in my path I've tried this already earlier: gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes clean gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes Bananapi_config gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes But didn't know about this HOSTCC, so: root@freebsd:/usr/src/u-boot-sunxi # echo $HOSTCC HOSTCC: Undefined variable. but if: set HOSTCC=gcc then: root@freebsd:/usr/src/u-boot-sunxi # gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes GEN include/autoconf.mk.dep GEN include/autoconf.mk CHK include/config/uboot.release CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h HOSTCC scripts/basic/fixdep gcc: not found gmake[1]: *** [scripts/basic/fixdep] Error 127 gmake: *** [scripts_basic] Error 2 gmake: *** Waiting for unfinished jobs.... GCC not found.. because I've deleted symlinks. > You don’t need these symlinks. To use arm-eabi-gcc as your cross > compiler, you want to use gmake … CROSS_COMPILE=arm-eabi- ... and make > sure /usr/local/bin is part of your PATH. U-Boot build scripts use > ${CROSS_COMPILE}gcc to run the cross-compiler GCC, so if you set CROSS > to arm-eabi-, U-Boot will use arm-eabi-gcc as the cross compiler. >> gcc --version >> gcc (GCC) 4.5.4 So again: root@freebsd:/usr/src/u-boot-sunxi # set HOSTCC=arm-eabi-gcc root@freebsd:/usr/src/u-boot-sunxi # gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes CHK include/config/uboot.release CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h HOSTCC scripts/basic/fixdep gcc: not found gmake[1]: *** [scripts/basic/fixdep] Error 127 gmake: *** [scripts_basic] Error 2 gmake: *** Waiting for unfinished jobs.... > This is bad. U-Boot by default uses HOSTCC=gcc to run a compiler that can build tools to run on the host machine. But you’ve set up ‘gcc’ to run the cross-compiler, which is why HOSTCC builds are failing. > > No. scripts/basic/fixdep requires sys/mman.h when it is compiled using > HOSTCC. But you’ve broken HOSTCC. Cheers, Tim Still don't work. HOSTCC=arm-eabi-gcc HOSTCC=gcc with or without symlink. Am I missing something? The problem is there is no gcc executable in system. Cheers, TooMeeK