• graphics/vulkan-tools build failing due to graphics/wayland?

    From Jonathan Chen@jonc@chen.org.nz to muc.lists.freebsd.ports on Wed Aug 6 02:55:54 2025
    From Newsgroup: muc.lists.freebsd.ports

    Hi,
    I've just updated my ports-tree, and a build of graphics/vulkan-tools currently fails with:
    Building for vulkan-tools-1.4.321
    [ 5% 1/17] cd /construction/xports/graphics/vulkan-tools/work/.build/cube && /usr/local/bin/wayland-scanner private-code //usr/local/share/wayland/wayland.xml /construction/xpor
    ts/graphics/vulkan-tools/work/.build/cube/wayland-client.c
    [ 11% 2/17] cd /construction/xports/graphics/vulkan-tools/work/.build/cube && /usr/local/bin/wayland-scanner private-code //usr/local/share/wayland-protocols/stable/xdg-shell/xdg
    -shell.xml /construction/xports/graphics/vulkan-tools/work/.build/cube/xdg-shell-code.c
    [ 17% 3/17] cd /construction/xports/graphics/vulkan-tools/work/.build/cube && /usr/local/bin/wayland-scanner client-header //usr/local/share/wayland-protocols/stable/xdg-shell/xd
    g-shell.xml /construction/xports/graphics/vulkan-tools/work/.build/cube/xdg-shell-client-header.h
    [ 23% 4/17] cd /construction/xports/graphics/vulkan-tools/work/.build/cube && /usr/local/bin/wayland-scanner private-code //usr/local/share/wayland-protocols/unstable/xdg-decorat
    ion/xdg-decoration-unstable-v1.xml /construction/xports/graphics/vulkan-tools/work/.build/cube/xdg-decoration-code.c
    [ 29% 5/17] cd /construction/xports/graphics/vulkan-tools/work/.build/cube && /usr/local/bin/wayland-scanner client-header //usr/local/share/wayland-protocols/unstable/xdg-decora
    tion/xdg-decoration-unstable-v1.xml /construction/xports/graphics/vulkan-tools/work/.build/cube/xdg-decoration-client-header.h
    [ 35% 6/17] /usr/local/libexec/ccache/cc -D/usr/lib/libm.so" -DVK_USE_PLATFORM_DISPLAY_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DWA
    YLAND_LIBRARY=\"/usr/local/lib/libwayland-client.so -DXCB_LIBRARY=\"/usr/local/lib/libxcb.so\" -DXLIB_LIBRARY=\"/usr/local/lib/libX11.so\" -I/construction/xports/graphics/vulkan-
    tools/work/.build/cube -I/construction/xports/graphics/vulkan-tools/work/Vulkan-Tools-1.4.321/cube/. -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-a
    liasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=c99 -fPIE -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
    -Wno-sign-conversion -Wno-shorten-64-to-32 -Wno-string-conversion -Wno-implicit-int-conversion -Wno-enum-enum-conversion -pthread -MD -MT cube/CMakeFiles/vkcube.dir/cube.c.o -MF
    cube/CMakeFiles/vkcube.dir/cube.c.o.d -o cube/CMakeFiles/vkcube.dir/cube.c.o -c /construction/xports/graphics/vulkan-tools/work/Vulkan-Tools-1.4.321/cube/cube.c
    FAILED: cube/CMakeFiles/vkcube.dir/cube.c.o
    /usr/local/libexec/ccache/cc -D/usr/lib/libm.so" -DVK_USE_PLATFORM_DISPLAY_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DWAYLAND_LIBRAR
    Y=\"/usr/local/lib/libwayland-client.so -DXCB_LIBRARY=\"/usr/local/lib/libxcb.so\" -DXLIB_LIBRARY=\"/usr/local/lib/libX11.so\" -I/construction/xports/graphics/vulkan-tools/work/.
    build/cube -I/construction/xports/graphics/vulkan-tools/work/Vulkan-Tools-1.4.321/cube/. -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2
    -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=c99 -fPIE -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-co
    nversion -Wno-shorten-64-to-32 -Wno-string-conversion -Wno-implicit-int-conversion -Wno-enum-enum-conversion -pthread -MD -MT cube/CMakeFiles/vkcube.dir/cube.c.o -MF cube/CMakeFi
    les/vkcube.dir/cube.c.o.d -o cube/CMakeFiles/vkcube.dir/cube.c.o -c /construction/xports/graphics/vulkan-tools/work/Vulkan-Tools-1.4.321/cube/cube.c
    /bin/sh: Syntax error: Unterminated quoted string
    ninja: build stopped: subcommand failed.
    *** Error code 1
    It doesn't look like graphics/vulkan-tools has changed since the last time I built it, so the fault probably lies with one of its build tools. If I were to guess, I think the update to graphics/wayland has introduced a regression on wayland-scanner.
    Cheers.
    --
    Jonathan Chen <jonc@chen.org.nz>
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Gleb Popov@arrowd@freebsd.org to muc.lists.freebsd.ports on Wed Aug 6 09:51:54 2025
    From Newsgroup: muc.lists.freebsd.ports

    On Wed, Aug 6, 2025 at 5:56rC>AM Jonathan Chen <jonc@chen.org.nz> wrote:

    Hi,

    I've just updated my ports-tree, and a build of graphics/vulkan-tools currently fails with:
    Confirmed, I'm getting this failure too.
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Emmanuel Vadot@manu@bidouilliste.com to muc.lists.freebsd.ports on Wed Aug 6 09:45:26 2025
    From Newsgroup: muc.lists.freebsd.ports

    On Wed, 6 Aug 2025 09:51:54 +0300
    Gleb Popov <arrowd@freebsd.org> wrote:
    On Wed, Aug 6, 2025 at 5:56?AM Jonathan Chen <jonc@chen.org.nz> wrote:

    Hi,

    I've just updated my ports-tree, and a build of graphics/vulkan-tools currently fails with:

    Confirmed, I'm getting this failure too.

    Yes, something is adding
    -D/usr/lib/libm.so"
    to the command line and I don't know where it's coming from for now ...
    The only changes related to this in wayland 1.24.0 is that -lm is now
    in Libs in the .pc and not in the Libs.private as before.
    --
    Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Emmanuel Vadot@manu@bidouilliste.com to muc.lists.freebsd.ports on Wed Aug 6 10:23:47 2025
    From Newsgroup: muc.lists.freebsd.ports

    On Wed, 6 Aug 2025 09:45:26 +0200
    Emmanuel Vadot <manu@bidouilliste.com> wrote:

    On Wed, 6 Aug 2025 09:51:54 +0300
    Gleb Popov <arrowd@freebsd.org> wrote:

    On Wed, Aug 6, 2025 at 5:56?AM Jonathan Chen <jonc@chen.org.nz> wrote:

    Hi,

    I've just updated my ports-tree, and a build of graphics/vulkan-tools currently fails with:

    Confirmed, I'm getting this failure too.


    Yes, something is adding
    -D/usr/lib/libm.so"
    to the command line and I don't know where it's coming from for now ...
    The only changes related to this in wayland 1.24.0 is that -lm is now
    in Libs in the .pc and not in the Libs.private as before.

    I really don't understand what's happening so for now I've commited a workaround to unbreak the tree.
    If some CMake (or ninja, I don't know which part is failing) could
    have a look that would be great.

    Cheers,
    --
    Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2