Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-6005

File permissions changed on macOS11 for /opt/android/android-ndk-r26b/

    XMLWordPrintable

Details

    • macOS
    • 164d38c99 (dev), e94e10c62 (6.7)

    Description

      RTA test uses macOS11 for compiling Qt examples with Android. RTA tests have not been updated recently, but after the previous maintenance break, example builds are failing:

      Run /Users/qt/RTA/Qt_6.7.0/6.7.0/android_arm64_v8a/bin/qt-cmake -S /Users/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/gui/rasterwindow -B /Users/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/gui/rasterwindow/bld_arm64-v8a -DANDROID_SDK_ROOT=/opt/android/sdk -DANDROID_NDK_ROOT=/opt/android/android-ndk-r26b -GNinja

      CMake Warning (dev) at /Users/qt/RTA/Qt_6.7.0/Tools/CMake/CMake.app/Contents/share/cmake-3.27/Modules/CMakeFindBinUtils.cmake:224 (find_program):
        Policy CMP0109 is not set: find_program() requires permission to execute
        but not to read.  Run "cmake --help-policy CMP0109" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
        The file
          /opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld
        is readable but not executable.  CMake is using it for compatibility.
      Call Stack (most recent call first):
        /Users/qt/RTA/Qt_6.7.0/Tools/CMake/CMake.app/Contents/share/cmake-3.27/Modules/CMakeDetermineCXXCompiler.cmake:202 (include)
        CMakeLists.txt:5 (project)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      CMake Error at /Users/qt/RTA/Qt_6.7.0/Tools/CMake/CMake.app/Contents/share/cmake-3.27/Modules/CMakeTestCXXCompiler.cmake:60 (message):
        The C++ compiler
          "/opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++"
        is not able to compile a simple test program.
        It fails with the following output:
          Change Dir: '/Users/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/gui/rasterwindow/bld_arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-YkyBxD'
          
          Run Build Command(s): /Users/qt/RTA/Qt_6.7.0/Tools/Ninja/ninja -v cmTC_6eff4
          [1/2] /opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++   -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -o CMakeFiles/cmTC_6eff4.dir/testCXXCompiler.cxx.o -c /Users/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/gui/rasterwindow/bld_arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-YkyBxD/testCXXCompiler.cxx
          FAILED: CMakeFiles/cmTC_6eff4.dir/testCXXCompiler.cxx.o 
          /opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++   -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -o CMakeFiles/cmTC_6eff4.dir/testCXXCompiler.cxx.o -c /Users/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/gui/rasterwindow/bld_arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-YkyBxD/testCXXCompiler.cxx
          /bin/sh: /opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++: Permission denied
          ninja: build stopped: subcommand failed.  CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:5 (project)
      -- Android toolchain file within NDK detected: /opt/android/android-ndk-r26b/build/cmake/android.toolchain.cmake
      -- Android toolchain file within NDK detected: /opt/android/android-ndk-r26b/build/cmake/android.toolchain.cmake
      -- The CXX compiler identification is unknown
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - failed
      -- Check for working CXX compiler: /opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
      -- Check for working CXX compiler: /opt/android/android-ndk-r26b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - broken
      -- Configuring incomplete, errors occurred! 

      CI seems to use macOS13 for Android builds and with a quick compare the file permissions are different in macOS11 and macOS13 (macOS11 has only r permissions).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mapaaso Matti Paaso
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes