Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2017 13:09:36 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   head -r312942: install: link /usr/obj/DESTDIRs/.../boot/dtb/am3335x-bone.dtb -> /usr/obj/DESTDIRs/.../boot/dtb/beaglebone.dtb: No such file or directory
Message-ID:  <9F808021-FA63-4569-B277-8A784DD32479@dsl-only.net>

next in thread | raw e-mail | index | archive | help
For a prior amd64 -> armv6 cross build and I tried a local
file system install of the kernel via DESTDIR=3D use:

> Script started on Sun Jan 29 12:51:42 2017
> Command: env __MAKE_CONF=3D/root/src.configs/make.conf =
SRCCONF=3D/dev/null =
SRC_ENV_CONF=3D/root/src.configs/src.conf.bpim3-clang-bootstrap.amd64-host=
 WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/bpim3_clang make -j 4 =
installkernel DESTDIR=3D/usr/obj/DESTDIRs/clang-bpim3-installkernel
. . .

But the install stopped early with:

> --- realinstall_subdir_dtb/am335x ---
> install: link =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/am3335x-bone.dtb -> =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/beaglebone.dtb: No =
such file or directory
> *** [_installlinks] Error code 71
>=20
> make[4]: stopped in /usr/src/sys/modules/dtb/am335x
> 1 error
>=20
> make[4]: stopped in /usr/src/sys/modules/dtb/am335x
> *** [realinstall_subdir_dtb/am335x] Error code 2
>=20
> make[3]: stopped in /usr/src/sys/modules


Retrying without -j 4 failed the same way:

> =3D=3D=3D> dtb/am335x (install)
> test -d /usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb || =
install -d -o root -g wheel =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb
> install -o root -g wheel -m 444   am335x-bone.dtb =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/
> install -o root -g wheel -m 444   am335x-boneblack.dtb =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/
> install -o root -g wheel -m 444   am335x-bonegreen.dtb =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/
> install -o root -g wheel -m 444   ufw.dtb =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/
> /boot/dtb/beaglebone.dtb -> /boot/dtb/am3335x-bone.dtb
> install: link =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/am3335x-bone.dtb -> =
/usr/obj/DESTDIRs/clang-bpim3-installkernel/boot/dtb/beaglebone.dtb: No =
such file or directory
> *** Error code 71
>=20
> Stop.
> make[4]: stopped in /usr/src/sys/modules/dtb/am335x
> *** Error code 1
>=20
> Stop.
> make[3]: stopped in /usr/src/sys/modules
> *** Error code 1
>=20
> Stop.
> make[2]: stopped in =
/usr/obj/bpim3_clang/arm.armv6/usr/src/sys/BPIM3-NODBG
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/src



Details:

> # more /usr/src/sys/arm/conf/BPIM3-NODBG
> #
> # BPIM3 -- Custom configuration for the Banana Pi M3
> #
>=20
> include "GENERIC"
>=20
> ident   BPIM3-NODBG
>=20
> makeoptions     DEBUG=3D-g                # Build kernel with gdb(1) =
debug symbols
>=20
> options         ALT_BREAK_TO_DEBUGGER
>=20
> options         KDB                     # Enable kernel debugger =
support
>=20
> # For minimum debugger support (stable branch) use:
> options         KDB_TRACE               # Print a stack trace for a =
panic
> options         DDB                     # Enable the kernel debugger
>=20
> # Extra stuff:
> #options        VERBOSE_SYSINIT         # Enable verbose sysinit =
messages
> #options        BOOTVERBOSE=3D1
> #options        BOOTHOWTO=3DRB_VERBOSE
> #options        KTR
> #options        KTR_MASK=3DKTR_TRAP
> ##options       KTR_CPUMASK=3D0xF
> #options        KTR_VERBOSE
>=20
> # Disable any extra checking for. . .
> nooptions       DEADLKRES               # Enable the deadlock resolver
> nooptions       INVARIANTS              # Enable calls of extra sanity =
checking
> nooptions       INVARIANT_SUPPORT       # Extra sanity checks of =
internal structures, required by INVARIANTS
> nooptions       WITNESS                 # Enable checks to detect =
deadlocks and cycles
> nooptions       WITNESS_SKIPSPIN        # Don't run witness on =
spinlocks for speed
> nooptions       DIAGNOSTIC


> # more /root/src.configs/src.conf.bpim3-clang-bootstrap.amd64-host
> TO_TYPE=3Darmv6
> #
> KERNCONF=3DBPIM3-NODBG
> TARGET=3Darm
> .if ${.MAKE.LEVEL} =3D=3D 0
> TARGET_ARCH=3D${TO_TYPE}
> .export TARGET_ARCH
> .endif
> #
> WITH_CROSS_COMPILER=3D
> WITHOUT_SYSTEM_COMPILER=3D
> #
> #CPUTYPE=3Dsoft
> WITH_LIBCPLUSPLUS=3D
> WITH_BINUTILS_BOOTSTRAP=3D
> WITH_ELFTOOLCHAIN_BOOTSTRAP=3D
> WITH_CLANG_BOOTSTRAP=3D
> WITH_CLANG=3D
> WITH_CLANG_IS_CC=3D
> WITH_CLANG_FULL=3D
> WITH_CLANG_EXTRAS=3D
> WITH_LLD=3D
> #
> # Linking lldb fails for armv6(/v7) (historical binutils)
> WITHOUT_LLDB=3D
> #
> WITH_BOOT=3D
> WITHOUT_LIB32=3D
> WITHOUT_LIBSOFT=3D
> #
> WITHOUT_GCC_BOOTSTRAP=3D
> WITHOUT_GCC=3D
> WITHOUT_GCC_IS_CC=3D
> WITHOUT_GNUCXX=3D
> #
> NO_WERROR=3D
> #WERROR=3D
> MALLOC_PRODUCTION=3D
> #
> WITH_REPRODUCIBLE_BUILD=3D
> WITH_DEBUG_FILES=3D
> #
> XCFLAGS+=3D -mcpu=3Dcortex-a7
> XCXXFLAGS+=3D -mcpu=3Dcortex-a7
> # There is no XCPPFLAGS but XCPP gets XCFLAGS content.


> # more /root/src.configs/make.conf
> #MALLOC_PRODUCTION=3D
> #NO_WERROR=3D
> #WERROR=3D
> CFLAGS.gcc+=3D -v



=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9F808021-FA63-4569-B277-8A784DD32479>