On Wed, Jul 15, 2020 at 10:51:21AM +0100, Stuart Henderson wrote: [...] > ==> failures/graphics/vulkan-loader.log <== > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:628:5: > note: while in macro instantiation > PhysDevExtTermin 243 > ^ > <instantiation>:14:17: error: cannot use more than one symbol in memory > operand > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:629:5: > note: while in macro instantiation > PhysDevExtTermin 244 > ^ > <instantiation>:14:17: error: cannot use more than one symbol in memory > operand > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:630:5: > note: while in macro instantiation > PhysDevExtTermin 245 > ^ > <instantiation>:14:17: error: cannot use more than one symbol in memory > operand > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:631:5: > note: while in macro instantiation > PhysDevExtTermin 246 > ^ > <instantiation>:14:17: error: cannot use more than one symbol in memory > operand > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:632:5: > note: while in macro instantiation > PhysDevExtTermin 247 > ^ > <instantiation>:14:17: error: cannot use more than one symbol in memory > operand > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:633:5: > note: while in macro instantiation > PhysDevExtTermin 248 > ^ > <instantiation>:14:17: error: cannot use more than one symbol in memory > operand > push offset termin_error_string@GOT # Push the error string (fourth arg) > ^ > /pobj/vulkan-loader-1.2.141.0/Vulkan-Loader-sdk-1.2.141.0/loader/unknown_ext_chain_gas.S:634:5: > note: while in macro instantiation > PhysDevExtTermin 249 > ^ > ninja: build stopped: subcommand failed. > ===> Exiting graphics/vulkan-loader with an error > *** Error 1 in graphics/vulkan-loader > (/usr/ports/devel/cmake/cmake.port.mk:34 'do-build': @cd > /pobj/vulkan-loader-1.2.141.0/build-i386 && e...) > *** Error 2 in graphics/vulkan-loader > (/usr/ports/infrastructure/mk/bsd.port.mk:2921 > '/pobj/vulkan-loader-1.2.141.0/build-i386/.build_done') > *** Error 2 in graphics/vulkan-loader > (/usr/ports/infrastructure/mk/bsd.port.mk:2584 'build': > @lock=vulkan-loader-1.2.141.0; export _LOCKS_...) > *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': > @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...) > >>> Ended at 1594798947.24 > max_stuck=0.00/depends=2.85/show-prepare-results=0.66/build=10.58 > Error: job failed with 512 on i386-3 at 1594798947 >
Issue 252 on GitHub discusses this [1], and it seems that adding '-fno-integrated-as' should fix it. I don't have an i386 build system set up. Stuart, could you test if the following diff fixes the build? [1] https://github.com/KhronosGroup/Vulkan-Loader/issues/252 Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/vulkan-loader/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile 7 Jul 2020 08:08:06 -0000 1.7 +++ Makefile 16 Jul 2020 17:48:43 -0000 @@ -7,6 +7,7 @@ PKGNAME = vulkan-loader-${V} GH_TAGNAME = sdk-${V} GH_ACCOUNT = KhronosGroup GH_PROJECT = Vulkan-Loader +REVISION = 0 SHARED_LIBS += vulkan 0.1 # 1.2 @@ -34,6 +35,15 @@ MODPY_RUNDEP = No # Tests only build if Google Test framework is in directory external/ NO_TEST = Yes + +.include <bsd.port.arch.mk> + +# Integrated clang assembler doesn't work with x86 - Bug #698164 +# remove if build can be updated to clang 9.0.0 (see +# https://github.com/KhronosGroup/Vulkan-Loader/issues/252) +#.if ${MACHINE_ARCH}==i386 && ${PROPERTIES:Mclang} +#CFLAGS += -fno-integrated-as +#.endif pre-configure: ${SUBST_CMD} ${WRKSRC}/CMakeLists.txt