BBB image build compilation errors
Dmitry Salychev via freebsd-arm <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm,gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <20201017145128.GA26055@ds-laptop> |
Dear all, I'm trying to build an image for BeagleBone Black from r366684 using release.sh. These're compilation errors I got at stage 4.2 while building libunwind: -------------------------------------------------------------- >>> stage 4.2: building libraries -------------------------------------------------------------- ===> lib/libcompiler_rt (obj,all,install) ===> lib/libssp_nonshared (obj,all,install) ===> lib/libgcc_eh (obj,all,install) ===> lib/libgcc_s (obj,all,install) /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:33:27: error: must use 'struct' tag to refer to type '_Unwind_Exception' /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:108:19: error: unknown type name '_Unwind_Trace_Fn'; did you mean '_Unwind_Stop_Fn'? /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:176:66: error: too few arguments to function call, expected 6, have 2 /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:192:55: error: declaration of 'struct dwarf_eh_bases' will not be visible outside of this function [-Werror,-Wvisibility] ... /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1.c:38:56: error: must use 'struct' tag to refer to type '_Unwind_Exception' /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1.c:93:7: error: use of undeclared identifier '_Unwind_Personality_Fn' /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1.c:97:56: error: use of undeclared identifier 'p' /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1.c:99:13: error: use of undeclared identifier 'p' /usr/embedded/bbb/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1.c:134:56: error: must use 'struct' tag to refer to type '_Unwind_Exception' You'll find a configuration file I used to call release.sh, make.conf, src.conf and a full log attached to this letter. I wonder whether this is a known problem or an incorrect configuration of mine. Regards, Dmitry _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "[email protected]"
bbb_image.conf
(text/plain, 919 B)
#!/bin/sh
#
# $FreeBSD: head/release/arm/BEAGLEBONE.conf 336998 2018-07-31 19:12:31Z manu $
#
EMBEDDED_TARGET_ARCH="armv7"
EMBEDDED_TARGET="arm"
EMBEDDEDBUILD=1
EMBEDDEDPORTS="sysutils/u-boot-beaglebone"
FAT_SIZE="50m"
FAT_TYPE="16"
IMAGE_SIZE="3072M"
KERNEL="GENERIC"
MD_ARGS="-x 63 -y 255"
NODOC=1
PART_SCHEME="MBR"
CHROOTDIR="/usr/embedded/bbb"
SRC_UPDATE_SKIP=1
MAKE_CONF="/usr/embedded/make.conf"
SRC_CONF="/usr/embedded/src.conf"
export BOARDNAME="BEAGLEBONE"
arm_install_uboot() {
UBOOT_DIR="/usr/local/share/u-boot/u-boot-beaglebone"
FATMOUNT="${DESTDIR%${KERNEL}}/fat"
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}"
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/MLO ${FATMOUNT}/MLO
chroot ${CHROOTDIR} cp -p ${UBOOT_DIR}/u-boot.img ${FATMOUNT}/u-boot.img
sync
umount_loop ${CHROOTDIR}/${FATMOUNT}
chroot ${CHROOTDIR} rmdir ${FATMOUNT}
return 0
}
bbb_image_log.txt
(text/plain, 156.2 KB) - not displayed
make.conf
(text/plain, 54 B)
WITHOUT_DEBUG=yes MK_PROFILE=no MALLOC_PRODUCTION=yes
src.conf
(text/plain, 87 B)
WITHOUT_DEBUG_FILES=1 WITHOUT_KERNEL_SYMBOLS=yes WITHOUT_TESTS=yes WITHOUT_PROFILE=yes