freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
608 stars 187 forks source link

Partial fixes for Raspberry Pi B build #265

Closed AndiDog closed 2 months ago

AndiDog commented 5 years ago

Image file name changed from u-boot.img to u-boot.bin in:

https://svnweb.freebsd.org/ports/head/sysutils/u-boot-master/Makefile?r1=453381&r2=454262 https://svnweb.freebsd.org/ports/head/sysutils/u-boot-rpi/Makefile?r1=429378&r2=454262

Also, document how to use ccache so I don't spend hours for attempts after the next build fix.


P.S.: I couldn't get a full, successful build yet using these small modifications to turn on ZFS. It fails at basic C++ level, see below. I am using the releng/11.2 branch of the FreeBSD source code. Grateful for any help on this

In file included from /mnt/freebsd-11.2/contrib/llvm/tools/lld/Common/Args.cpp:10:
In file included from /mnt/freebsd-11.2/contrib/llvm/tools/lld/include/lld/Common/Args.h:13:
In file included from /mnt/freebsd-11.2/contrib/llvm/tools/lld/include/lld/Common/LLVM.h:20:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/Hashing.h:49:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/Support/Host.h:17:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/StringMap.h:17:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/StringRef.h:13:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/STLExtras.h:20:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/Optional.h:22:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/Support/type_traits.h:19:
In file included from /tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/c++/v1/utility:202:
In file included from /tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/c++/v1/cstring:61:
In file included from /tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/c++/v1/string.h:61:
In file included from /tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/string.h:45:
In file included from /mnt/freebsd-11.2/contrib/llvm/tools/lld/ELF/strings.h:14:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/ArrayRef.h:15:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/ADT/SmallVector.h:20:
In file included from /mnt/freebsd-11.2/contrib/llvm/include/llvm/Support/MathExtras.h:19:
In file included from /tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/c++/v1/algorithm:643:
In file included from /tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/c++/v1/memory:662:
/tmp/work/obj/arm.armv6/mnt/freebsd-11.2/tmp/usr/include/c++/v1/tuple:1361:22: error: C++ requires a type specifier for all declarations
pair<_T1, _T2>::pair(piecewise_construct_t,
                     ^