Bug 247075 - graphics/vulkan-loader build with wayland wsi support is broken
Summary: graphics/vulkan-loader build with wayland wsi support is broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-08 05:36 UTC by nick.rozhkov
Modified: 2020-06-19 10:41 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nick.rozhkov 2020-06-08 05:36:39 UTC
FreeBSD daemon.sanitarium.com.ua 12.1-RELEASE-p5 FreeBSD 12.1-RELEASE-p5 
port options for vulkan-loader
_OPTIONS_READ=vulkan-loader-1.2.135.0
_FILE_COMPLETE_OPTIONS_LIST=WAYLAND XCB XLIB
OPTIONS_FILE_SET+=WAYLAND
OPTIONS_FILE_SET+=XCB
OPTIONS_FILE_SET+=XLIB
Clang version - 8.0.1

Build error output
FAILED: loader/CMakeFiles/vulkan.dir/debug_utils.c.o 
/usr/bin/cc -DAPI_NAME=\"Vulkan\" -DEXTRASYSCONFDIR=\"/etc\" -DFALLBACK_CONFIG_DIRS=\"/etc/xdg\" -DFALLBACK_DATA_DIRS=\"/usr/local/share:/usr/share\" -DSYSCONFDIR=\"/usr/local/etc\" -DVK_ENABLE_BETA_EXTENSIONS -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -Dvulkan_EXPORTS -I/usr/local/include -I/usr/ports/graphics/vulkan-loader/work/Vulkan-Loader-sdk-1.2.135.0/loader -I/usr/ports/graphics/vulkan-loader/work/Vulkan-Loader-sdk-1.2.135.0/loader/generated -Iloader -O2 -pipe -march=native  -fstack-protector-strong -fno-strict-aliasing -std=c99 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -fvisibility=hidden -Wpointer-arith -Wno-typedef-redefinition -O2 -pipe -march=native  -fstack-protector-strong -fno-strict-aliasing -fPIC -MD -MT loader/CMakeFiles/vulkan.dir/debug_utils.c.o -MF loader/CMakeFiles/vulkan.dir/debug_utils.c.o.d -o loader/CMakeFiles/vulkan.dir/debug_utils.c.o   -c /usr/ports/graphics/vulkan-loader/work/Vulkan-Loader-sdk-1.2.135.0/loader/debug_utils.c
In file included from /usr/ports/graphics/vulkan-loader/work/Vulkan-Loader-sdk-1.2.135.0/loader/debug_utils.c:39:
In file included from /usr/local/include/vk_object_types.h:35:
/usr/local/include/cast_utils.h:24:10: fatal error: 'cassert' file not found
#include <cassert>
         ^~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/vulkan-loader
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/vulkan-loader

clang version
Comment 1 Val Packett 2020-06-08 09:47:25 UTC
12.1 definitely should have <cassert> https://github.com/freebsd/freebsd/blob/releng/12.1/contrib/libc++/include/cassert

and I'm not seeing any failures on the official package builders (other than some i386-head assembler crashes). Wayland WSI is enabled by default.

I'm not sure why /use/bin/cc is being used in this log, 12.1 should be using llvm10 from ports.

Something is busted on your side I guess.
Comment 2 nick.rozhkov 2020-06-12 19:37:05 UTC
(In reply to Greg V from comment #1)

Just tried to found the source of problem and it seems like the problem appears when devel/vulkan-validation-layers port is installed in the system
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-06-19 10:40:44 UTC
A commit references this bug:

Author: jbeich
Date: Fri Jun 19 10:39:55 UTC 2020
New revision: 539602
URL: https://svnweb.freebsd.org/changeset/ports/539602

Log:
  graphics/vulkan-loader: unbreak with devel/vulkan-validation-layers

  In file included from /usr/ports/graphics/vulkan-loader/work/Vulkan-Loader-sdk-1.2.135.0/loader/debug_utils.c:39:
  In file included from /usr/local/include/vk_object_types.h:35:
  /usr/local/include/cast_utils.h:24:10: fatal error: 'cassert' file not found
   #include <cassert>
            ^~~~~~~~~

  PR:		247075
  Reported by:	nick.rozhkov@gmail.com

Changes:
  head/graphics/vulkan-loader/Makefile
  head/graphics/vulkan-loader/distinfo