pauldreik / rdfind

find duplicate files utility
Other
986 stars 81 forks source link

rdfind fails to build with C++20-compatible compilers #77

Closed ryandesign closed 3 years ago

ryandesign commented 3 years ago

rdfind fails to build with modern C++20-compatible compilers on macOS. The error is:

In file included from Checksum.cc:10:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/array:112:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/__tuple:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/cstddef:37:
./version:1:1: error: expected unqualified-id
1.4.1
^

This was reported to MacPorts here: https://trac.macports.org/ticket/63322

We have seen this problem in several other software packages. This happens because of this combination of factors:

Solutions to the issue are:

pauldreik commented 3 years ago

Thank you for the report, will fix it when I'm back from vacation!