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

0.3.2.8: fails to build with error: 'VK_LAYER_EXPORT' does not name a type #207

Closed
tgurr opened this issue Feb 24, 2023 · 1 comment · Fixed by #208
Closed

0.3.2.8: fails to build with error: 'VK_LAYER_EXPORT' does not name a type #207

tgurr opened this issue Feb 24, 2023 · 1 comment · Fixed by #208

Comments

@tgurr
Copy link

tgurr commented Feb 24, 2023

using
glslang: 12.0.0
vulkan: 1.3.241

FAILED: src/libvkbasalt.so.p/basalt.cpp.o 
x86_64-pc-linux-gnu-c++ -Isrc/libvkbasalt.so.p -Isrc -I../vkBasalt-0.3.2.8/src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++2a -O0 -g -march=native -O2 -pipe -march=native -O2 -fPIC -MD -MQ src/libvkbasalt.so.p/basalt.cpp.o -MF src/libvkbasalt.so.p/basalt.cpp.o.d -o src/libvkbasalt.so.p/basalt.cpp.o -c ../vkBasalt-0.3.2.8/src/basalt.cpp
../vkBasalt-0.3.2.8/src/basalt.cpp:70:5: error: 'VK_LAYER_EXPORT' does not name a type
   70 |     VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_CreateInstance(const VkInstanceCreateInfo*  pCreateInfo,
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:136:5: error: 'VK_LAYER_EXPORT' does not name a type
  136 |     VK_LAYER_EXPORT void VKAPI_CALL vkBasalt_DestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator)
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:151:5: error: 'VK_LAYER_EXPORT' does not name a type
  151 |     VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_CreateDevice(VkPhysicalDevice             physicalDevice,
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:286:5: error: 'VK_LAYER_EXPORT' does not name a type
  286 |     VK_LAYER_EXPORT void VKAPI_CALL vkBasalt_DestroyDevice(VkDevice device, const VkAllocationCallbacks* pAllocator)
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:750:5: error: 'VK_LAYER_EXPORT' does not name a type
  750 |     VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_EnumerateInstanceLayerProperties(uint32_t* pPropertyCount, VkLayerProperties* pProperties)
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:766:5: error: 'VK_LAYER_EXPORT' does not name a type
  766 |     VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_EnumerateDeviceLayerProperties(VkPhysicalDevice   physicalDevice,
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:773:5: error: 'VK_LAYER_EXPORT' does not name a type
  773 |     VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_EnumerateInstanceExtensionProperties(const char*            pLayerName,
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:790:5: error: 'VK_LAYER_EXPORT' does not name a type
  790 |     VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_EnumerateDeviceExtensionProperties(VkPhysicalDevice       physicalDevice,
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:820:5: error: 'VK_LAYER_EXPORT' does not name a type
  820 |     VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL vkBasalt_GetDeviceProcAddr(VkDevice device, const char* pName);
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:821:5: error: 'VK_LAYER_EXPORT' does not name a type
  821 |     VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL vkBasalt_GetInstanceProcAddr(VkInstance instance, const char* pName);
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:860:5: error: 'VK_LAYER_EXPORT' does not name a type
  860 |     VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL vkBasalt_GetDeviceProcAddr(VkDevice device, const char* pName)
      |     ^~~~~~~~~~~~~~~
../vkBasalt-0.3.2.8/src/basalt.cpp:875:5: error: 'VK_LAYER_EXPORT' does not name a type
  875 |     VK_LAYER_EXPORT PFN_vkVoidFunction VKAPI_CALL vkBasalt_GetInstanceProcAddr(VkInstance instance, const char* pName)
      |     ^~~~~~~~~~~~~~~

full build log: vkbasalt-0.3.2.8.log.txt

@DadSchoorse
Copy link
Owner

Yeah looks like a poor Vulkan-Headers decision: KhronosGroup/Vulkan-Headers@e8b8e06

I guess I'll have to tag another release just of this mess. In the meantime I think if you remove the VK_LAYER_EXPORT it should still work.

DadSchoorse pushed a commit that referenced this issue Mar 2, 2023
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

Successfully merging a pull request may close this issue.

2 participants