Re: GCC 11 related build failure

2020-12-14 Thread Robert-André Mauchin

On 12/15/20 1:12 AM, Neal Gompa wrote:


Just for reference, we *do* have a relatively up to date build of
googletest for things to use in our gtest[1] package that is supposed
to work with gcc11 already...

[1]: https://src.fedoraproject.org/rpms/gtest



It was bundled, I ended up disabling building the tests that were not 
needed anyway. It was only useful for AOM hackers.


Thanks!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: GCC 11 related build failure

2020-12-14 Thread Neal Gompa
On Mon, Dec 14, 2020 at 6:41 PM Robert-André Mauchin  wrote:
>
>
> Hello,
>
> While building Googletest, I've encourtered this failure:
>
>
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:
> >  In instantiation of 'void 
> > testing_internal::DefaultPrintNonContainerTo(const T&, std::ostream*) [with 
> > T = {anonymous}::Y4mTestParam; std::ostream = std::basic_ostream]':
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:465:49:
> >required from 'void 
> > testing::internal::DefaultPrintTo(testing::internal::WrapPrinterType,
> >  const T&, std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream 
> > = std::basic_ostream]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:500:17:
> >required from 'void testing::internal::PrintTo(const T&, std::ostream*) 
> > [with T = {anonymous}::Y4mTestParam; std::ostream = 
> > std::basic_ostream]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:676:12:
> >required from 'static void 
> > testing::internal::UniversalPrinter::Print(const T&, std::ostream*) 
> > [with T = {anonymous}::Y4mTestParam; std::ostream = 
> > std::basic_ostream]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:866:30:
> >required from 'void testing::internal::UniversalPrint(const T&, 
> > std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream = 
> > std::basic_ostream]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:794:19:
> >required from 'static void 
> > testing::internal::UniversalTersePrinter::Print(const T&, std::ostream*) 
> > [with T = {anonymous}::Y4mTestParam; std::ostream = 
> > std::basic_ostream]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:914:44:
> >required from 'std::string testing::PrintToString(const T&) [with T = 
> > {anonymous}::Y4mTestParam; std::string = std::__cxx11::basic_string]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:585:28:
> >required from 'void 
> > testing::internal::ParameterizedTestSuiteInfo::RegisterTests() 
> > [with TestSuite = {anonymous}::Y4mVideoWriteTest]'
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:536:8:
> >required from here
> > /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:283:7:
> >  error: no match for 'operator<<' (operand types are 'std::ostream' {aka 
> > 'std::basic_ostream'} and 'const {anonymous}::Y4mTestParam')
> >   283 |   *os << value;
> >   |   ^~~~
>
>

Just for reference, we *do* have a relatively up to date build of
googletest for things to use in our gtest[1] package that is supposed
to work with gcc11 already...

[1]: https://src.fedoraproject.org/rpms/gtest

-- 
真実はいつも一つ!/ Always, there's only one truth!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: GCC 11 related build failure

2020-12-14 Thread Jeff Law


On 12/14/20 4:41 PM, Robert-André Mauchin wrote:
>
> Hello,
>
> While building Googletest, I've encourtered this failure:
>
>
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:
>> In instantiation of 'void
>> testing_internal::DefaultPrintNonContainerTo(const T&, std::ostream*)
>> [with T = {anonymous}::Y4mTestParam; std::ostream =
>> std::basic_ostream]':
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:465:49:
>>   
>> required from 'void
>> testing::internal::DefaultPrintTo(testing::internal::WrapPrinterType,
>> const T&, std::ostream*) [with T = {anonymous}::Y4mTestParam;
>> std::ostream = std::basic_ostream]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:500:17:
>>   
>> required from 'void testing::internal::PrintTo(const T&,
>> std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream =
>> std::basic_ostream]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:676:12:
>>   
>> required from 'static void
>> testing::internal::UniversalPrinter::Print(const T&,
>> std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream =
>> std::basic_ostream]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:866:30:
>>   
>> required from 'void testing::internal::UniversalPrint(const T&,
>> std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream =
>> std::basic_ostream]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:794:19:
>>   
>> required from 'static void
>> testing::internal::UniversalTersePrinter::Print(const T&,
>> std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream =
>> std::basic_ostream]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:914:44:
>>   
>> required from 'std::string testing::PrintToString(const T&) [with T =
>> {anonymous}::Y4mTestParam; std::string =
>> std::__cxx11::basic_string]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:585:28:
>>   
>> required from 'void
>> testing::internal::ParameterizedTestSuiteInfo::RegisterTests()
>> [with TestSuite = {anonymous}::Y4mVideoWriteTest]'
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:536:8:
>>   
>> required from here
>> /builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:283:7:
>> error: no match for 'operator<<' (operand types are 'std::ostream'
>> {aka 'std::basic_ostream'} and 'const {anonymous}::Y4mTestParam')
>>   283 |   *os << value;
>>   |   ^~~~
It's an upstream GCC bug:


https://gcc.gnu.org/PR98231 Marek just got back from some PTO today, I'm
sure he'll be on it relatively soon. Jeff
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


GCC 11 related build failure

2020-12-14 Thread Robert-André Mauchin


Hello,

While building Googletest, I've encourtered this failure:



/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:
 In instantiation of 'void testing_internal::DefaultPrintNonContainerTo(const T&, 
std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream = 
std::basic_ostream]':
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:465:49:
   required from 'void 
testing::internal::DefaultPrintTo(testing::internal::WrapPrinterType,
 const T&, std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream = 
std::basic_ostream]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:500:17:
   required from 'void testing::internal::PrintTo(const T&, std::ostream*) [with T = 
{anonymous}::Y4mTestParam; std::ostream = std::basic_ostream]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:676:12:
   required from 'static void testing::internal::UniversalPrinter::Print(const T&, 
std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream = 
std::basic_ostream]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:866:30:
   required from 'void testing::internal::UniversalPrint(const T&, std::ostream*) 
[with T = {anonymous}::Y4mTestParam; std::ostream = std::basic_ostream]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:794:19:
   required from 'static void testing::internal::UniversalTersePrinter::Print(const 
T&, std::ostream*) [with T = {anonymous}::Y4mTestParam; std::ostream = 
std::basic_ostream]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:914:44:
   required from 'std::string testing::PrintToString(const T&) [with T = 
{anonymous}::Y4mTestParam; std::string = std::__cxx11::basic_string]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:585:28:
   required from 'void 
testing::internal::ParameterizedTestSuiteInfo::RegisterTests() [with 
TestSuite = {anonymous}::Y4mVideoWriteTest]'
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:536:8:
   required from here
/builddir/build/BUILD/aom-2.0.1/third_party/googletest/src/googletest/include/gtest/gtest-printers.h:283:7:
 error: no match for 'operator<<' (operand types are 'std::ostream' {aka 
'std::basic_ostream'} and 'const {anonymous}::Y4mTestParam')
  283 |   *os << value;
  |   ^~~~



Any input regarding itwould be appreciated: I haven't seen anything 
related in https://www.gnu.org/software/gcc/gcc-11/porting_to.html


Best regards,

Robert-André
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org