Date: Tue, 12 Aug 2014 19:08:06 -0700 From: Tim Kientzle <tim@kientzle.com> To: TooMeeK Admin <maps@toomeek.waw.pl> Cc: freebsd-arm@freebsd.org Subject: Re: U-boot for Banana Pi Message-ID: <C779091A-37C3-47AC-B497-31A270364696@kientzle.com> In-Reply-To: <53EAAEDB.8060802@toomeek.waw.pl> References: <53EAAEDB.8060802@toomeek.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 12, 2014, at 5:18 PM, TooMeeK Admin <maps@toomeek.waw.pl> wrote: > 1. prepare > pkg install gcc make gmake joe screen htop gsed wget git arm-eabi-gcc > set CROSS=3D/usr/obj/arm.armv6/usr/src/tmp/usr/bin/ > echo $CROSS > ln -s /usr/local/bin/arm-eabi-gcc /usr/local/bin/gcc > ln -s /usr/local/bin/arm-eabi-gcc = /usr/obj/arm.armv6/usr/src/tmp/usr/bin/gcc You don=92t need these symlinks. To use arm-eabi-gcc as your cross compiler, you want to use gmake =85 CROSS_COMPILE=3Darm-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 This is bad. U-Boot by default uses HOSTCC=3Dgcc to run a compiler that = can build tools to run on the host machine. But you=92ve set up =91gcc=92= to run the cross-compiler, which is why HOSTCC builds are failing. > HOSTCC scripts/basic/fixdep > scripts/basic/fixdep.c:108:22: fatal error: sys/mman.h: No such file = or directory > compilation terminated. >=20 > The problem I'm hitting is that compiler requires sys/mman.h No. scripts/basic/fixdep requires sys/mman.h when it is compiled using HOSTCC. But you=92ve broken HOSTCC. Cheers, Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C779091A-37C3-47AC-B497-31A270364696>