freebsd / crochet

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

'stand.h' file not found - but exists #165

Closed tomster closed 7 years ago

tomster commented 7 years ago

i'm trying to build an image for Pine64 using a master checkout of crochet (61b57f3ecca9ca8781a9e1e23777de3076f4ade4) with the following config.sh::

board_setup Pine64
option Growfs
option GzipImage
option User admin
FREEBSD_SRC=/data/crochet/src/head
FREEBSD_INSTALL_WORLD=y

and /data/crochet/src/head containing:

root@crochet:/data/src/head # svnlite info
Path: .
Working Copy Root Path: /data/src/head
URL: https://svn0.us-west.freebsd.org/base/head
Relative URL: ^/head
Repository Root: https://svn0.us-west.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 308787
Node Kind: directory
Schedule: normal
Last Changed Author: shurd
Last Changed Rev: 308787
Last Changed Date: 2016-11-17 23:05:34 +0000 (Thu, 17 Nov 2016)

however, when running ./crochet.sh -c config.sh i get the following error:

===> forth (obj)
===> common (obj)
===> fdt (obj)
===> efi (obj)
===> efi/fdt (obj)
===> efi/libefi (obj)
===> efi/loader (obj)
===> efi/boot1 (obj)
===> arm64 (obj)
===> ficl (clean)
rm -f softcore.c testmain testmain.o dict.o ficl.o fileaccess.o float.o loader.o math64.o prefix.o search.o stack.o tools.o vm.o words.o sysdep.o softcore.o  libficl.a
===> forth (clean)
rm -f beastie.4th.8.gz brand.4th.8.gz check-password.4th.8.gz color.4th.8.gz delay.4th.8.gz loader.conf.5.gz loader.4th.8.gz menu.4th.8.gz menusets.4th.8.gz version.4th.8.gz beastie.4th.8.cat.gz brand.4th.8.cat.gz check-password.4th.8.cat.gz color.4th.8.cat.gz delay.4th.8.cat.gz loader.conf.5.cat.gz loader.4th.8.cat.gz menu.4th.8.cat.gz menusets.4th.8.cat.gz version.4th.8.cat.gz
===> common (clean)
rm -f loader.8.gz zfsloader.8.gz loader.8.cat.gz zfsloader.8.cat.gz
===> fdt (clean)
rm -f fdt.o fdt_ro.o fdt_wip.o fdt_sw.o fdt_rw.o fdt_strerror.o fdt_empty_tree.o fdt_loader_cmd.o fdt_overlay.o  libfdt.a
===> efi (clean)
===> efi/fdt (clean)
rm -f machine efi_fdt.o  libefi_fdt.a
===> efi/libefi (clean)
rm -f delay.o devpath.o efi_console.o efinet.o efipart.o errno.o handles.o libefi.o time_event.o env.o  libefi.a
===> efi/loader (clean)
rm -f loader.help vers.c loader.efi loader.sym loader.sym.bc loader.sym.ll loader.sym.full loader.sym.full.bc loader.sym.debug loader.sym.full.ll autoload.o bootinfo.o conf.o copy.o devicename.o main.o self_reloc.o smbios.o vers.o zfs.o skein.o skein_block.o exec.o start.o cache.o boot.o commands.o console.o devopen.o interp.o interp_backslash.o interp_parse.o ls.o misc.o module.o panic.o load_elf64.o reloc_elf64.o disk.o part.o crc32.o bcache.o interp_forth.o autoload.bco bootinfo.bco conf.bco copy.bco devicename.bco main.bco self_reloc.bco smbios.bco vers.bco zfs.bco skein.bco skein_block.bco exec.bco start.bco cache.bco boot.bco commands.bco console.bco devopen.bco interp.bco interp_backslash.bco interp_parse.bco ls.bco misc.bco module.bco panic.bco load_elf64.bco reloc_elf64.bco disk.bco part.bco crc32.bco bcache.bco interp_forth.bco autoload.llo bootinfo.llo conf.llo copy.llo devicename.llo main.llo self_reloc.llo smbios.llo vers.llo zfs.llo skein.llo skein_block.llo exec.llo start.llo cache.llo boot.llo commands.llo console.llo devopen.llo interp.llo interp_backslash.llo interp_parse.llo ls.llo misc.llo module.llo panic.llo load_elf64.llo reloc_elf64.llo disk.llo part.llo crc32.llo bcache.llo interp_forth.llo machine
===> efi/boot1 (clean)
rm -f boot1.efi boot1.efifat boot1.sym boot1.sym.bc boot1.sym.ll boot1.sym.full boot1.sym.full.bc boot1.sym.debug boot1.sym.full.ll boot1.o self_reloc.o start.o ufs_module.o zfs_module.o skein.o skein_block.o boot1.bco self_reloc.bco start.bco ufs_module.bco zfs_module.bco skein.bco skein_block.bco boot1.llo self_reloc.llo start.llo ufs_module.llo zfs_module.llo skein.llo skein_block.llo machine
===> arm64 (clean)
===> ficl (depend)
(cd /data/crochet/src/head/sys/boot/ficl/softwords; cat softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr  ifbrack.fr  | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > softcore.c
===> forth (depend)
===> common (depend)
===> fdt (depend)
===> efi (depend)
===> efi/fdt (depend)
ln -sf /data/crochet/src/head/sys/boot/efi/fdt/../../../arm64/include machine
===> efi/libefi (depend)
===> efi/loader (depend)
ln -sf /data/crochet/src/head/sys/boot/efi/loader/../../../arm64/include machine
sh /data/crochet/src/head/sys/boot/efi/loader/../../common/newvers.sh /data/crochet/src/head/sys/boot/efi/loader/version "EFI loader" arm64
rm -f .depend
echo loader.sym.full: /data/crochet/crochet/work/obj/arm64.aarch64/data/crochet/src/head/sys/boot/efi/loader/../../ficl/libficl.a /data/crochet/crochet/work/obj/arm64.aarch64/data/crochet/src/head/sys/boot/efi/loader/../libefi/libefi.a /data/crochet/crochet/work/obj/arm64.aarch64/data/crochet/src/head/sys/boot/efi/loader/../../fdt/libfdt.a /data/crochet/crochet/work/obj/arm64.aarch64/data/crochet/src/head/sys/boot/efi/loader/../../efi/fdt/libefi_fdt.a /usr/lib/libstand.a  /data/crochet/src/head/sys/boot/efi/loader/arch/arm64/ldscript.arm64 >> .depend
===> efi/boot1 (depend)
ln -sf /data/crochet/src/head/sys/boot/efi/boot1/../../../arm64/include machine
===> arm64 (depend)
===> ficl (all)
cc -target aarch64-unknown-freebsd12.0 --sysroot=/data/crochet/crochet/work/obj/arm64.aarch64/data/crochet/src/head/tmp -B/usr/local/aarch64-freebsd/bin/  -O2 -pipe -I/data/crochet/src/head/sys/boot/ficl -I/data/crochet/src/head/sys/boot/ficl/aarch64  -I/data/crochet/src/head/sys/boot/ficl/../common -ffreestanding -Wformat  -D_STANDALONE -msoft-float -mgeneral-regs-only   -MD  -MF.depend.dict.o -MTdict.o -std=gnu99     -Qunused-arguments  -c /data/crochet/src/head/sys/boot/ficl/dict.c -o dict.o
/data/crochet/src/head/sys/boot/ficl/dict.c:60:10: fatal error: 'stand.h' file not found
#include <stand.h>
         ^
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in /data/crochet/src/head/sys/boot/ficl
*** Error code 1

Stop.
make: stopped in /data/crochet/src/head/sys/boot

but when I search for stand.h I find this:

/usr/include/stand.h
/usr/jails/basejail/usr/include/stand.h
/usr/src/lib/libstand/stand.h
root@bob:/data/crochet/crochet # 

what am i missing here?

kientzle commented 7 years ago

Questions about FreeBSD source code should be directed to the freebsd-current or freebsd-arm mailing lists:

https://www.freebsd.org/community/mailinglists.html