I'm trying to compile this simple vulkan instance(Basically the vulkan tutorial) with GLFW(3.3.8) and Vulkan-headers(1.3.273) all from the pkg repo. I'm using the build2 build system with clang++. Although it doesn't matter whether I use G++ with libstdc++ or the system default. It keeps complaining about a similar error.
What I have installed through pkg:
- vulkan-extension-layer-1.3.272
- vulkan-headers-1.3.273
- vulkan-validation-layers-1.3.273
- vulkan-tools-1.3.273
- glfw-3.3.8
It works on Windows 10 and WSL2(Ubuntu), but not on FreeBSD for some reason. Don't know if it's a version mismatch or something along those lines. Have not tried it on a complete linux userland through linuxulator.
Output:
Anyone else experience similar issues?
What I have installed through pkg:
- vulkan-extension-layer-1.3.272
- vulkan-headers-1.3.273
- vulkan-validation-layers-1.3.273
- vulkan-tools-1.3.273
- glfw-3.3.8
It works on Windows 10 and WSL2(Ubuntu), but not on FreeBSD for some reason. Don't know if it's a version mismatch or something along those lines. Have not tried it on a complete linux userland through linuxulator.
Output:
Code:
c++ cxx{vulk} -> ../../vulk-freebsd-clang-debug/vulk/vulk/obje{vulk}
In file included from /home/bsd/repos/build2/c++/exe/build2-vulk/vulk/vulk/vulk.cxx:3:
In file included from /usr/local/include/vulkan/vulkan.hpp:8562:
/usr/local/include/vulkan/vulkan_structs.hpp:16076:9: error: member initializer '__major' does not name a non-static data member or base class
: major( major_ )
^~~~~~~~~~~~~~~
/usr/include/sys/types.h:329:18: note: expanded from macro 'major'
#define major(d) __major(d)
^~~~~~~~~~
In file included from /home/bsd/repos/build2/c++/exe/build2-vulk/vulk/vulk/vulk.cxx:3:
In file included from /usr/local/include/vulkan/vulkan.hpp:8562:
/usr/local/include/vulkan/vulkan_structs.hpp:16077:9: error: member initializer '__minor' does not name a non-static data member or base class
, minor( minor_ )
^~~~~~~~~~~~~~~
/usr/include/sys/types.h:335:18: note: expanded from macro 'minor'
#define minor(d) __minor(d)
^~~~~~~~~~
2 errors generated.
error: process clang++ exited with code 1
info: command line: clang++ -I/usr/local/include/vulkan -I/home/bsd/repos/build2/c++/exe/build2-vulk/vulk-freebsd-clang-debug/vulk -I/home/bsd/repos/build2/c++/exe/build2-vulk/vulk -std=c++2b -g -Wno-unqualified-std-cast-call -isystem /usr/local/include -fdiagnostics-color -finput-charset=UTF-8 -o ../../vulk-freebsd-clang-debug/vulk/vulk/vulk.o -c -x c++ /home/bsd/repos/build2/c++/exe/build2-vulk/vulk/vulk/vulk.cxx
info: while updating ../../vulk-freebsd-clang-debug/vulk/vulk/obje{vulk}
info: while updating ../../vulk-freebsd-clang-debug/vulk/vulk/exe{vulk}
info: while updating ../../vulk-freebsd-clang-debug/vulk/dir{vulk/}
info: failed to update ../../vulk-freebsd-clang-debug/vulk/dir{vulk/}
Anyone else experience similar issues?
Last edited by a moderator: