-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middleware Build Failing #28
Comments
Looks like this is a problem with Docker for MacOS. I was just able to build the image using Ubuntu on Docker for Windows 11. I'll update if I find anything that helps with Docker for MacOS. |
Adding more info in case anyone else tries to debug this problem. I was able to get the build_middleware function to complete by disabling parallel execution. I did this by changing Line 239 in the envsetup_soc.sh from
to
Now I'm running into problems with the br-pack-rootfs function which also has parallel execution enabled. However, disabling parallel execution has not resolved this build failure. Will update with the build fail logs as well as any progress in debugging. |
Same errors in ArchLinux. |
Using ubuntu docker (host/ubuntu) with command build_middleware, still have those problems. INFORMATION: Apptainer> build_middleware
Run build_middleware() function
make: '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/install/soc_sg2002_licheervnano_sd/rootfs' is up to date.
~/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2 ~/code/licheerv_nano/LicheeRV-Nano-Build/build
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty'
make[1]: Entering directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp'
#################################################
# #
pushd sensor/sg200x && \
make all && \
popd;
# Compiling '3rdparty libs' Configs as below #
~/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x ~/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp
# #
make[2]: Entering directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x'
#################################################
make[2]: Entering directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty/cli'
#################################################
#
# Compiling 'component libs' Configs as below...
# SENSOR_LIST=gcore_gc4653 ov_os04a10 sms_sc035gs lontium_lt6911
#
#################################################
pushd gcore_gc4653 && make all && popd
~/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/gcore_gc4653 ~/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x
make[3]: Entering directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x/gcore_gc4653'
make[2]: Leaving directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty/cli'
/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty
make[2]: Entering directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty/inih'
/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/gcore_gc4653/gc4653_cmos.c:12:10: fatal error: linux/cvi_type.h: No such file or directory
12 | #include <linux/cvi_type.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:22: /home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/gcore_gc4653/gc4653_cmos.o] Error 1
make[3]: Leaving directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x/gcore_gc4653'
make[2]: *** [Makefile:78: gcore_gc4653] Error 2
make[2]: Leaving directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x'
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/component/isp'
make: *** [Makefile:49: component] Error 2
make: *** Waiting for unfinished jobs....
[riscv64-unknown-linux-musl-gcc] ini.o
[LINK][riscv64-unknown-linux-musl-ar] libini.a
[LINK][riscv64-unknown-linux-musl-ld] libini.so
make[2]: Leaving directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty/inih'
/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty
make[1]: Leaving directory '/home/yohcha/code/licheerv_nano/LicheeRV-Nano-Build/middleware/v2/3rdparty'
build middleware failed !!
~/code/licheerv_nano/LicheeRV-Nano-Build/build |
Problem
Middleware build is failing.
Environment
Ubuntu Docker Container (from host/ubuntu) on M1 MacBook Air.
Question(s)
Should the "build all" command result in a completed image? I ask because even though I got a build middleware failed result, the install directory has quite a few files so I'm not sure if I need to run another command to create an image? Or is fixing this middleware failure is necessary.
Contents in the install directory after build:
boot.sd elf fip.bin fip_spl.bin fw_payload_uboot.bin ramboot.itb rawimages rootfs tpu_musl_riscv64
Additional Information
The text was updated successfully, but these errors were encountered: