All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 14146] New: Cannot build for beaglebone black. Build fails with errors
@ 2021-11-02 20:25 bugzilla
  2021-11-02 20:32 ` [Buildroot] [Bug 14146] " bugzilla
  2022-03-15 19:15 ` bugzilla
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla @ 2021-11-02 20:25 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14146

            Bug ID: 14146
           Summary: Cannot build for beaglebone black. Build fails with
                    errors
           Product: buildroot
           Version: 2021.05.1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: afuakoff2003@gmail.com
                CC: buildroot@uclibc.org
  Target Milestone: ---

Host PC OS: Ubuntu 21.04

Steps:
Downloaded buildroot 2021.05.1.
cd buildroot.
make beaglebone_defconfig
make


patching file arch/arm/mach-omap2/omap_hwmod_33xx_data.c
Hunk #1 succeeded at 205 (offset -3 lines).
if [ -f
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom/tools/perf/Documentation/Makefile
]; then printf "%%:\n\t@:\n"
>/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom/tools/perf/Documentation/GNUmakefile;
fi
for p in  ; do if test -d $p ; then
PATH=/home/ivanppp/Videos/buildroot-2021.05.1/output/host/bin:$PATH
support/scripts/apply-patches.sh 
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom $p \*.patch
|| exit 1 ; else
PATH=/home/ivanppp/Videos/buildroot-2021.05.1/output/host/bin:$PATH
support/scripts/apply-patches.sh 
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom `dirname $p`
`basename $p` || exit 1; fi done
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  LEX     scripts/kconfig/zconf.lex.c
  YACC    scripts/kconfig/zconf.tab.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
Using
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom/.config as
base
#
# merged configuration written to
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom/.config
(needs make)
#
scripts/kconfig/conf  --olddefconfig Kconfig
#
# configuration written to .config
#
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_GZIP\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo 'CONFIG_KERNEL_GZIP=y' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_LZ4\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_KERNEL_LZ4 is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_LZMA\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_KERNEL_LZMA is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_LZO\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_KERNEL_LZO is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_XZ\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_KERNEL_XZ is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_ZSTD\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_KERNEL_ZSTD is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_KERNEL_UNCOMPRESSED\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_KERNEL_UNCOMPRESSED is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_CPU_LITTLE_ENDIAN\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo 'CONFIG_CPU_LITTLE_ENDIAN=y' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_AEABI\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo 'CONFIG_AEABI=y' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
# As the kernel gets compiled before root filesystems are
# built, we create a fake cpio file. It'll be
# replaced later by the real cpio archive, and the kernel will be
# rebuilt using the linux-rebuild-with-initramfs target.
/usr/bin/sed -i -e "/\\<CONFIG_DEVTMPFS\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo 'CONFIG_DEVTMPFS=y' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_DEVTMPFS_MOUNT\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo 'CONFIG_DEVTMPFS_MOUNT=y' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
/usr/bin/sed -i -e "/\\<CONFIG_GCC_PLUGINS\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_GCC_PLUGINS is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
scripts/kconfig/conf  --olddefconfig Kconfig
#
# configuration written to .config
#
>>> linux custom Configuring
>>> linux custom Building
/usr/bin/sed -i -e "/\\<CONFIG_GCC_PLUGINS\\>/d"
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
echo '# CONFIG_GCC_PLUGINS is not set' >>
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom//.config
PATH="/home/ivanppp/Videos/buildroot-2021.05.1/output/host/bin:/home/ivanppp/Videos/buildroot-2021.05.1/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin"
PKG_CONFIG="/home/ivanppp/Videos/buildroot-2021.05.1/output/host/bin/pkg-config"
PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG_LIBDIR="/home/ivanppp/Videos/buildroot-2021.05.1/output/host/lib/pkgconfig:/home/ivanppp/Videos/buildroot-2021.05.1/output/host/share/pkgconfig"
BR_BINARIES_DIR=/home/ivanppp/Videos/buildroot-2021.05.1/output/images
KCFLAGS=-Wno-attribute-alias /usr/bin/make -j9 HOSTCC="/usr/bin/gcc -O2
-I/home/ivanppp/Videos/buildroot-2021.05.1/output/host/include
-L/home/ivanppp/Videos/buildroot-2021.05.1/output/host/lib
-Wl,-rpath,/home/ivanppp/Videos/buildroot-2021.05.1/output/host/lib" ARCH=arm
INSTALL_MOD_PATH=/home/ivanppp/Videos/buildroot-2021.05.1/output/target
CROSS_COMPILE="/home/ivanppp/Videos/buildroot-2021.05.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-"
DEPMOD=/home/ivanppp/Videos/buildroot-2021.05.1/output/host/sbin/depmod
INSTALL_MOD_STRIP=1 -C
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom all
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
  WRAP    arch/arm/include/generated/uapi/asm/bitsperlong.h
  WRAP    arch/arm/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/arm/include/generated/uapi/asm/errno.h
  WRAP    arch/arm/include/generated/uapi/asm/ioctl.h
  WRAP    arch/arm/include/generated/uapi/asm/msgbuf.h
  WRAP    arch/arm/include/generated/uapi/asm/param.h
  WRAP    arch/arm/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/arm/include/generated/uapi/asm/resource.h
  WRAP    arch/arm/include/generated/uapi/asm/poll.h
  WRAP    arch/arm/include/generated/uapi/asm/sembuf.h
  WRAP    arch/arm/include/generated/uapi/asm/shmbuf.h
  WRAP    arch/arm/include/generated/uapi/asm/siginfo.h
  WRAP    arch/arm/include/generated/uapi/asm/socket.h
  WRAP    arch/arm/include/generated/uapi/asm/sockios.h
  WRAP    arch/arm/include/generated/uapi/asm/termbits.h
  WRAP    arch/arm/include/generated/uapi/asm/termios.h
  UPD     include/generated/uapi/linux/version.h
  UPD     include/config/kernel.release
  WRAP    arch/arm/include/generated/asm/compat.h
  WRAP    arch/arm/include/generated/asm/current.h
  WRAP    arch/arm/include/generated/asm/early_ioremap.h
  WRAP    arch/arm/include/generated/asm/emergency-restart.h
  WRAP    arch/arm/include/generated/asm/exec.h
  WRAP    arch/arm/include/generated/asm/extable.h
  WRAP    arch/arm/include/generated/asm/irq_regs.h
  WRAP    arch/arm/include/generated/asm/kdebug.h
  WRAP    arch/arm/include/generated/asm/local.h
  WRAP    arch/arm/include/generated/asm/local64.h
  WRAP    arch/arm/include/generated/asm/mm-arch-hooks.h
  WRAP    arch/arm/include/generated/asm/msi.h
  WRAP    arch/arm/include/generated/asm/parport.h
  WRAP    arch/arm/include/generated/asm/preempt.h
  WRAP    arch/arm/include/generated/asm/rwsem.h
  UPD     include/generated/utsrelease.h
  WRAP    arch/arm/include/generated/asm/seccomp.h
  WRAP    arch/arm/include/generated/asm/segment.h
  WRAP    arch/arm/include/generated/asm/serial.h
  WRAP    arch/arm/include/generated/asm/simd.h
  WRAP    arch/arm/include/generated/asm/sizes.h
  WRAP    arch/arm/include/generated/asm/timex.h
  WRAP    arch/arm/include/generated/asm/trace_clock.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/dtc/flattree.o
  YACC    scripts/genksyms/parse.tab.c
  CC      scripts/mod/empty.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/dtc/treesource.o
  LEX     scripts/genksyms/lex.lex.c
  YACC    scripts/genksyms/parse.tab.h
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  YACC    scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTLD  scripts/genksyms/genksyms
  SYSNR   arch/arm/include/generated/asm/unistd-nr.h
  GEN     arch/arm/include/generated/asm/mach-types.h
  SYSTBL  arch/arm/include/generated/calls-oabi.S
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  SYSTBL  arch/arm/include/generated/calls-eabi.S
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  CC      kernel/bounds.s
  UPD     include/generated/timeconst.h
  UPD     include/generated/bounds.h
  HOSTLD  scripts/dtc/fdtoverlay
  CC      arch/arm/kernel/asm-offsets.s
  HOSTLD  scripts/mod/modpost
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of
`yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [scripts/Makefile.host:99: scripts/dtc/dtc] Error 1
make[3]: *** [scripts/Makefile.build:544: scripts/dtc] Error 2
make[2]: *** [Makefile:1061: scripts] Error 2
make[2]: *** Waiting for unfinished jobs....
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[1]: *** [package/pkg-generic.mk:250:
/home/ivanppp/Videos/buildroot-2021.05.1/output/build/linux-custom/.stamp_built]
Error 2
make: *** [Makefile:84: _all] Error 2






Not sure why am getting this error. Any pointers is much appreciated.
Thanks
Afua

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@bootlin.com> ---
*** Bug 14151 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 14146] Cannot build for beaglebone black. Build fails with errors
  2021-11-02 20:25 [Buildroot] [Bug 14146] New: Cannot build for beaglebone black. Build fails with errors bugzilla
@ 2021-11-02 20:32 ` bugzilla
  2022-03-15 19:15 ` bugzilla
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla @ 2021-11-02 20:32 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14146

--- Comment #2 from Adam Duskett <aduskett@gmail.com> ---
Hello;

The kernel version defined for the beaglebone in buildroot 2021.05.1 is quite
old (4.19.79.) I suggest using the latest beaglebone defconfig from 2021.05.1,
or using the following in your config:

# Kernel
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call
github,beagleboard,linux,5.10.30-ti-r3)/linux-5.10.30-ti-r3.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-evm am335x-bone am335x-boneblack
am335x-bonegreen am335x-evmsk am335x-boneblue"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 14146] Cannot build for beaglebone black. Build fails with errors
  2021-11-02 20:25 [Buildroot] [Bug 14146] New: Cannot build for beaglebone black. Build fails with errors bugzilla
  2021-11-02 20:32 ` [Buildroot] [Bug 14146] " bugzilla
@ 2022-03-15 19:15 ` bugzilla
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla @ 2022-03-15 19:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14146

--- Comment #3 from Andrei Gherghescu <andrei.gherghescu@protonmail.com> ---
Dear Afua,

You should check your GCC version. I get the same error with GCC 10.

It looks that this is due to the kernel version and GCC 10 combination as
reported here: https://lkml.org/lkml/2020/4/1/1206

This was fixed in release 2021.08.1 with the upgrade to 5.10.30-ti-r3 as Adam
Duskett also mentioned. 

You should switch to that release. 

If you need to stick with 4.19 kernel for whatever reason, then you can use
4.19.94-ti-r72, as listed here https://github.com/beagleboard/linux/tags

4.19.94-ti-r72 kernel builds fine with GCC 10. Change to the following line in
your config.

BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call
github,beagleboard,linux,4.19.94-ti-r72)/linux-4.19.94-ti-r72.tar.gz"


Regards,
Andrei

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-15 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 20:25 [Buildroot] [Bug 14146] New: Cannot build for beaglebone black. Build fails with errors bugzilla
2021-11-02 20:32 ` [Buildroot] [Bug 14146] " bugzilla
2022-03-15 19:15 ` bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.