Failing to Build with GCC15 on aarch64, ppc64le & s390x
Failing to build on aarch64, ppc64le, s390x.
/usr/bin/gcc -I/usr/include/SDL2 -I/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/external/openxr_headers -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -pedantic -Wall -Wextra -Wno-unused-parameter -MD -MT CMakeFiles/openxr-playground.dir/main.c.o -MF CMakeFiles/openxr-playground.dir/main.c.o.d -o CMakeFiles/openxr-playground.dir/main.c.o -c /builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘print_supported_view_configs’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:601:39: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
601 | (XrViewConfigurationType*)malloc(view_config_count * sizeof(XrViewConfigurationType));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:146:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
145 | #include "external/openxr_headers/XR_MNDX_xdev_space.h"
+++ |+#include <stdlib.h>
146 |
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:601:39: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
601 | (XrViewConfigurationType*)malloc(view_config_count * sizeof(XrViewConfigurationType));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:601:39: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:617:9: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
617 | free(view_configs);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:617:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:617:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:617:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘print_reference_spaces’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:645:44: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
645 | XrReferenceSpaceType* ref_spaces = malloc(sizeof(XrReferenceSpaceType) * ref_space_count);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:645:44: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:662:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
662 | free(ref_spaces);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:662:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘get_swapchain_format’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:705:38: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
705 | int64_t* swapchain_formats = malloc(sizeof(int64_t) * swapchain_format_count);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:705:38: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:725:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
725 | free(swapchain_formats);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:725:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_opengl_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:774:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
774 | *out_base = malloc(sizeof(struct opengl_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:774:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_hand_tracking_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:811:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
811 | *out_base = malloc(sizeof(struct hand_tracking_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:811:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_depth_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:827:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
827 | *out_base = malloc(sizeof(struct depth_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:827:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_refresh_rate_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:854:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
854 | *out_base = malloc(sizeof(struct refresh_rate_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:854:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_plane_detection_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:907:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
907 | *out_base = malloc(sizeof(struct plane_detection_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:907:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_hand_interaction_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:931:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
931 | *out_base = malloc(sizeof(struct hand_interaction_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:931:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘destroy_xdev_space’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:957:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
957 | free(*element);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:957:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_xdev_space_t’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1047:21: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1047 | *out_base = malloc(sizeof(struct xdev_space_t));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1047:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘cleanup_update_xdev_spaces’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1079:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1079 | free(*xdevs);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1079:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘update_xdev_spaces’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1123:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1123 | xdevs = malloc(sizeof(XrXDevIdMNDX) * count);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1123:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘check_extensions’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1386:44: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1386 | XrExtensionProperties* ext_props = malloc(sizeof(XrExtensionProperties) * ext_count);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1386:44: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1396:17: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1396 | free(ext_props);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1396:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1410:25: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1410 | free(ext_props);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1410:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1415:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1415 | free(ext_props);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1415:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘_create_swapchain’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1485:13: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1485 | malloc(sizeof(XrSwapchainImageOpenGLKHR) * swapchain->swapchain_lengths[num_swapchain]);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1485:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘create_one_swapchain’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1510:33: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1510 | swapchain->swapchains = malloc(sizeof(XrSwapchain));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1510:33: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘create_swapchain_from_views’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1528:33: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1528 | swapchain->swapchains = malloc(sizeof(XrSwapchain) * view_count);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1528:33: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘destroy_swapchain’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1576:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1576 | free(swapchain->swapchains);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1576:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘suggest_actions’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1627:46: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1627 | XrActionSuggestedBinding* bindings = malloc(sizeof(XrActionSuggestedBinding) * total);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1627:46: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1659:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
1659 | free(bindings);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1659:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘parse_opts’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1879:25: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
1879 | exit(0);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1879:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1879:25: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1879:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1936:48: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
1936 | app->args.busy_loops = atoi(optarg);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1945:26: error: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
1945 | default: abort();
| ^~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1945:26: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1945:26: warning: incompatible implicit declaration of built-in function ‘abort’ [-Wbuiltin-declaration-mismatch]
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1945:26: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘main’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1953:40: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
1953 | struct ApplicationState* app = malloc(sizeof(struct ApplicationState));
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:1953:40: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:2216:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
2216 | free(blend_modes);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:2216:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘init_gl’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:3466:37: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
3466 | gl_renderer->framebuffers = malloc(sizeof(GLuint*) * view_count);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:3466:37: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c: In function ‘initialze_quad’:
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:4008:24: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
4008 | uint8_t* rgb = malloc(sizeof(uint8_t) * w * h * 4);
| ^~~~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:4008:24: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:4017:29: error: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
4017 | if (abs(row - col) < 3) {
| ^~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:4017:29: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:4036:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
4036 | free(rgb);
| ^~~~
/builddir/build/BUILD/openxr-simple-playground-0-build/openxr-simple-playground-03c3c9fc71f9faacf54eb3f2f65ccb7445af673c/main.c:4036:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’