CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_archs_gcc-12.2.0_glibc/bin/arc-openwrt-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_archs_gcc-12.2.0_glibc/bin/arc-openwrt-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_ASM_COMPILER
    CMAKE_ASM_COMPILER_LAUNCHER
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_EXPORT_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
    CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
    CMAKE_FIND_USE_PACKAGE_REGISTRY
    CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS
    DL_LIBRARY


-- Build files have been written to: /builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea
ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea'
[1/25] Building C object src/CMakeFiles/dawn.dir/main.c.o
[2/25] Building C object src/CMakeFiles/dawn.dir/storage/datastorage.c.o
FAILED: src/CMakeFiles/dawn.dir/storage/datastorage.c.o 
/builder/shared-workdir/build/sdk/staging_dir/toolchain-arc_archs_gcc-12.2.0_glibc/bin/arc-openwrt-linux-gnu-gcc  -I/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/include -Os -pipe -matomic -mcpu=archs -fno-caller-saves -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea=dawn-2022-07-24-9e8060ea -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG   -Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unknown-warning-option -Wno-format-truncation -MD -MT src/CMakeFiles/dawn.dir/storage/datastorage.c.o -MF src/CMakeFiles/dawn.dir/storage/datastorage.c.o.d -o src/CMakeFiles/dawn.dir/storage/datastorage.c.o -c /builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/storage/datastorage.c
In file included from /builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/storage/datastorage.c:4:
/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/storage/datastorage.c: In function 'insert_macs_from_file':
/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/include/memory_utils.h:25:26: error: pointer 'fp' used after 'fclose' [-Werror=use-after-free]
   25 | #define dawn_unregmem(p) dawn_memory_unregister(DAWN_MEMUNREG, __FILE__, __LINE__, p)
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/storage/datastorage.c:1336:5: note: in expansion of macro 'dawn_unregmem'
 1336 |     dawn_unregmem(fp);
      |     ^~~~~~~~~~~~~
/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/src/storage/datastorage.c:1335:5: note: call to 'fclose' here
 1335 |     fclose(fp);
      |     ^~~~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:51: /builder/shared-workdir/build/sdk/build_dir/target-arc_archs_glibc/dawn-2022-07-24-9e8060ea/.built] Error 1
time: package/feeds/packages/dawn/compile#1.63#0.32#2.25