Date: Tue, 12 Aug 2014 21:39:56 -0600 From: Warner Losh <imp@bsdimp.com> To: Tim Kientzle <tim@kientzle.com> Cc: freebsd-arm@freebsd.org, TooMeeK Admin <maps@toomeek.waw.pl> Subject: Re: U-boot for Banana Pi Message-ID: <C66BB151-A08D-4B0F-8BDB-0EB0708A41F4@bsdimp.com> 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
--Apple-Mail=_6D18A69A-D707-47C0-B47C-8112E9ABD41D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 12, 2014, at 8:08 PM, Tim Kientzle <tim@kientzle.com> wrote: >=20 > On Aug 12, 2014, at 5:18 PM, TooMeeK Admin <maps@toomeek.waw.pl> = wrote: >=20 >> 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 >=20 > You don=92t need these symlinks. > To use arm-eabi-gcc as your cross compiler, you want to use >=20 > gmake =85 CROSS_COMPILE=3Darm-eabi- ... >=20 > and make sure /usr/local/bin is part of your PATH. >=20 > 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. I=92d love us to get to the point where we have ports that can drive = this=85 Just as an aside=85 Warner >> gcc --version >> gcc (GCC) 4.5.4 >=20 > 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. >=20 >> 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 >=20 > No. scripts/basic/fixdep requires sys/mman.h when it > is compiled using HOSTCC. But you=92ve broken HOSTCC. >=20 > Cheers, >=20 > Tim >=20 > _______________________________________________ > 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" --Apple-Mail=_6D18A69A-D707-47C0-B47C-8112E9ABD41D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT6t4MAAoJEGwc0Sh9sBEAcTgQAOIeyz9LNhbXY/V/bDFqqEnu VY4hH5f5BQkBvz562/w/FI+uAEae48FyLuyblDzxYBn0CV58pUUbl9FPuuxq0SOP t5sUQmGOPslZ2vSv7E8udd4Uq7RrDFSt5xgZj+xXsBp1qNhS8rOTo6SOggYJRxYB 5c91K5Lb8CwACME/f3p7RWLuoyz2K7ZTRM8gym5C5PPDBtT2N/MAcUsr7/qkVWP5 18+nCehDn4eU01CuVCt0tg5suizFUaFxBDPsYqESSUPESwSNUnkNXYVDY9swFVpC aDei6/r6PNyYbKCtEuCAO7Td2B0KFnJPRDRVyVGvf6PGL2pMzrV/uzFQe1XzQ1uY qadFI3bxvE+tfLtMV1AkFiAAaoQ+IJOfi3JkraP52+iAZE83boAGoLE/aYVqE+h7 mJyAz3D4CR70LeAZb1jpYmr0yvlizxOTLIPzp2X5twMAc/o4pz1vJ0c7nrMuVcZI pn9V0s93mMYhap76DO3MnYQnIGEh53JIFzN2aMYlK3D4o+BsOQBo0wBCSK4XQMVA ixQxJSGXNcSnoZo8bj/MF95XSrqtO/27BlABmzIJ+t81VBBLzMJDm4JilElR0+To cm4z/Stw/Xe7gHqfRq3WyAhJQlB26SIgZzr3dvHBH8cVAJbBibMsSzmn55y0RVcE 64PZYJmmWKNGwSShr5Od =d0qf -----END PGP SIGNATURE----- --Apple-Mail=_6D18A69A-D707-47C0-B47C-8112E9ABD41D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C66BB151-A08D-4B0F-8BDB-0EB0708A41F4>