KhronosGroup / KhronosGroup/Vulkan-Profiles

Vulkan-Profiles will not compile with Android NDK 28.0.13004108

Open
#758 1 comment 0 reactions 1 assignee View on GitHub

@christophe-lunarg is already working on this.

Since May 21, 2026.

  • #981 by @christophe-lunarg — closed without merging
C.I. Layer OS - Android P1
Dominant language
Python
Stars
176
Forks
84
Avg merge
9h 34m
Merged PRs (30d)
37

Description

Vulkan-ValidationLayers would like to update the NDK compiler on our CI systems to NDK 28.0.13004108, to gain access to 16K page sizes required by Android 15 devices.

Vulkan-Profiles does not currently compile with NDK 28.0.13004108, apparently due to a new compiler warnings: http://tcubuser.lunarg.localdomain:8080/view/Manual/job/manual-VulkanProfiles/97/console

/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/layer/profiles_generated.cpp:11904:9: warning: loop will run at most once (loop increment never executed) [-Wunreachable-code-loop-increment]
 11904 |         for (const auto &profile : profiles.getMemberNames()) {
       |         ^~~
/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/layer/profiles_generated.cpp:12006:17: warning: loop will run at most once (loop increment never executed) [-Wunreachable-code-loop-increment]
 12006 |                 for (const auto &profile : profiles.getMemberNames()) {
       |                 ^~~
/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/library/test/test_api_create_device_android.cpp:145:49: warning: unused parameter 'app' [-Wunused-parameter]
  145 | static int32_t processInput(struct android_app *app, AInputEvent *event) { return 0; }
      |                                                 ^
/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/library/test/test_api_create_device_android.cpp:145:67: warning: unused parameter 'event' [-Wunused-parameter]
  145 | static int32_t processInput(struct android_app *app, AInputEvent *event) { return 0; }
      |                                                                   ^
/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/library/test/test_api_create_device_android.cpp:173:22: error: 'ALooper_pollAll' is unavailable: obsoleted in Android 1 - ALooper_pollAll may ignore wakes. Use ALooper_pollOnce instead. See The API documentation for more information
  173 |         int result = ALooper_pollAll(-1, nullptr, &events, reinterpret_cast<void **>(&source));
      |                      ^
/home/lunarg/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/looper.h:234:5: note: 'ALooper_pollAll' has been explicitly marked unavailable here
  234 | int ALooper_pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData)
      |     ^
/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/library/test/test_api_create_device_android.cpp:192:16: error: 'ALooper_pollAll' is unavailable: obsoleted in Android 1 - ALooper_pollAll may ignore wakes. Use ALooper_pollOnce instead. See The API documentation for more information
  192 |         while (ALooper_pollAll(active ? 0 : -1, NULL, &events, (void **)&source) >= 0) {
      |                ^
/home/lunarg/Android/Sdk/ndk/28.0.13004108/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/looper.h:234:5: note: 'ALooper_pollAll' has been explicitly marked unavailable here
  234 | int ALooper_pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData)
      |     ^
/home/lunarg/.jenkins/workspace/manual-VulkanProfiles/VulkanProfiles/library/test/test_api_create_device_android.cpp:184:27: warning: unused variable 'window' [-Wunused-variable]
  184 |     static ANativeWindow *window;
      |                           ^~~~~~
3 warnings and 2 errors generated.
gmake[2]: *** [library/test/CMakeFiles/VpLibrary_test_api_create_device_android.dir/build.make:79: library/test/CMakeFiles/VpLibrary_test_api_create_device_android.dir/test_api_create_device_android.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:791: library/test/CMakeFiles/VpLibrary_test_api_create_device_android.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
2 warnings generated.
gmake: *** [Makefile:146: all] Error 2

These warnings need to be fixed before we can move to Android NDK 28.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.