Skip to content

cannot compile, breaks with errors  #147

@att2

Description

@att2

Hello, I did exactly as you said, but the compile breaks with the following errors:

All I did was :
apt install -y zstd liblz4-tool (for the missing libs)

mkdir amlogic-bsp
cd amlogic-bsp/
git clone --depth 1 git://git.yoctoproject.org/poky -b kirkstone poky
git clone https://github.com/superna9999/meta-meson.git meta-meson -b kirkstone
source poky/oe-init-build-env
bitbake-layers add-layer $PWD/../meta-meson/
export MACHINE=amlogic-s9xxx
bitbake amlogic-image-sato

The error: .....

| DTC arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dtb
| NOTE: make -j 2 CC=aarch64-poky-linux-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0=/usr/src/debug/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0 -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0=/usr/src/debug/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0 -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot= -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work-shared/amlogic-s9xxx/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work-shared/amlogic-s9xxx/kernel-build-artifacts=/usr/src/kernel --sysroot=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot LD=aarch64-poky-linux-ld.bfd --sysroot=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot HOSTCC=gcc HOSTCFLAGS=-isystem/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/usr/lib -L/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/att/amlogic-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E HOSTCXX=g++ HOSTCXXFLAGS=-isystem/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native/usr/include -O2 -pipe PAHOLE=false amlogic/meson-g12a-radxa-zero.dtb CC=aarch64-poky-linux-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0=/usr/src/debug/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0 -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0=/usr/src/debug/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0 -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot= -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work-shared/amlogic-s9xxx/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/att/amlogic-bsp/build/tmp/work-shared/amlogic-s9xxx/kernel-build-artifacts=/usr/src/kernel --sysroot=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot LD=aarch64-poky-linux-ld.bfd --sysroot=/home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/recipe-sysroot
| make[1]: *** No rule to make target 'arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dtb'. Stop.
| make: *** [/home/att/amlogic-bsp/build/tmp/work-shared/amlogic-s9xxx/kernel-source/Makefile:1432: amlogic/meson-g12a-radxa-zero.dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/temp/run.do_compile.27007:307 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/temp/run.do_compile.27007, line 307
| #2: die, /home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/temp/run.do_compile.27007, line 291
| #3: oe_runmake, /home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/temp/run.do_compile.27007, line 219
| #4: do_compile, /home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/temp/run.do_compile.27007, line 156
| #5: main, /home/att/amlogic-bsp/build/tmp/work/amlogic_s9xxx-poky-linux/linux-yocto/5.15.78+gitAUTOINC+f475b1a9de_8cd3f1c8dc-r0/temp/run.do_compile.27007, line 311
ERROR: Task (/home/att/amlogic-bsp/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3054 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/att/amlogic-bsp/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb:do_compile
Summary: There were 14 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

The compiling x64 machine: A user on a ubuntu 18.04 shell.

What did I do wrong? How can I fix this? Please help. I need to get this to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions