Skip to content

Android armv7a build for libretro - incompatible pointer types passing #2976

Description

@cscd98

Compiled with:

cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO=ON -D__LIBRETRO__=ON -DBUILD_PLAYER=OFF -DBUILD_PRO=OFF -DBUILD_SDL=OFF -DBUILD_TOOLS=OFF -DBUILD_TOUCH_INPUT=OFF -DBUILD_STATIC=ON -DBUILD_WITH_ALL=OFF -DBUILD_WITH_LUA=ON -DBUILD_WITH_MOON=ON -DBUILD_WITH_FENNEL=ON -DBUILD_WITH_WREN=ON -DBUILD_WITH_WASM=ON -DBUILD_WITH_SQUIRREL=ON -DBUILD_WITH_PYTHON=ON -DBUILD_WITH_JS=ON -DBUILD_WITH_JANET=OFF -DBUILD_WITH_RUBY=OFF -DBUILD_WITH_YUE=OFF -DBUILD_WITH_SCHEME=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_EDITORS=OFF \-DANDROID_PLATFORM=android-21 -DCMAKE_TOOLCHAIN_FILE=$NDK_ROOT/build/cmake/android.toolchain.cmake -DANDROID_STL=c++_static -DANDROID_ABI=armeabi-v7a
[ 93%] Building C object vendor/zip/CMakeFiles/zip.dir/src/zip.c.o
In file included from /home/cscd98/Developer/TIC-80/core/vendor/zip/src/zip.c:37:
/home/cscd98/Developer/TIC-80/core/vendor/zip/src/miniz.h:5143:9: warning: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files. [-W#pragma-messages]
 5143 | #pragma message(                                                               \
      |         ^
/home/cscd98/Developer/TIC-80/core/vendor/zip/src/zip.c:211:26: error: incompatible pointer types passing 'struct stat *' to parameter of type 'struct stat64 * _Nonnull' [-Werror,-Wincompatible-pointer-types]
  211 |       if (lstat64(npath, &st) < 0) {
      |                          ^~~
/opt/android-sdk-linux/ndk/29.0.14206865/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/stat.h:233:66: note: passing argument to parameter '__buf' here
  233 | int lstat64(const char* _Nonnull __path, struct stat64* _Nonnull __buf);
      |                                                                  ^
1 warning and 1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions