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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Aug 12, 2014, at 8:08 PM, Tim Kientzle <tim@kientzle.com> wrote:
>
> 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=/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’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.
I’d love us to get to the point where we have ports that can drive this… Just as an aside…
Warner
>> gcc --version
>> gcc (GCC) 4.5.4
>
> 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.
>
>> HOSTCC scripts/basic/fixdep
>> scripts/basic/fixdep.c:108:22: fatal error: sys/mman.h: No such file or directory
>> compilation terminated.
>>
>> 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’ve broken HOSTCC.
>
> Cheers,
>
> Tim
>
> _______________________________________________
> 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"
[-- Attachment #2 --]
-----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-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C66BB151-A08D-4B0F-8BDB-0EB0708A41F4>
