Bug 16006 - package/opencv4: Debian12 + ccache: fatal error: stdlib.h: No such file or directory
Summary: package/opencv4: Debian12 + ccache: fatal error: stdlib.h: No such file or di...
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2024.02
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 08:21 UTC by Wojciech Niziński
Modified: 2024-06-15 15:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Niziński 2024-03-21 08:21:21 UTC
Hi.
I cannot build opencv4 package under Debian 12 (on older Debian it works). I've prepared minimum scenario to reproduce:

Download and unpack: `buildroot-2024.02.tar.gz`

Go to BR dir.

make freescale_imx8mmevk_defconfig
./utils/config --enable CCACHE
./utils/config --enable TOOLCHAIN_EXTERNAL
./utils/config --enable PACKAGE_OPENCV4
./utils/config --enable PACKAGE_OPENCV4_WITH_TBB
make olddefconfig
make opencv4

...

[ 29%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o
In file included from /home/runner/buildroot-2024.02/output/host/opt/ext-toolchain/aarch64-none-linux-gnu/include/c++/13.2.1/bits/stl_algo.h:71,
                 from /home/runner/buildroot-2024.02/output/host/opt/ext-toolchain/aarch64-none-linux-gnu/include/c++/13.2.1/algorithm:61,
                 from /home/runner/buildroot-2024.02/output/build/opencv4-4.9.0/modules/core/include/opencv2/core/base.hpp:55,
                 from /home/runner/buildroot-2024.02/output/build/opencv4-4.9.0/modules/core/include/opencv2/core/utils/buffer_area.private.hpp:7,
                 from /home/runner/buildroot-2024.02/output/build/opencv4-4.9.0/modules/core/src/buffer_area.cpp:5:
/home/grunner/buildroot-2024.02/output/host/opt/ext-toolchain/aarch64-none-linux-gnu/include/c++/13.2.1/cstdlib:79:15: fatal error: stdlib.h: No such file or directory
   79 | #include_next <stdlib.h>
      |               ^~~~~~~~~~
compilation terminated.
...

It looks like sth is messed in opencv4 cmake files.
Comment 1 Yann E. MORIN 2024-06-15 15:22:55 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!