This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error to compile Android OS for Beagleboneblack

Error to compile Android OS for Beagleboneblack

how can I remove this error

Error on Filesystem with SGX

thats is

                 from external/llvm/lib/AsmParser/LLParser.h:20,
                 from external/llvm/lib/AsmParser/Parser.cpp:15:
external/llvm/include/llvm/Metadata.h:198:34: error: ISO C++ forbids declaration of '$NamedMDNode' with no type [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAsmParser_intermediates/Parser.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/llvm/include/llvm/Module.h:21:0,
                 from external/llvm/lib/AsmParser/LLParser.h:20,
                 from external/llvm/lib/AsmParser/LLParser.cpp:14:
external/llvm/include/llvm/Metadata.h:198:34: error: ISO C++ forbids declaration of '$NamedMDNode' with no type [-fpermissive]
In file included from external/llvm/include/llvm/CodeGen/LexicalScopes.h:20:0,
                 from external/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h:20,
                 from external/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:17:
external/llvm/include/llvm/Metadata.h:198:34: error: ISO C++ forbids declaration of '$NamedMDNode' with no type [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAsmParser_intermediates/LLParser.o] Error 1
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMAsmPrinter_intermediates/AsmPrinter.o] Error 1