--- Begin Message ---
Package: src:openxr-sdk-source
Version: 1.0.14~dfsg1-1
Severity: normal
Tags: sid bookworm
User: [email protected]
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/openxr-sdk-source_1.0.14~dfsg1-1_unstable_gcc11.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
[ 63%] Linking CXX shared library libopenxr_loader.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/loader" && /usr/bin/cmake -E
cmake_link_script CMakeFiles/openxr_loader.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -Wall -Werror=unused-parameter -Wpointer-arith
-Wl,--version-script=/<<PKGBUILDDIR>>/src/loader/openxr-loader.map -Wl,-z,relro
-Wl,-z,now -Wl,--as-needed -Wl,--no-undefined -shared
-Wl,-soname,libopenxr_loader.so.1 -o libopenxr_loader.so.1.0.14
CMakeFiles/openxr_loader.dir/api_layer_interface.cpp.o
CMakeFiles/openxr_loader.dir/loader_core.cpp.o
CMakeFiles/openxr_loader.dir/loader_instance.cpp.o
CMakeFiles/openxr_loader.dir/loader_logger.cpp.o
CMakeFiles/openxr_loader.dir/loader_logger_recorders.cpp.o
CMakeFiles/openxr_loader.dir/manifest_file.cpp.o
CMakeFiles/openxr_loader.dir/runtime_interface.cpp.o
CMakeFiles/openxr_loader.dir/__/xr_generated_dispatch_table.c.o
CMakeFiles/openxr_loader.dir/xr_generated_loader.cpp.o
CMakeFiles/openxr_loader.dir/__/common/object_info.cpp.o
CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o
-ldl /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1.9.4 -lpthread
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsGetCurrentPath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:106:
undefined reference to
`std::experimental::filesystem::v1::current_path[abi:cxx11]()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsGetParentPath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:113:
undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::parent_path() const'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsGetCanonicalPath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:133:
undefined reference to
`std::experimental::filesystem::v1::current_path[abi:cxx11]()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsGetCanonicalPath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:133:
undefined reference to
`std::experimental::filesystem::v1::canonical(std::experimental::filesystem::v1::__cxx11::path
const&, std::experimental::filesystem::v1::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsGetAbsolutePath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:118:
undefined reference to
`std::experimental::filesystem::v1::current_path[abi:cxx11]()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsGetAbsolutePath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:118:
undefined reference to
`std::experimental::filesystem::v1::absolute(std::experimental::filesystem::v1::__cxx11::path
const&, std::experimental::filesystem::v1::__cxx11::path const&)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /usr/include/c++/11/experimental/bits/fs_path.h:230: undefined
reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::_M_append(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:460: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `std::experimental::filesystem::v1::__cxx11::path::is_absolute()
const':
/usr/include/c++/11/experimental/bits/fs_path.h:1200: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::has_root_directory() const'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::is_directory(std::experimental::filesystem::v1::__cxx11::path
const&)':
/usr/include/c++/11/experimental/bits/fs_ops.h:177: undefined reference to
`std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::__cxx11::path
const&)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::is_regular_file(std::experimental::filesystem::v1::__cxx11::path
const&)':
/usr/include/c++/11/experimental/bits/fs_ops.h:219: undefined reference to
`std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::__cxx11::path
const&)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::exists(std::experimental::filesystem::v1::__cxx11::path
const&)':
/usr/include/c++/11/experimental/bits/fs_ops.h:127: undefined reference to
`std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::__cxx11::path
const&)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::path::path<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::experimental::filesystem::v1::__cxx11::path>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/11/experimental/bits/fs_path.h:230: undefined reference to
`std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function
`std::experimental::filesystem::v1::__cxx11::directory_iterator::directory_iterator(std::experimental::filesystem::v1::__cxx11::path
const&)':
/usr/include/c++/11/experimental/bits/fs_dir.h:188: undefined reference to
`std::experimental::filesystem::v1::__cxx11::directory_iterator::directory_iterator(std::experimental::filesystem::v1::__cxx11::path
const&, std::experimental::filesystem::v1::directory_options,
std::error_code*)'
/usr/bin/ld: CMakeFiles/openxr_loader.dir/__/common/filesystem_utils.cpp.o: in
function `FileSysUtilsFindFilesInPath(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&)':
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:159:
undefined reference to
`std::experimental::filesystem::v1::__cxx11::directory_iterator::operator*()
const'
/usr/bin/ld:
./obj-x86_64-linux-gnu/src/loader/./src/common/filesystem_utils.cpp:159:
undefined reference to
`std::experimental::filesystem::v1::__cxx11::directory_iterator::operator++()'
collect2: error: ld returned 1 exit status
make[3]: *** [src/loader/CMakeFiles/openxr_loader.dir/build.make:273:
src/loader/libopenxr_loader.so.1.0.14] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1247:
src/loader/CMakeFiles/openxr_loader.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 65%] Linking CXX shared library libXrApiLayer_core_validation.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/api_layers" && /usr/bin/cmake -E
cmake_link_script CMakeFiles/XrApiLayer_core_validation.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -Wall -Werror=unused-parameter -Wpointer-arith
-Wl,-Bsymbolic,--exclude-libs,ALL -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
-Wl,--no-undefined -shared -Wl,-soname,libXrApiLayer_core_validation.so -o
libXrApiLayer_core_validation.so
CMakeFiles/XrApiLayer_core_validation.dir/core_validation.cpp.o
CMakeFiles/XrApiLayer_core_validation.dir/__/common/object_info.cpp.o
CMakeFiles/XrApiLayer_core_validation.dir/xr_generated_core_validation.cpp.o
CMakeFiles/XrApiLayer_core_validation.dir/__/xr_generated_dispatch_table.c.o
-lpthread
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 65%] Built target XrApiLayer_core_validation
[ 66%] Linking CXX shared library libXrApiLayer_api_dump.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/api_layers" && /usr/bin/cmake -E
cmake_link_script CMakeFiles/XrApiLayer_api_dump.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -Wall -Werror=unused-parameter -Wpointer-arith
-Wl,-Bsymbolic,--exclude-libs,ALL -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
-Wl,--no-undefined -shared -Wl,-soname,libXrApiLayer_api_dump.so -o
libXrApiLayer_api_dump.so CMakeFiles/XrApiLayer_api_dump.dir/api_dump.cpp.o
CMakeFiles/XrApiLayer_api_dump.dir/xr_generated_api_dump.cpp.o
CMakeFiles/XrApiLayer_api_dump.dir/__/xr_generated_dispatch_table.c.o
-lpthread
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 66%] Built target XrApiLayer_api_dump
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:163: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install
--strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--- End Message ---