Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78083 - [vulkan-validation-layers] build appears to be older version

Attached to Project: Arch Linux
Opened by Andrew O'Neil (ajoneilnz) - Saturday, 01 April 2023, 03:10 GMT
Last edited by Toolybird (Toolybird) - Saturday, 01 April 2023, 23:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
vulkan-validation-layers was updated from 1.3.236.0 to 1.3.243.0 recently, but the built package appears to be an older version. I am getting validation errors that are present in 1.3.236.0, but not in 1.3.239.0 nor 1.3.243.0 when I build the package myself. Furthermore trying to build the PKGBUILD results in a compile time error on both my machine and from a clean build within the archlinux:base-devel docker image:

/usr/include/c++/12.2.1/bits/char_traits.h:431:56: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets -4611686018427387902 and [-4611686018427387903, 4611686018427387904] may overlap up to 9223372036854775813 bytes at offset -3 [-Werror=restrict]
431 | return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
[ 23%] Building CXX object source/CMakeFiles/SPIRV-Tools-static.dir/val/validate_barriers.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [source/CMakeFiles/SPIRV-Tools-static.dir/build.make:376: source/CMakeFiles/SPIRV-Tools-static.dir/spirv_target_env.cpp.o] Error 1

I've attached a patch that fixes the build error and allows the correct version to be built.

Additional info:
* package version: 1.3.243.0

Steps to reproduce:
Try to build the PKGBUILD.
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 01 April 2023, 23:21 GMT
Reason for closing:  Works for me
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Saturday, 01 April 2023, 23:21 GMT
Not sure where it goes wrong for you but it builds fine here in a clean chroot [1]. Re: the validation errors, pls see  FS#78091  which is more on topic.

[1] https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

Loading...