Bitbake Error for Intel Arria 10

Hi - followed the link:
https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html
to create an image for Intel Arria10 in Ubuntu 20.04.
After executing the command ‘bitbake core-image-full-cmdline’, this is the error i get as shown in the log file:

DEBUG: Executing shell function do_compile
NOTE: KBUILD_BUILD_TIMESTAMP: Fri Nov 17 08:31:24 UTC 2023
NOTE: make -j 12 CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fcanon-prefix-map -fmacro-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source=/usr/src/debug/linux-socfpga/6.6+git -fdebug-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source=/usr/src/debug/linux-socfpga/6.6+git -fmacro-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/linux-arria10-standard-build=/usr/src/debug/linux-socfpga/6.6+git -fdebug-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/linux-arria10-standard-build=/usr/src/debug/linux-socfpga/6.6+git -fdebug-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot= -fmacro-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot= -fdebug-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native= -fdebug-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-build-artifacts=/usr/src/kernel LD=arm-poky-linux-gnueabi-ld.bfd OBJCOPY=arm-poky-linux-gnueabi-objcopy STRIP=arm-poky-linux-gnueabi-strip HOSTCC=gcc HOSTCFLAGS=-isystem/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/usr/include -O2 -pipe HOSTLDFLAGS=-L/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/usr/lib -L/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/lib -Wl,-rpath,/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/gachaconr/yoctoarria10/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E HOSTCXX=g++ HOSTCXXFLAGS=-isystem/home/gachaconr/yoctoarria10/poky/build/tmp/work/arria10-poky-linux-gnueabi/linux-socfpga/6.6+git/recipe-sysroot-native/usr/include -O2 -pipe PAHOLE=false -j 12 Image
GEN Makefile
CALL /home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/scripts/checksyscalls.sh
CC drivers/tty/newhaven_lcd.o
/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/drivers/tty/newhaven_lcd.c:488:28: error: initialization of ‘ssize_t (*)(struct tty_struct *, const u8 , size_t)’ {aka 'int ()(struct tty_struct *, const unsigned char , unsigned int)'} from incompatible pointer type 'int ()(struct tty_struct *, const unsigned char , int)’ [-Werror=incompatible-pointer-types]
488 | .write = lcd_write,
| ^~~~~~~~~
/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/drivers/tty/newhaven_lcd.c:488:28: note: (near initialization for ‘lcd_ops.write’)
/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/drivers/tty/newhaven_lcd.c:616:18: error: initialization of 'int (
)(struct i2c_client )’ from incompatible pointer type 'int ()(struct i2c_client *, const struct i2c_device_id *)’ [-Werror=incompatible-pointer-types]
616 | .probe = lcd_probe,
| ^~~~~~~~~
/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/drivers/tty/newhaven_lcd.c:616:18: note: (near initialization for ‘lcd_i2c_driver.probe’)
cc1: some warnings being treated as errors
make[4]: *** [/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/scripts/Makefile.build:243: drivers/tty/newhaven_lcd.o] Error 1
make[3]: *** [/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/scripts/Makefile.build:480: drivers/tty] Error 2
make[2]: *** [/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/scripts/Makefile.build:480: drivers] Error 2
make[1]: *** [/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/Makefile:1913: .] Error 2
make: *** [/home/gachaconr/yoctoarria10/poky/build/tmp/work-shared/arria10/kernel-source/Makefile:234: __sub-make] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.

Can someone please help me fix this problem?
Thanks,
Gustavo

Hi Gustavo,

I am the Linux Foundation Program Manager for the Yocto Project. Unfortunately, I only know the high-level function of it, not the technical details.

If you don’t get an answer on this forum, I recommend trying one of our public mailing lists - https://www.yoctoproject.org/community/mailing-lists/

Thanks a lot, Neal! Appreciate it!

1 Like

Hi Gustavo,

I’m running into the same issue. Have you found a solution yet?