Skip to content

Buid Fails - opencv4 - br-rootfs-pack] Error #87

@flaep

Description

@flaep

Hello,

following the steps in README.md fails with the following error:

/home/flaep/Documents/rvnano/LicheeRV-Nano-Build/host-tools/gcc/riscv64-linux-musl-x86_64/riscv64-unknown-linux-musl/include/c++/10.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next <stdlib.h>
      |               ^~~~~~~~~~
compilation terminated.
make[5]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:439: modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:1392: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[3]: *** [Makefile:166: all] Error 2
make[2]: *** [package/pkg-generic.mk:283: /home/flaep/Documents/rvnano/LicheeRV-Nano-Build/buildroot/output/build/opencv4-4.9.0/.stamp_built] Error 2
make[1]: *** [Makefile:82: _all] Error 2
make[1]: Leaving directory '/home/flaep/Documents/rvnano/LicheeRV-Nano-Build/buildroot'
make: *** [Makefile:558: br-rootfs-pack] Error 2

The fatal error: stdlib.h: No such file or directory -Error is happeniing with multiple files in opencv4.

Host: Linux main 6.12.21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.21-1 (2025-03-30) x86_64 GNU/Linux

it works, if I comment out the following lines in buildroot/package/Config.in

#       source "package/opencv3/Config.in"
#       source "package/opencv4/Config.in" 
#       source "package/opencv4-contrib/Config.in"

Is it planned to build with a newer kernel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions