Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 12:41:00 +0200
From:      TooMeeK Admin <maps@toomeek.waw.pl>
To:        freebsd-arm@freebsd.org
Subject:   Re: U-boot for Banana Pi
Message-ID:  <53EB40BC.8070506@toomeek.waw.pl>
In-Reply-To: <C779091A-37C3-47AC-B497-31A270364696@kientzle.com>
References:  <53EAAEDB.8060802@toomeek.waw.pl> <C779091A-37C3-47AC-B497-31A270364696@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53EB40BC.8070506>