KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

Build failure in parameter validation #872

Closed Themaister closed 8 years ago

Themaister commented 8 years ago

Commit: 2ad4493189171 OS: Linux x64 and ARMv7

Trying to build, but just getting build errors. Can't see anything obvious.

[ 42%] Built target VkLayer_swapchain
[ 43%] Building CXX object layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation.cpp.o
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateInstance(debug_report_data*, const VkInstanceCreateInfo*, const VkAllocationCallbacks*, VkInstance_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:86:171: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 idate_struct_pnext(report_data, "vkCreateInstance", "pCreateInfo->pApplicationInfo->pNext", NULL, pCreateInfo->pApplicationInfo->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateDevice(debug_report_data*, const VkDeviceCreateInfo*, const VkAllocationCallbacks*, VkDevice_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:243:198: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 rt_data, "vkCreateDevice", "pCreateInfo->pQueueCreateInfos[i].pNext", NULL, pCreateInfo->pQueueCreateInfos[queueCreateInfoIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkQueueSubmit(debug_report_data*, uint32_t, const VkSubmitInfo*, VkFence)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:460:140: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
             skipCall |= validate_struct_pnext(report_data, "vkQueueSubmit", "pSubmits[i].pNext", NULL, pSubmits[submitIndex].pNext, 0, NULL);
                                                                                                                                            ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkAllocateMemory(debug_report_data*, const VkMemoryAllocateInfo*, const VkAllocationCallbacks*, VkDeviceMemory_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:487:135: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkAllocateMemory", "pAllocateInfo->pNext", NULL, pAllocateInfo->pNext, 0, NULL);
                                                                                                                                       ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkFlushMappedMemoryRanges(debug_report_data*, uint32_t, const VkMappedMemoryRange*)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:571:167: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
  validate_struct_pnext(report_data, "vkFlushMappedMemoryRanges", "pMemoryRanges[i].pNext", NULL, pMemoryRanges[memoryRangeIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkInvalidateMappedMemoryRanges(debug_report_data*, uint32_t, const VkMappedMemoryRange*)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:593:172: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 date_struct_pnext(report_data, "vkInvalidateMappedMemoryRanges", "pMemoryRanges[i].pNext", NULL, pMemoryRanges[memoryRangeIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkQueueBindSparse(debug_report_data*, uint32_t, const VkBindSparseInfo*, VkFence)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:736:148: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkQueueBindSparse", "pBindInfo[i].pNext", NULL, pBindInfo[bindInfoIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateFence(debug_report_data*, const VkFenceCreateInfo*, const VkAllocationCallbacks*, VkFence_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:821:128: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateFence", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateSemaphore(debug_report_data*, const VkSemaphoreCreateInfo*, const VkAllocationCallbacks*, VkSemaphore_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:914:132: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateSemaphore", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                    ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateEvent(debug_report_data*, const VkEventCreateInfo*, const VkAllocationCallbacks*, VkEvent_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:966:128: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateEvent", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateQueryPool(debug_report_data*, const VkQueryPoolCreateInfo*, const VkAllocationCallbacks*, VkQueryPool_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1051:132: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateQueryPool", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                    ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateBuffer(debug_report_data*, const VkBufferCreateInfo*, const VkAllocationCallbacks*, VkBuffer_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1130:129: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateBuffer", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                 ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateBufferView(debug_report_data*, const VkBufferViewCreateInfo*, const VkAllocationCallbacks*, VkBufferView_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1186:133: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateBufferView", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                     ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateImage(debug_report_data*, const VkImageCreateInfo*, const VkAllocationCallbacks*, VkImage_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1242:128: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateImage", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateImageView(debug_report_data*, const VkImageViewCreateInfo*, const VkAllocationCallbacks*, VkImageView_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1328:132: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateImageView", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                    ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateShaderModule(debug_report_data*, const VkShaderModuleCreateInfo*, const VkAllocationCallbacks*, VkShaderModule_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1396:135: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateShaderModule", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                       ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreatePipelineCache(debug_report_data*, const VkPipelineCacheCreateInfo*, const VkAllocationCallbacks*, VkPipelineCache_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1450:136: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreatePipelineCache", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                        ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateGraphicsPipelines(debug_report_data*, VkPipelineCache, uint32_t, const VkGraphicsPipelineCreateInfo*, const VkAllocationCallbacks*, VkPipeline_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1540:164: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
  |= validate_struct_pnext(report_data, "vkCreateGraphicsPipelines", "pCreateInfos[i].pNext", NULL, pCreateInfos[createInfoIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1550:203: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 t_data, "vkCreateGraphicsPipelines", "pCreateInfos[i].pStages[i].pNext", NULL, pCreateInfos[createInfoIndex].pStages[stageIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1571:206: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
  "vkCreateGraphicsPipelines", "pCreateInfos[i].pVertexInputState->pNext", NULL, pCreateInfos[createInfoIndex].pVertexInputState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1600:210: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 CreateGraphicsPipelines", "pCreateInfos[i].pInputAssemblyState->pNext", NULL, pCreateInfos[createInfoIndex].pInputAssemblyState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1611:208: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 vkCreateGraphicsPipelines", "pCreateInfos[i].pTessellationState->pNext", NULL, pCreateInfos[createInfoIndex].pTessellationState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1618:200: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 _data, "vkCreateGraphicsPipelines", "pCreateInfos[i].pViewportState->pNext", NULL, pCreateInfos[createInfoIndex].pViewportState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1629:292: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 eRasterizationStateRasterizationOrderAMD", pCreateInfos[createInfoIndex].pRasterizationState->pNext, ARRAY_SIZE(allowedStructs), allowedStructs);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1648:206: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
  "vkCreateGraphicsPipelines", "pCreateInfos[i].pMultisampleState->pNext", NULL, pCreateInfos[createInfoIndex].pMultisampleState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1663:208: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 vkCreateGraphicsPipelines", "pCreateInfos[i].pDepthStencilState->pNext", NULL, pCreateInfos[createInfoIndex].pDepthStencilState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1696:204: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 a, "vkCreateGraphicsPipelines", "pCreateInfos[i].pColorBlendState->pNext", NULL, pCreateInfos[createInfoIndex].pColorBlendState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1731:198: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 rt_data, "vkCreateGraphicsPipelines", "pCreateInfos[i].pDynamicState->pNext", NULL, pCreateInfos[createInfoIndex].pDynamicState->pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateComputePipelines(debug_report_data*, VkPipelineCache, uint32_t, const VkComputePipelineCreateInfo*, const VkAllocationCallbacks*, VkPipeline_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1776:163: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 l |= validate_struct_pnext(report_data, "vkCreateComputePipelines", "pCreateInfos[i].pNext", NULL, pCreateInfos[createInfoIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1782:175: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 e_struct_pnext(report_data, "vkCreateComputePipelines", "pCreateInfos[i].stage.pNext", NULL, pCreateInfos[createInfoIndex].stage.pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreatePipelineLayout(debug_report_data*, const VkPipelineLayoutCreateInfo*, const VkAllocationCallbacks*, VkPipelineLayout_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1848:137: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreatePipelineLayout", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                         ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateSampler(debug_report_data*, const VkSamplerCreateInfo*, const VkAllocationCallbacks*, VkSampler_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1912:130: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateSampler", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                  ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateDescriptorSetLayout(debug_report_data*, const VkDescriptorSetLayoutCreateInfo*, const VkAllocationCallbacks*, VkDescriptorSetLayout_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:1982:142: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateDescriptorSetLayout", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                              ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkCreateDescriptorPool(debug_report_data*, const VkDescriptorPoolCreateInfo*, const VkAllocationCallbacks*, VkDescriptorPool_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:2044:137: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkCreateDescriptorPool", "pCreateInfo->pNext", NULL, pCreateInfo->pNext, 0, NULL);
                                                                                                                                         ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkAllocateDescriptorSets(debug_report_data*, const VkDescriptorSetAllocateInfo*, VkDescriptorSet_T**)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:2119:143: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
         skipCall |= validate_struct_pnext(report_data, "vkAllocateDescriptorSets", "pAllocateInfo->pNext", NULL, pAllocateInfo->pNext, 0, NULL);
                                                                                                                                               ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h: In function ‘bool parameter_validation::parameter_validation_vkUpdateDescriptorSets(debug_report_data*, uint32_t, const VkWriteDescriptorSet*, uint32_t, const VkCopyDescriptorSet*)’:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:2163:176: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 _struct_pnext(report_data, "vkUpdateDescriptorSets", "pDescriptorWrites[i].pNext", NULL, pDescriptorWrites[descriptorWriteIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:0:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:2185:175: error: too few arguments to function ‘bool parameter_validation::validate_struct_pnext(debug_report_data*, const char*, const char*, const char*, const void*, size_t, const VkStructureType*, uint32_t)’
 e_struct_pnext(report_data, "vkUpdateDescriptorSets", "pDescriptorCopies[i].pNext", NULL, pDescriptorCopies[descriptorCopyIndex].pNext, 0, NULL);
                                                                                                                                                ^
In file included from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.h:29:0,
                 from /git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation.cpp:50:
/git/Vulkan-LoaderAndValidationLayers/layers/parameter_validation_utils.h:465:13: note: declared here
 static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const char *parameter_name,
lentinem commented 8 years ago

Can you post what compiler and version you are using?

Themaister commented 8 years ago

GCC 6.1.1 on x64 and 4.8.4 on ARMv7.

stroyan commented 8 years ago

The generated file parameter_validation.h is not up to date with the non-generated files from commit 2ad4493. It is unusual that parameter_validation.h is being found in layers/ instead of dbuild/layers/ or build/layers/. Perhaps in the past you did a non-standard command like ./update_external_sources.sh; cmake -H. -B. -DCMAKE_BUILD_TYPE=Debug; make that created a layers/parameter_validation.h file. Then when you did a normal ./update_external_sources.sh; cmake -H. -Bdbuild -DCMAKE_BUILD_TYPE=Debug; cd dbuild; make the old generated header files left behind in the layers/ directory were found before the current generated files in dbuild/layers. You could clear out any troublesome old files with git clean -fdx and try a normal build sequence as stated in BUILD.md.

Themaister commented 8 years ago

Cloning a fresh repo fixed the issue.