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

Failed to build on Android NDK for arm arch #2028

Open
twaik opened this issue Dec 18, 2024 · 1 comment
Open

Failed to build on Android NDK for arm arch #2028

twaik opened this issue Dec 18, 2024 · 1 comment

Comments

@twaik
Copy link

twaik commented Dec 18, 2024

Hello. I tried to build vkmark for arm and faced this error:

FAILED: src/vkmark.p/vkutil_buffer_builder.cpp.o 
arm-linux-androideabi-clang++ -Isrc/vkmark.p -Isrc -I../src/src -I/data/data/com.termux/files/usr/include -fdiagnostics-color=always -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++14 -Oz -g '-DVKMARK_WINDOW_SYSTEM_DIR="/data/data/com.termux/files/usr/lib/vkmark"' '-DVKMARK_DATA_DIR="/data/data/com.termux/files/usr/share/vkmark"' '-DVKMARK_VERSION_STR="2017.08"' -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -Oz -fPIE -MD -MQ src/vkmark.p/vkutil_buffer_builder.cpp.o -MF src/vkmark.p/vkutil_buffer_builder.cpp.o.d -o src/vkmark.p/vkutil_buffer_builder.cpp.o -c ../src/src/vkutil/buffer_builder.cpp
In file included from ../src/src/vkutil/buffer_builder.cpp:23:
In file included from ../src/src/vkutil/buffer_builder.h:25:
In file included from /data/data/com.termux/files/usr/include/vulkan/vulkan.hpp:8864:
/data/data/com.termux/files/usr/include/vulkan/vulkan_structs.hpp:1241:90: error: invalid operands to binary expression ('const vk::AccelerationStructureKHR' and 'const vk::AccelerationStructureKHR')
 1241 |       return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( accelerationStructure == rhs.accelerationStructure ) &&
      |                                                                    ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/vulkan/vulkan.hpp:203:8: note: candidate template ignored: could not match 'const ArrayWrapper1D<char, N>' against 'const vk::AccelerationStructureKHR'
  203 |   bool operator==( ArrayWrapper1D<char, N> const & lhs, ArrayWrapper1D<char, M> const & rhs ) VULKAN_HPP_NOEXCEPT
      |        ^
/data/data/com.termux/files/usr/include/vulkan/vulkan.hpp:248:8: note: candidate template ignored: could not match 'const ArrayWrapper1D<char, N>' against 'const vk::AccelerationStructureKHR'
  248 |   bool operator==( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT
      |        ^
/data/data/com.termux/files/usr/include/vulkan/vulkan_enums.hpp:166:29: note: candidate template ignored: could not match 'const Flags<BitType>' against 'const vk::AccelerationStructureKHR'
  166 |   VULKAN_HPP_CONSTEXPR bool operator==( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT
      |                             ^
In file included from ../src/src/vkutil/buffer_builder.cpp:23:
In file included from ../src/src/vkutil/buffer_builder.h:25:
In file included from /data/data/com.termux/files/usr/include/vulkan/vulkan.hpp:8864:
/data/data/com.termux/files/usr/include/vulkan/vulkan_structs.hpp:1242:40: error: invalid operands to binary expression ('const vk::AccelerationStructureNV' and 'const vk::AccelerationStructureNV')
 1242 |              ( accelerationStructureNV == rhs.accelerationStructureNV );
      |                ~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/vulkan/vulkan.hpp:203:8: note: candidate template ignored: could not match 'const ArrayWrapper1D<char, N>' against 'const vk::AccelerationStructureNV'
  203 |   bool operator==( ArrayWrapper1D<char, N> const & lhs, ArrayWrapper1D<char, M> const & rhs ) VULKAN_HPP_NOEXCEPT
      |        ^
/data/data/com.termux/files/usr/include/vulkan/vulkan.hpp:248:8: note: candidate template ignored: could not match 'const ArrayWrapper1D<char, N>' against 'const vk::AccelerationStructureNV'
  248 |   bool operator==( std::string const & lhs, ArrayWrapper1D<char, N> const & rhs ) VULKAN_HPP_NOEXCEPT
      |        ^
/data/data/com.termux/files/usr/include/vulkan/vulkan_enums.hpp:166:29: note: candidate template ignored: could not match 'const Flags<BitType>' against 'const vk::AccelerationStructureNV'
  166 |   VULKAN_HPP_CONSTEXPR bool operator==( BitType bit, Flags<BitType> const & flags ) VULKAN_HPP_NOEXCEPT
      |                             ^

And many other similar errors.
Full transcript. log.txt

@asuessenbach
Copy link
Contributor

asuessenbach commented Jan 6, 2025

That's weird.

Could you please check if VULKAN_HPP_HAS_SPACESHIP_OPERATOR is defined in your project (see in vulkan_hpp_macros.hpp, line 83)?
Do you have the "operators to compare vk::-handles"-section in your vulkan_handles.hpp? Which part is enabled there?

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

No branches or pull requests

2 participants