-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
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
Run build_middleware() function
make: '/root/LicheeRV-Nano-Build/install/soc_sg2002_licheervnano_sd/rootfs' is up to date.
~/LicheeRV-Nano-Build/middleware/v2 ~/LicheeRV-Nano-Build/build
make[1]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/3rdparty'
make[1]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp'
#################################################
# #
# Compiling '3rdparty libs' Configs as below #
pushd sensor/sg200x && \
make all && \
popd;
# #
~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x ~/LicheeRV-Nano-Build/middleware/v2/component/isp
#################################################
make[2]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x'
make[2]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/3rdparty/cli'
pushd gcore_gc4653 && make all && popd
pushd ov_os04a10 && make all && popd
pushd sms_sc035gs && make all && popd
pushd lontium_lt6911 && make all && popd
~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/gcore_gc4653 ~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x
#################################################
~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/ov_os04a10 ~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x
~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/sms_sc035gs ~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x
~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/lontium_lt6911 ~/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x
make[3]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x/ov_os04a10'
make[3]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x/lontium_lt6911'
make[3]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x/gcore_gc4653'
#
make[3]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x'
make[3]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/cv182x/sms_sc035gs'
# Compiling 'component libs' Configs as below...
# SENSOR_LIST=gcore_gc4653 ov_os04a10 sms_sc035gs lontium_lt6911
#
make[2]: Leaving directory '/root/LicheeRV-Nano-Build/middleware/v2/3rdparty/cli'
#################################################
/root/LicheeRV-Nano-Build/middleware/v2/3rdparty
make[2]: *** write jobserver: Bad file descriptor. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/root/LicheeRV-Nano-Build/middleware/v2/3rdparty/inih'
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o gcore_gc4653/gc4653_cmos.o gcore_gc4653/gc4653_cmos.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o gcore_gc4653/gc4653_sensor_ctl.o gcore_gc4653/gc4653_sensor_ctl.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o ov_os04a10/os04a10_sensor_ctl.o ov_os04a10/os04a10_sensor_ctl.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o ov_os04a10/os04a10_cmos.o ov_os04a10/os04a10_cmos.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o sms_sc035gs/sc035gs_sensor_ctl.o sms_sc035gs/sc035gs_sensor_ctl.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o sms_sc035gs/sc035gs_cmos.o sms_sc035gs/sc035gs_cmos.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o lontium_lt6911/lt6911_cmos.o lontium_lt6911/lt6911_cmos.c
riscv64-unknown-linux-musl-gcc -Os -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d -std=gnu11 -g -Wall -Wextra -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/gdbserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libcrypto/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/libz/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/otaserver/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/rsyslog/include -I/root/LicheeRV-Nano-Build/ramdisk/rootfs/public/crontabs/include -mno-ldd -DARCH_SG200X -D__SOC_MARS__ -c -o lontium_lt6911/lt6911_sensor_ctl.o lontium_lt6911/lt6911_sensor_ctl.c
make[2]: *** write jobserver: Bad file descriptor. Stop.
make[2]: *** Waiting for unfinished jobs....
sms_sc035gs/sc035gs_cmos.c:12:10: fatal error: linux/cvi_type.h: No such file or directory
12 | #include <linux/cvi_type.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
lontium_lt6911/lt6911_cmos.c:12:10: fatal error: linux/cvi_type.h: No such file or directory
12 | #include <linux/cvi_type.h>
| ^~~~~~~~~~~~~~~~~~
make[3]: *** [<builtin>: sms_sc035gs/sc035gs_cmos.o] Error 1
compilation terminated.
gcore_gc4653/gc4653_sensor_ctl.c:14:10: fatal error: linux/vi_snsr.h: No such file or directory
14 | #include <linux/vi_snsr.h>
| ^~~~~~~~~~~~~~~~~
make[3]: *** write jobserver: Bad file descriptor. Stop.
make[3]: *** Waiting for unfinished jobs....
sms_sc035gs/sc035gs_sensor_ctl.c:14:10: fatal error: linux/vi_snsr.h: No such file or directory
14 | #include <linux/vi_snsr.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
ov_os04a10/os04a10_sensor_ctl.c:14:10: fatal error: linux/vi_snsr.h: No such file or directory
14 | #include <linux/vi_snsr.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
gcore_gc4653/gc4653_cmos.c:12:10: fatal error: linux/cvi_type.h: No such file or directory
12 | #include <linux/cvi_type.h>
| ^~~~~~~~~~~~~~~~~~
make[3]: *** [<builtin>: gcore_gc4653/gc4653_sensor_ctl.o] Error 1
make[3]: *** write jobserver: Bad file descriptor. Stop.
compilation terminated.
/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/ov_os04a10/os04a10_sensor_ctl.c: In function 'os04a10_init':
/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/ov_os04a10/os04a10_sensor_ctl.c:257:2: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
257 | system("devmem 0x0300116C 32 0x3");
| ^~~~~~
lontium_lt6911/lt6911_sensor_ctl.c:14:10: fatal error: linux/vi_snsr.h: No such file or directory
14 | #include <linux/vi_snsr.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:279: all_sensor] Error 1
make[2]: *** write jobserver: Bad file descriptor. Stop.
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/root/LicheeRV-Nano-Build/middleware/v2/component/isp'
make: *** [Makefile:49: component] Error 2
make: *** Waiting for unfinished jobs....
ov_os04a10/os04a10_cmos.c:13:10: fatal error: linux/cvi_type.h: No such file or directory
13 | #include <linux/cvi_type.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/lontium_lt6911/lt6911_sensor_ctl.c: In function 'lt6911_probe':
/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/lontium_lt6911/lt6911_sensor_ctl.c:193:2: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
193 | system("devmem 0x0300116C 32 0x3");
| ^~~~~~
/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/sms_sc035gs/sc035gs_sensor_ctl.c: In function sc035gs_linear_1296P30_init':
/root/LicheeRV-Nano-Build/middleware/v2/component/isp/sensor/sg200x/sms_sc035gs/sc035gs_sensor_ctl.c:212:2: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
212 | system("devmem 0x0300116C 32 0x3");
| ^~~~~~
[riscv64-unknown-linux-musl-gcc] lt6911_sensor_ctl.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
make[3]: *** Waiting for unfinished jobs....
[riscv64-unknown-linux-musl-gcc] sc035gs_sensor_ctl.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
make[3]: *** Waiting for unfinished jobs....
[riscv64-unknown-linux-musl-gcc] lt6911_cmos.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
[riscv64-unknown-linux-musl-gcc] os04a10_sensor_ctl.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
make[3]: *** Waiting for unfinished jobs....
[riscv64-unknown-linux-musl-gcc] gc4653_sensor_ctl.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
make[3]: *** Waiting for unfinished jobs....
[riscv64-unknown-linux-musl-gcc] sc035gs_cmos.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
[riscv64-unknown-linux-musl-gcc] ini.o
make[2]: *** write jobserver: Bad file descriptor. Stop.
make[1]: *** [Makefile:8: all] Error 1
make[1]: Leaving directory '/root/LicheeRV-Nano-Build/middleware/v2/3rdparty'
make: *** [Makefile:41: 3rdparty] Error 2
build middleware failed !!
~/LicheeRV-Nano-Build/build
root@c058ed84e6c2:~/LicheeRV-Nano-Build# [riscv64-unknown-linux-musl-gcc] gc4653_cmos.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
[riscv64-unknown-linux-musl-gcc] os04a10_cmos.o
make[3]: *** write jobserver: Bad file descriptor. Stop.
Metadata
Metadata
Assignees
Labels
No labels