Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22176

Getting the error `include/linux/nmi.h:94:20: error: two or more data types in declaration specifiers` while building Android Kernel

$
0
0

The build output from make looks like so near the termination:

  CC      kernel/exec_domain.o  CC      kernel/panic.oIn file included from kernel/panic.c:25:include/linux/nmi.h:94:20: error: two or more data types in declaration specifiers   94 | static inline void void sl_softirq_entry(const char *, void *) { }      |                    ^~~~make[1]: *** [scripts/Makefile.build:278: kernel/panic.o] Error 1make: *** [Makefile:1043: kernel] Error 2

Some modifications I have made include:

  • In the /Makefile

         KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \     -fno-strict-aliasing -fno-common \     -Werror-implicit-function-declaration \     -Wno-format-security \     -Werror\  #Removed this line over here as I was getting too many build failures due to warnings treated as errors     -std=gnu89 $(call cc-option,-fno-PIE)
  • In scripts/dtc/dtc-lexer.lex.c_shipped.

    -- YYLTYPE yylloc;++ extern YYLTYPE yylloc;
  • The rest 2 patches in files kernel\Makefile and net\netfilter\xt_qtaguid.c based on this guide.

Is there a way to fix the issue? I have not tampered any other files apart from the mentioned.I do not have any experience in kernel development so I am hesitant in trying to change any code.

gcc version I am using is 13.3.0


Viewing all articles
Browse latest Browse all 22176


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>