freebsd / crochet

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

RPI2: Failed to build FreeBSD armv6 world & IPFW issue #159

Closed prov3it closed 7 years ago

prov3it commented 7 years ago

Im stuck. I've been using crochet for a week now. I've build some images but always found something to add to the src- and make.conf. This time im getting an error when i want to build world. I cant find any related errors on the web. How can i solve this?

Also i've tried adding ipfw-support by adding these lines to: src/sys/arm/conf/RPI2.

options    IPFIREWALL           # enables IPFW
options    IPFIREWALL_VERBOSE       # enables logging for rules with log keyword
options    IPFIREWALL_VERBOSE_LIMIT=5   # limits number of logged packets per-entry
options    IPFIREWALL_DEFAULT_TO_ACCEPT # sets default policy to pass what is not explicitly denied
options    IPDIVERT         # enables NAT

However, i noticed that i got errors while compiling the kernel because of the last option (ipdivert). should it still be possible in FreeBSD 12 to add ipfw support this way? do note that the error i wrote about initially in the first paragraph did not include these options.

make.conf:

BOOTWAIT=0
MALLOW_PRODUCTION=1
NO_SHARE=1
BUILD_OPTIMIZED=YES
NO_SENDMAIL=TRUE
NO_GAMES=TRUE
NO_BIND=TRUE
NO_SHARE=TRUE
NO_TCSH=TRUE
NO_OPENSSL=TRUE
NO_CRYPT=TRUE
NO_BLUETOOTH=TRUE
NO_MAILWRAPPER=TRUE
NO_INET6=TRUE
NO_ATM=TRUE
NO_FORTRAN=TRUE
NO_GDB=TRUE
NO_SENDMAIL=TRUE

src.conf:

WITHOUT_ATM=YES
WITHOUT_AMD=YES
WITHOUT_APM=YES
WITHOUT_CTM=YES
WITHOUT_DICT=YES
WITHOUT_FINGER=YES
WITHOUT_FREEBSD_UPDATE=YES
WITHOUT_GPIO=YES
WITHOUT_INSTALLLIB=YES
WITHOUT_KERBEROS=YES
WITHOUT_KVM_SUPPORT=YES
WITHOUT_NETGRAPH=YES
WITHOUT_PAM_SUPPORT=YES
WITHOUT_PROFILE=YES
WITHOUT_TFTP=YES
WITHOUT_VT=YES
WITHOUT_BLUETOOTH=YES
WITHOUT_FLOPPY=YES
WITHOUT_GAMES=YES
WITHOUT_HYPERV=YES
WITHOUT_INET6=yes
WITHOUT_INET6_SUPPORT=yes
WITHOUT_MAIL=YES
WITHOUT_MAN=YES
WITHOUT_PAM=YES
WITHOUT_PAM_SUPPORT=YES
WITHOUT_PPP=YES
WITHOUT_RADIUS_SUPPORT=YES
WITHOUT_SENDMAIL=YES
WITHOUT_TCSH=YES
WITHOUT_TELNET=YES
WITHOUT_UTMPX=YES
WITHOUT_WIRELESS=YES
WITHOUT_WIRELESS_SUPPORT=YES
WITHOUT_WPA_SUPPLICANT_EAPOL=YES

config.sh:

board_setup RaspberryPi2
option ImageSize 4g
option Growfs
option CompressImage xz
option User johndoe
option UsrSrc
option Ntpd
FREEBSD_SRC=${TOPDIR}/src
WORKDIR=${TOPDIR}/work
IMG=${WORKDIR}/FreeBSD-${KERNCONF}.img
SRCCONF="${TOPDIR}/src.conf"
__MAKE_CONF="${TOPDIR}/make.conf"

Last 150 lines of logging:

--- libdwarf_macinfo.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_macinfo.o -MTlibdwarf_macinfo.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_macinfo.c -o libdwarf_macinfo.o
--- libdwarf_nametbl.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_nametbl.o -MTlibdwarf_nametbl.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_nametbl.c -o libdwarf_nametbl.o
--- libdwarf_ranges.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_ranges.o -MTlibdwarf_ranges.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_ranges.c -o libdwarf_ranges.o
--- libdwarf_reloc.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_reloc.o -MTlibdwarf_reloc.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_reloc.c -o libdwarf_reloc.o
--- libdwarf_rw.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_rw.o -MTlibdwarf_rw.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_rw.c -o libdwarf_rw.o
--- libdwarf_sections.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_sections.o -MTlibdwarf_sections.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_sections.c -o libdwarf_sections.o
--- libdwarf_str.o ---
cc  -O2 -pipe  -I. -I/usr/home/crochet-master/src/contrib/elftoolchain/libdwarf -I/usr/home/crochet-master/src/contrib/elftoolchain/common -I/usr/home/crochet-master/src/contrib/elftoolchain/libelf -MD  -MF.depend.libdwarf_str.o -MTlibdwarf_str.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/contrib/elftoolchain/libdwarf/libdwarf_str.c -o libdwarf_str.o
--- libdwarf.a ---
building static dwarf library
ar -crD libdwarf.a `NM='nm' NMFLAGS='' lorder dwarf_abbrev.o dwarf_arange.o dwarf_attr.o dwarf_attrval.o dwarf_cu.o dwarf_dealloc.o dwarf_die.o dwarf_dump.o dwarf_errmsg.o dwarf_finish.o dwarf_form.o dwarf_frame.o dwarf_funcs.o dwarf_init.o dwarf_lineno.o dwarf_loclist.o dwarf_macinfo.o dwarf_pro_arange.o dwarf_pro_attr.o dwarf_pro_die.o dwarf_pro_expr.o dwarf_pro_finish.o dwarf_pro_frame.o dwarf_pro_funcs.o dwarf_pro_init.o dwarf_pro_lineno.o dwarf_pro_macinfo.o dwarf_pro_pubnames.o dwarf_pro_reloc.o dwarf_pro_sections.o dwarf_pro_types.o dwarf_pro_vars.o dwarf_pro_weaks.o dwarf_pubnames.o dwarf_pubtypes.o dwarf_ranges.o dwarf_reloc.o dwarf_sections.o dwarf_seterror.o dwarf_str.o dwarf_types.o dwarf_vars.o dwarf_weaks.o libdwarf.o libdwarf_abbrev.o libdwarf_arange.o libdwarf_attr.o libdwarf_die.o libdwarf_error.o libdwarf_elf_access.o libdwarf_elf_init.o libdwarf_frame.o libdwarf_info.o libdwarf_init.o libdwarf_lineno.o libdwarf_loc.o libdwarf_loclist.o libdwarf_macinfo.o libdwarf_nametbl.o libdwarf_ranges.o libdwarf_reloc.o libdwarf_rw.o libdwarf_sections.o libdwarf_str.o  | tsort -q` 
ranlib -D libdwarf.a
--- _bootstrap-tools ---
--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /usr/home/crochet-master/src; MAKEOBJDIRPREFIX=/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp  INSTALL="sh /usr/home/crochet-master/src/tools/install.sh"  TOOLS_PREFIX=/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp  PATH=/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/sbin:/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/bin:/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp  MAKEFLAGS="-m /usr/home/crochet-master/src/tools/build/mk  -j 4 -J 15,16 -m /usr/home/crochet-master/src/share/mk" /home/crochet-master/work/obj/usr/home/crochet-master/src/make.amd64/bmake  -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=1003000  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no MK_CLANG_FULL=no  MK_LLDB=no MK_TESTS=no  MK_INCLUDES=yes bootstrap-tools
--- _bootstrap-tools-lib/clang/libllvmsupport ---
--- _bootstrap-tools-lib/clang/libllvmtablegen ---
--- _bootstrap-tools-gnu/usr.bin/groff ---
--- _bootstrap-tools-usr.bin/soelim ---
--- _bootstrap-tools-lib/clang/libllvmsupport ---
===> lib/clang/libllvmsupport (obj,all,install)
--- _bootstrap-tools-lib/clang/libllvmtablegen ---
===> lib/clang/libllvmtablegen (obj,all,install)
--- _bootstrap-tools-gnu/usr.bin/groff ---
===> gnu/usr.bin/groff (obj,all,install)
--- _bootstrap-tools-usr.bin/soelim ---
===> usr.bin/soelim (obj,all,install)
--- _bootstrap-tools-gnu/usr.bin/groff ---
--- obj_subdir_gnu/usr.bin/groff/contrib ---
===> gnu/usr.bin/groff/contrib (obj)
--- obj_subdir_gnu/usr.bin/groff/contrib/mm ---
===> gnu/usr.bin/groff/contrib/mm (obj)
--- _bootstrap-tools-usr.bin/soelim ---
--- obj ---
/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/usr/home/crochet-master/src/usr.bin/soelim created for /usr/home/crochet-master/src/usr.bin/soelim
--- _bootstrap-tools-lib/clang/libllvmtablegen ---
--- obj ---
/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/usr/home/crochet-master/src/lib/clang/libllvmtablegen created for /usr/home/crochet-master/src/lib/clang/libllvmtablegen
--- _bootstrap-tools-lib/clang/libllvmsupport ---
--- obj ---
--- _bootstrap-tools-gnu/usr.bin/groff ---
--- obj ---
--- _bootstrap-tools-lib/clang/libllvmsupport ---
/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/usr/home/crochet-master/src/lib/clang/libllvmsupport created for /usr/home/crochet-master/src/lib/clang/libllvmsupport
--- _bootstrap-tools-gnu/usr.bin/groff ---
/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/usr/home/crochet-master/src/gnu/usr.bin/groff/contrib/mm created for /usr/home/crochet-master/src/gnu/usr.bin/groff/contrib/mm
--- _bootstrap-tools-usr.bin/soelim ---
--- .depend ---
--- _bootstrap-tools-gnu/usr.bin/groff ---
--- obj_subdir_gnu/usr.bin/groff/font ---
===> gnu/usr.bin/groff/font (obj)
--- _bootstrap-tools-usr.bin/soelim ---
echo soelim.full: /usr/lib/libc.a /home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/lib/libegacy.a >> .depend
--- soelim.o ---
cc -O2 -pipe  -g -MD  -MF.depend.soelim.o -MTsoelim.o -std=gnu99  -Qunused-arguments  -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include -c /usr/home/crochet-master/src/usr.bin/soelim/soelim.c -o soelim.o
--- _bootstrap-tools-lib/clang/libllvmtablegen ---
--- Error.o ---
c++  -O2 -pipe -I/usr/home/crochet-master/src/lib/clang/libllvmtablegen/../../../contrib/llvm/include -I/usr/home/crochet-master/src/lib/clang/libllvmtablegen/../../../contrib/llvm/tools/clang/include -I/usr/home/crochet-master/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen -I. -I/usr/home/crochet-master/src/lib/clang/libllvmtablegen/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"armv6-gnueabihf-freebsd12.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DDEFAULT_SYSROOT=\"/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp\" -MD -MF.depend.Error.o -MTError.o -Qunused-arguments -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include  -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions  -c /usr/home/crochet-master/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Error.cpp -o Error.o
--- _bootstrap-tools-gnu/usr.bin/groff ---
--- obj_subdir_gnu/usr.bin/groff/font/devX100 ---
===> gnu/usr.bin/groff/font/devX100 (obj)
--- obj ---
--- _bootstrap-tools-usr.bin/soelim ---
/usr/home/crochet-master/src/usr.bin/soelim/soelim.c:95:20: warning: implicit declaration of function 'getline' is invalid in C99 [-Wimplicit-function-declaration]
        while ((linelen = getline(&line, &linecap, f)) > 0) {
                          ^
--- _bootstrap-tools-gnu/usr.bin/groff ---
/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/usr/home/crochet-master/src/gnu/usr.bin/groff/font/devX100 created for /usr/home/crochet-master/src/gnu/usr.bin/groff/font/devX100
--- obj_subdir_gnu/usr.bin/groff/font/devX100-12 ---
===> gnu/usr.bin/groff/font/devX100-12 (obj)
--- _bootstrap-tools-lib/clang/libllvmsupport ---
--- APFloat.o ---
c++  -O2 -pipe -I/usr/home/crochet-master/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/usr/home/crochet-master/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/usr/home/crochet-master/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I. -I/usr/home/crochet-master/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"armv6-gnueabihf-freebsd12.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.0\" -DDEFAULT_SYSROOT=\"/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp\" -MD -MF.depend.APFloat.o -MTAPFloat.o -Qunused-arguments -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include  -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions  -c /usr/home/crochet-master/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp -o APFloat.o
--- _bootstrap-tools-gnu/usr.bin/groff ---
--- obj ---
--- _bootstrap-tools-usr.bin/soelim ---
1 warning generated.

--- soelim.full ---
cc -O2 -pipe -g -std=gnu99 -Qunused-arguments -I/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/include  -static -L/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/legacy/usr/lib -o soelim.full soelim.o  -legacy
/usr/bin/ld: cannot find -legacy
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [soelim.full] Error code 1

bmake[3]: stopped in /usr/home/crochet-master/src/usr.bin/soelim
1 error

bmake[3]: stopped in /usr/home/crochet-master/src/usr.bin/soelim
*** [_bootstrap-tools-usr.bin/soelim] Error code 2

bmake[2]: stopped in /usr/home/crochet-master/src
--- _bootstrap-tools-gnu/usr.bin/groff ---
/home/crochet-master/work/obj/arm.armv6/usr/home/crochet-master/src/tmp/usr/home/crochet-master/src/gnu/usr.bin/groff/font/devX100-12 created for /usr/home/crochet-master/src/gnu/usr.bin/groff/font/devX100-12
--- obj_subdir_gnu/usr.bin/groff/font/devX75 ---
===> gnu/usr.bin/groff/font/devX75 (obj)
A failure has been detected in another branch of the parallel make

bmake[5]: stopped in /usr/home/crochet-master/src/gnu/usr.bin/groff/font/devX75
*** [obj_subdir_gnu/usr.bin/groff/font/devX75] Error code 2

bmake[4]: stopped in /usr/home/crochet-master/src/gnu/usr.bin/groff/font
1 error

bmake[4]: stopped in /usr/home/crochet-master/src/gnu/usr.bin/groff/font
*** [obj_subdir_gnu/usr.bin/groff/font] Error code 2

bmake[3]: stopped in /usr/home/crochet-master/src/gnu/usr.bin/groff
1 error

bmake[3]: stopped in /usr/home/crochet-master/src/gnu/usr.bin/groff
*** [_bootstrap-tools-gnu/usr.bin/groff] Error code 2

bmake[2]: stopped in /usr/home/crochet-master/src
--- _bootstrap-tools-lib/clang/libllvmtablegen ---
A failure has been detected in another branch of the parallel make

bmake[3]: stopped in /usr/home/crochet-master/src/lib/clang/libllvmtablegen
*** [_bootstrap-tools-lib/clang/libllvmtablegen] Error code 2

bmake[2]: stopped in /usr/home/crochet-master/src
--- _bootstrap-tools-lib/clang/libllvmsupport ---
A failure has been detected in another branch of the parallel make

bmake[3]: stopped in /usr/home/crochet-master/src/lib/clang/libllvmsupport
*** [_bootstrap-tools-lib/clang/libllvmsupport] Error code 2

bmake[2]: stopped in /usr/home/crochet-master/src
4 errors

bmake[2]: stopped in /usr/home/crochet-master/src
*** [_bootstrap-tools] Error code 2

bmake[1]: stopped in /usr/home/crochet-master/src
1 error

bmake[1]: stopped in /usr/home/crochet-master/src
*** [buildworld] Error code 2

make: stopped in /usr/home/crochet-master/src
1 error

make: stopped in /usr/home/crochet-master/src
xmj commented 7 years ago

Is this on FreeBSD -CURRENT?

kientzle commented 7 years ago

The freebsd-arm or freebsd-current mailing lists would probably be a better place to ask this:

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