Created attachment 458376 [details] patch for gcc-6.3 This packages uses the functions or macros minor and major, which aren't defined anymore. I've copied the definitions from the kernel sources and renamed these to MINOR and MAJOR.
Comment on attachment 458376 [details] patch for gcc-6.3 Build log, emerge --info output?
Pretty sure it's not GCC that matters here.
fsarchiver-0.8.1 can be compiled successfully without any patch on ArchLinux with gcc-6.3.1. It is likely to be related to linux-headers.
I can't reproduce the issue but I assume it was fixed upstream at https://github.com/fdupoux/fsarchiver/commit/975c775b8c9b253fe411b456f0a5d560fcbbe1e9.
This is a glibc-related problem. The definitions moved into a different header file.
Comment on attachment 458376 [details] patch for gcc-6.3 ... and please dont patch it like this. It's just adding one more #include ...
And also, per comment #4, this is already fixed in 0.8.2 which is in tree.