Package: src:gtest
Version: 1.7.0-4
Severity: important

Hello,

I'm trying to enable tests for the pbbam package, but there is a compilation 
error that is triggered by simply including gtest.h:


tests/CMakeFiles/test_pbbam.dir/build.make:65: recipe for target 
'tests/CMakeFiles/test_pbbam.dir/src/test_Accuracy.cpp.o' failed
make[3]: *** [tests/CMakeFiles/test_pbbam.dir/src/test_Accuracy.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/gtest/internal/gtest-port.h:213:0,
                 from /usr/include/gtest/internal/gtest-internal.h:40,
                 from /usr/include/gtest/gtest.h:58,
                 from /<<PKGBUILDDIR>>/tests/src/test_AlignmentPrinter.cpp:43:
/usr/include/c++/5/sstream:300:7: error: ‘struct 
std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ 
redeclared with different access
       struct __xfer_bufptrs
       ^
In file included from /usr/include/gtest/internal/gtest-port.h:213:0,
                 from /usr/include/gtest/internal/gtest-internal.h:40,
                 from /usr/include/gtest/gtest.h:58,
                 from /<<PKGBUILDDIR>>/tests/src/test_BamFile.cpp:43:
/usr/include/c++/5/sstream:300:7: error: ‘struct 
std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ 
redeclared with different access
       struct __xfer_bufptrs
       ^
tests/CMakeFiles/test_pbbam.dir/build.make:89: recipe for target 
'tests/CMakeFiles/test_pbbam.dir/src/test_AlignmentPrinter.cpp.o' failed



Line 43 of my file /<<PKGBUILDDIR>>/tests/src/test_AlignmentPrinter.cpp has:

#include <gtest/gtest.h>

The error looks like one of the GCC transition issues, and the last formal
gtest release is several years old despite the code base being actively
developed. I think it would be good to update the package to a recent git
snapshot since it seems upstream cannot be convinced to make a new release [1].

Many thanks and regards
Afif

1. https://github.com/google/googletest/issues/746

Reply via email to