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

[gklib] Build error on arm64-android #36791

Closed
bmanga opened this issue Feb 16, 2024 · 3 comments · Fixed by #37877
Closed

[gklib] Build error on arm64-android #36791

bmanga opened this issue Feb 16, 2024 · 3 comments · Fixed by #37877
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support depends:upstream-changes Waiting on a change to the upstream project

Comments

@bmanga
Copy link

bmanga commented Feb 16, 2024

Package: gklib:arm64-android@2022-07-27#2

Host Environment

  • Host: x64-linux
  • Compiler: Clang 17.0.2
  • vcpkg-tool version: 2023-12-12-1c9ec1978a6b0c2b39c9e9554a96e3e275f7556e
    vcpkg-scripts version: 5c5edf4 2024-02-15 (6 hours ago)

To Reproduce

vcpkg install
Failure logs

-- Using cached KarypisLab-GKlib-b1cb3bd7f6bf4da641af901c8d455c0f858c816f.tar.gz.
-- Cleaning sources at /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/CORP/b.manganelli/Projects/vcpkg/downloads/KarypisLab-GKlib-b1cb3bd7f6bf4da641af901c8d455c0f858c816f.tar.gz
-- Applying patch build-fixes.patch
-- Applying patch fix-mingw.patch
-- Using source at /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean
-- Configuring arm64-android
-- Building arm64-android-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /home/CORP/b.manganelli/Projects/vcpkg/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j17
    Working Directory: /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/arm64-android-dbg
    See logs for more information:
      /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/install-arm64-android-dbg-out.log

Call Stack (most recent call first):
  /home/CORP/b.manganelli/nerf/NeRF-Szeged/build-release-android-v3/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  /home/CORP/b.manganelli/nerf/NeRF-Szeged/build-release-android-v3/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/gklib/portfile.cmake:18 (vcpkg_cmake_install)
  scripts/ports.cmake:170 (include)



/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/install-arm64-android-dbg-out.log
Change Dir: '/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/arm64-android-dbg'

Run Build Command(s): /home/CORP/b.manganelli/Projects/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j17 install
[1/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/gkregex.c.o -MF CMakeFiles/GKlib.dir/gkregex.c.o.d -o CMakeFiles/GKlib.dir/gkregex.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/gkregex.c
[2/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/b64.c.o -MF CMakeFiles/GKlib.dir/b64.c.o.d -o CMakeFiles/GKlib.dir/b64.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/b64.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/b64.c:20:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[3/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/error.c.o -MF CMakeFiles/GKlib.dir/error.c.o.d -o CMakeFiles/GKlib.dir/error.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/error.c
FAILED: CMakeFiles/GKlib.dir/error.c.o 
/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/error.c.o -MF CMakeFiles/GKlib.dir/error.c.o.d -o CMakeFiles/GKlib.dir/error.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/error.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/error.c:16:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/error.c:205:10: error: call to undeclared function 'backtrace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  size = backtrace(array, 10);
         ^
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/error.c:206:13: error: call to undeclared function 'backtrace_symbols'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  strings = backtrace_symbols(array, size);
            ^
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/error.c:206:11: error: incompatible integer to pointer conversion assigning to 'char **' from 'int' [-Wint-conversion]
  strings = backtrace_symbols(array, size);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 3 errors generated.
[4/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/fs.c.o -MF CMakeFiles/GKlib.dir/fs.c.o.d -o CMakeFiles/GKlib.dir/fs.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/fs.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/fs.c:14:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[5/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/fkvkselect.c.o -MF CMakeFiles/GKlib.dir/fkvkselect.c.o.d -o CMakeFiles/GKlib.dir/fkvkselect.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/fkvkselect.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/fkvkselect.c:11:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[6/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/cache.c.o -MF CMakeFiles/GKlib.dir/cache.c.o.d -o CMakeFiles/GKlib.dir/cache.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/cache.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/cache.c:12:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[7/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/evaluate.c.o -MF CMakeFiles/GKlib.dir/evaluate.c.o.d -o CMakeFiles/GKlib.dir/evaluate.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/evaluate.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/evaluate.c:10:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[8/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/htable.c.o -MF CMakeFiles/GKlib.dir/htable.c.o.d -o CMakeFiles/GKlib.dir/htable.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/htable.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/htable.c:11:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[9/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/gk_util.c.o -MF CMakeFiles/GKlib.dir/gk_util.c.o.d -o CMakeFiles/GKlib.dir/gk_util.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/gk_util.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/gk_util.c:11:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[10/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/itemsets.c.o -MF CMakeFiles/GKlib.dir/itemsets.c.o.d -o CMakeFiles/GKlib.dir/itemsets.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/itemsets.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/itemsets.c:13:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[11/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/getopt.c.o -MF CMakeFiles/GKlib.dir/getopt.c.o.d -o CMakeFiles/GKlib.dir/getopt.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/getopt.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/getopt.c:37:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[12/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/io.c.o -MF CMakeFiles/GKlib.dir/io.c.o.d -o CMakeFiles/GKlib.dir/io.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/io.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/io.c:19:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[13/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/mcore.c.o -MF CMakeFiles/GKlib.dir/mcore.c.o.d -o CMakeFiles/GKlib.dir/mcore.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/mcore.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/mcore.c:11:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[14/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/random.c.o -MF CMakeFiles/GKlib.dir/random.c.o.d -o CMakeFiles/GKlib.dir/random.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/random.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/random.c:11:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[15/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/blas.c.o -MF CMakeFiles/GKlib.dir/blas.c.o.d -o CMakeFiles/GKlib.dir/blas.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/blas.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/blas.c:18:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[16/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/pqueue.c.o -MF CMakeFiles/GKlib.dir/pqueue.c.o.d -o CMakeFiles/GKlib.dir/pqueue.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/pqueue.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/pqueue.c:12:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[17/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/graph.c.o -MF CMakeFiles/GKlib.dir/graph.c.o.d -o CMakeFiles/GKlib.dir/graph.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/graph.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/graph.c:10:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[18/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/memory.c.o -MF CMakeFiles/GKlib.dir/memory.c.o.d -o CMakeFiles/GKlib.dir/memory.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/memory.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/memory.c:16:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
[19/27] /home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/CORP/b.manganelli/Android/Sdk/ndk/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -I/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC   -DLINUX -D_FILE_OFFSET_BITS=64 -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE  -fno-limit-debug-info    -fPIC -MD -MT CMakeFiles/GKlib.dir/csr.c.o -MF CMakeFiles/GKlib.dir/csr.c.o.d -o CMakeFiles/GKlib.dir/csr.c.o -c /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/csr.c
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/csr.c:10:
In file included from /home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./GKlib.h:23:
/home/CORP/b.manganelli/Projects/vcpkg/buildtrees/gklib/src/0f858c816f-442d6f112c.clean/./gk_arch.h:45:16: warning: extra tokens at end of #ifndef directive [-Wextra-tokens]
#ifndef _WIN32 # MinGW
               ^
               //
1 warning generated.
ninja: build stopped: subcommand failed.
@Cheney-W
Copy link
Contributor

This should be an upstream issue. Please refer to this issue and report it to the upstream.

@Cheney-W Cheney-W added the depends:upstream-changes Waiting on a change to the upstream project label Feb 18, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Feb 18, 2024

This should be an upstream issue. Please refer to this issue and report it to the upstream.

No, it One warning is from fix-mingw.patch.

@Cheney-W
Copy link
Contributor

@bmanga Could you please try using this PR to see if it resolves this issue? Thank you!

@Cheney-W Cheney-W added the category:port-bug The issue is with a library, which is something the port should already support label Mar 13, 2024
BillyONeal pushed a commit that referenced this issue Apr 1, 2024
Fixes #36791. (Alternative to
#37416)
Update, remove obsolete patches, cleanup.
Enable shared linkage on !windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support depends:upstream-changes Waiting on a change to the upstream project
Projects
None yet
3 participants