Source: vulkan Version: 1.0.8.0+dfsg1-1 Severity: important Tags: patch Hi, vulakn FTBFS on mips64el because the libVkLayer_core_validation.so library contains too many symbols and overflows the default GOT. This is what causes the relocation errors. This can be fixed by compiling vulkan with the -mxgot flag, although this does have a performance penalty. Before this can happen, the validation layer CMakeLists.txt file must be updated so it doesn't clobber the CXXFLAGS variable. Patches to do both of these tasks are attached. Thanks, James
Description: Don't clobber CXXFLAGS when building validation layers Author: James Cowgill <jcowgill@debian.org> --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/layers/CMakeLists.txt +++ b/layers/CMakeLists.txt @@ -91,7 +91,7 @@ if (WIN32) set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_CRT_SECURE_NO_WARNINGS /bigobj") endif() if (NOT WIN32) - set (CMAKE_CXX_FLAGS "-std=c++11") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpointer-arith") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith") endif()
--- a/debian/rules +++ b/debian/rules @@ -4,6 +4,10 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk +ifeq ($(DEB_HOST_ARCH),mips64el) + export DEB_CXXFLAGS_MAINT_APPEND := -mxgot +endif + # main packaging script based on dh7 syntax %: dh $@ --with quilt --builddirectory=build/
Attachment:
signature.asc
Description: This is a digitally signed message part