In file included from 
/home/user/qubes-linux-kernel/kernel-4.14.57/linux-4.14.57/scripts/gcc-plugins/gcc-common.h:101,
                 from <stdin>:1:
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/include/attribs.h: In function 
'tree_node* canonicalize_attr_name(tree)':
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/include/attribs.h:118:12: error: 
'get_identifier_with_length' was not declared in this scope
     return get_identifier_with_length (s + 2, l - 4);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/8/plugin/include/attribs.h:118:12: note: 
suggested alternative: 'get_attr_min_length'
     return get_identifier_with_length (s + 2, l - 4);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
            get_attr_min_length
Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, 
perhaps the necessary headers are missing?
make[2]: *** [scripts/Makefile.gcc-plugins:70: gcc-plugins-check] Error 1
make[2]: Leaving directory 
'/home/user/qubes-linux-kernel/kernel-4.14.57/linux-obj'
make[1]: *** [Makefile:146: sub-make] Error 2
make[1]: Leaving directory 
'/home/user/qubes-linux-kernel/kernel-4.14.57/linux-4.14.57'
error: Bad exit status from /var/tmp/rpm-tmp.1wmTem (%prep)



I found(and tested) the patches required to fix this, they are directly 
downloadable from github:
https://github.com/torvalds/linux/commit/b86729109c5fd0a480300f40608aac68764b5adf.patch
https://github.com/torvalds/linux/commit/80d172431696482d9acd8d2c4ea78fed8956e2a1.patch

or can be seen on the kernel website:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b86729109c5fd0a480300f40608aac68764b5adf
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80d172431696482d9acd8d2c4ea78fed8956e2a1

Related reports(without solution) via google search: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904379
https://lists.gnu.org/archive/html/gm2/2017-11/msg00000.html


I've no idea how you guys got to compile this, I was using the v4.14.57-2 tag 
and 'make rpms'. Oh,... maybe using gcc 7 not 8?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-devel@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/d36b9b04-4cc5-4f7c-a99f-02a7e6e2e259%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to