Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vld1q_f16 undeclared in arm on stb_image_resize2.h v2.10 #4309

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

masnm
Copy link
Contributor

@masnm masnm commented Sep 7, 2024

In my project i set up the android build following this video from youtube

I was doing that before raylib 5 come out. Now i updated to raylib 5 and android studio complains about vld1q_f16 is not defined in stb_image_resize2.h.

By updating the stb_image_resize2.h from v2.01 to v2.10 fixed the issue.

I build the project after the update on my Debian 12.6, X11, Amd R5, IGU,. Laptop and on Android Studio 2024.1.2.12 on the same machine and both worked fine.
I ran the workflow on linux examples and android build, to make sure the update didn't break anything both worked fine.

Here is the problems i was getting before this update

> Task :app:buildCMakeDebug[armeabi-v7a] FAILED
C/C++: ninja: Entering directory `/mnt/second_ssd/codes/PewPewWar/Android/app/.cxx/Debug/1r1g731w/armeabi-v7a'
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi29 --sysroot=/home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DGRAPHICS_API_OPENGL_ES2 -DPLATFORM_ANDROID -I/home/masnm/Android/Sdk/ndk/26.1.10909125/sources/android/native_app_glue -I/mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src -no-canonical-prefixes -Wa,--noexecstack -fstack-protector-strong -funwind-tables -ffunction-sections -fno-strict-aliasing -Werror=implicit-function-declaration -Werror=pointer-arith -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security  -fno-limit-debug-info  -fPIC -std=gnu99 -MD -MT raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o -MF raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o.d -o raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o -c /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2422:22: error: call to undeclared function 'vld1q_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     float16x8_t in = vld1q_f16(input);
C/C++:                      ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2422:22: note: did you mean 'vaddq_f16'?
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:34106:54: note: 'vaddq_f16' declared here
C/C++: __ai __attribute__((target("fullfp16"))) float16x8_t vaddq_f16(float16x8_t __p0, float16x8_t __p1) {
C/C++:                                                      ^
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2422:17: error: initializing 'float16x8_t' (vector of 8 'float16_t' values) with an expression of incompatible type 'int'
C/C++:     float16x8_t in = vld1q_f16(input);
C/C++:                 ^    ~~~~~~~~~~~~~~~~
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2423:27: error: call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     vst1q_f32(output + 0, vcvt_f32_f16(vget_low_f16(in)));
C/C++:                           ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2423:27: note: did you mean 'vcvt_f32_bf16'?
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:32615:50: note: 'vcvt_f32_bf16' declared here
C/C++: __ai __attribute__((target("bf16"))) float32x4_t vcvt_f32_bf16(bfloat16x4_t __p0_134) {
C/C++:                                                  ^
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2423:5: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
C/C++:     vst1q_f32(output + 0, vcvt_f32_f16(vget_low_f16(in)));
C/C++:     ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:26869:15: note: expanded from macro 'vst1q_f32'
C/C++:   float32x4_t __s1 = __p1; \
C/C++:               ^      ~~~~
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2424:27: error: call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     vst1q_f32(output + 4, vcvt_f32_f16(vget_high_f16(in)));
C/C++:                           ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2424:5: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
C/C++:     vst1q_f32(output + 4, vcvt_f32_f16(vget_high_f16(in)));
C/C++:     ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:26869:15: note: expanded from macro 'vst1q_f32'
C/C++:   float32x4_t __s1 = __p1; \
C/C++:               ^      ~~~~
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2429:24: error: call to undeclared function 'vcvt_f16_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     float16x4_t out0 = vcvt_f16_f32(vld1q_f32(input + 0));
C/C++:                        ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2429:24: note: did you mean 'vcvt_bf16_f32'?
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:39311:51: note: 'vcvt_bf16_f32' declared here
C/C++: __ai __attribute__((target("bf16"))) bfloat16x4_t vcvt_bf16_f32(float32x4_t __p0) {
C/C++:                                                   ^
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2429:17: error: initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int'
C/C++:     float16x4_t out0 = vcvt_f16_f32(vld1q_f32(input + 0));
C/C++:                 ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2430:17: error: initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int'
C/C++:     float16x4_t out1 = vcvt_f16_f32(vld1q_f32(input + 4));
C/C++:                 ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2431:5: error: call to undeclared function 'vst1q_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     vst1q_f16(output, vcombine_f16(out0, out1));
C/C++:     ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2431:5: note: did you mean 'vsubq_f16'?
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:35725:54: note: 'vsubq_f16' declared here
C/C++: __ai __attribute__((target("fullfp16"))) float16x8_t vsubq_f16(float16x8_t __p0, float16x8_t __p1) {
C/C++:                                                      ^
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2436:27: error: call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     return vgetq_lane_f32(vcvt_f32_f16(vdup_n_f16(h)), 0);
C/C++:                           ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2436:12: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
C/C++:     return vgetq_lane_f32(vcvt_f32_f16(vdup_n_f16(h)), 0);
C/C++:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:7818:15: note: expanded from macro 'vgetq_lane_f32'
C/C++:   float32x4_t __s0 = __p0; \
C/C++:               ^      ~~~~
C/C++: In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2441:26: error: call to undeclared function 'vcvt_f16_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
C/C++:     return vget_lane_f16(vcvt_f16_f32(vdupq_n_f32(f)), 0);
C/C++:                          ^
C/C++: /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2441:12: error: initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int'
C/C++:     return vget_lane_f16(vcvt_f16_f32(vdupq_n_f32(f)), 0);
C/C++:            ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:67287:15: note: expanded from macro 'vget_lane_f16'
C/C++:   float16x4_t __s0_847 = __p0_847; \
C/C++:               ^          ~~~~~~~~
C/C++: 14 errors generated.

Execution failed for task ':app:buildCMakeDebug[armeabi-v7a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/mnt/second_ssd/codes/PewPewWar/Android/app/.cxx/Debug/1r1g731w/armeabi-v7a'
  [1/3] Building C object raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o
  FAILED: raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o 
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi29 --sysroot=/home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DGRAPHICS_API_OPENGL_ES2 -DPLATFORM_ANDROID -I/home/masnm/Android/Sdk/ndk/26.1.10909125/sources/android/native_app_glue -I/mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src -no-canonical-prefixes -Wa,--noexecstack -fstack-protector-strong -funwind-tables -ffunction-sections -fno-strict-aliasing -Werror=implicit-function-declaration -Werror=pointer-arith -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security  -fno-limit-debug-info  -fPIC -std=gnu99 -MD -MT raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o -MF raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o.d -o raylib/raylib/CMakeFiles/raylib.dir/rtextures.c.o -c /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2422:22: error: call to undeclared function 'vld1q_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      float16x8_t in = vld1q_f16(input);
                       ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2422:22: note: did you mean 'vaddq_f16'?
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:34106:54: note: 'vaddq_f16' declared here
  __ai __attribute__((target("fullfp16"))) float16x8_t vaddq_f16(float16x8_t __p0, float16x8_t __p1) {
                                                       ^
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2422:17: error: initializing 'float16x8_t' (vector of 8 'float16_t' values) with an expression of incompatible type 'int'
      float16x8_t in = vld1q_f16(input);
                  ^    ~~~~~~~~~~~~~~~~
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2423:27: error: call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      vst1q_f32(output + 0, vcvt_f32_f16(vget_low_f16(in)));
                            ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2423:27: note: did you mean 'vcvt_f32_bf16'?
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:32615:50: note: 'vcvt_f32_bf16' declared here
  __ai __attribute__((target("bf16"))) float32x4_t vcvt_f32_bf16(bfloat16x4_t __p0_134) {
                                                   ^
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2423:5: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
      vst1q_f32(output + 0, vcvt_f32_f16(vget_low_f16(in)));
      ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:26869:15: note: expanded from macro 'vst1q_f32'
    float32x4_t __s1 = __p1; \
                ^      ~~~~
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2424:27: error: call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      vst1q_f32(output + 4, vcvt_f32_f16(vget_high_f16(in)));
                            ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2424:5: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
      vst1q_f32(output + 4, vcvt_f32_f16(vget_high_f16(in)));
      ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:26869:15: note: expanded from macro 'vst1q_f32'
    float32x4_t __s1 = __p1; \
                ^      ~~~~
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2429:24: error: call to undeclared function 'vcvt_f16_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      float16x4_t out0 = vcvt_f16_f32(vld1q_f32(input + 0));
                         ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2429:24: note: did you mean 'vcvt_bf16_f32'?
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:39311:51: note: 'vcvt_bf16_f32' declared here
  __ai __attribute__((target("bf16"))) bfloat16x4_t vcvt_bf16_f32(float32x4_t __p0) {
                                                    ^
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2429:17: error: initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int'
      float16x4_t out0 = vcvt_f16_f32(vld1q_f32(input + 0));
                  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2430:17: error: initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int'
      float16x4_t out1 = vcvt_f16_f32(vld1q_f32(input + 4));
                  ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2431:5: error: call to undeclared function 'vst1q_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      vst1q_f16(output, vcombine_f16(out0, out1));
      ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2431:5: note: did you mean 'vsubq_f16'?
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:35725:54: note: 'vsubq_f16' declared here
  __ai __attribute__((target("fullfp16"))) float16x8_t vsubq_f16(float16x8_t __p0, float16x8_t __p1) {
                                                       ^
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2436:27: error: call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      return vgetq_lane_f32(vcvt_f32_f16(vdup_n_f16(h)), 0);
                            ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2436:12: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
      return vgetq_lane_f32(vcvt_f32_f16(vdup_n_f16(h)), 0);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:7818:15: note: expanded from macro 'vgetq_lane_f32'
    float32x4_t __s0 = __p0; \
                ^      ~~~~
  In file included from /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/rtextures.c:222:
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2441:26: error: call to undeclared function 'vcvt_f16_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      return vget_lane_f16(vcvt_f16_f32(vdupq_n_f32(f)), 0);
                           ^
  /mnt/second_ssd/codes/PewPewWar/Android/app/src/main/cpp/raylib/src/external/stb_image_resize2.h:2441:12: error: initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int'
      return vget_lane_f16(vcvt_f16_f32(vdupq_n_f32(f)), 0);
             ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/masnm/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/include/arm_neon.h:67287:15: note: expanded from macro 'vget_lane_f16'
    float16x4_t __s0_847 = __p0_847; \
                ^          ~~~~~~~~
  14 errors generated.
  ninja: build stopped: subcommand failed.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 4s
39 actionable tasks: 8 executed, 31 up-to-date
failed
Download info
:app:buildCMakeDebug[armeabi-v7a]
stb_image_resize2.h
call to undeclared function 'vld1q_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
initializing 'float16x8_t' (vector of 8 'float16_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
call to undeclared function 'vcvt_f16_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
call to undeclared function 'vst1q_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
call to undeclared function 'vcvt_f32_f16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
call to undeclared function 'vcvt_f16_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [armeabi-v7a]
initializing 'float16x4_t' (vector of 4 'float16_t' values) with an expression of incompatible type 'int' [armeabi-v7a]
com.android.ide.common.process.ProcessException: ninja: Entering directory `/mnt/second_ssd/codes/PewPewWar/Android/app/.cxx/Debug/1r1g731w/armeabi-v7a'

image(2)
image(5)

@raysan5 raysan5 merged commit 0656440 into raysan5:master Sep 8, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Sep 8, 2024

@masnm thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants