简体   繁体   中英

Build linux kernel UML error

I downloaded Linux 3.12.36 and followed the instructions at http://user-mode-linux.sourceforge.net/source.html .

However in the make ARCH=um step, I got the error

In file included from arch/um/kernel/config.c:8:0: ***/linux-3.12.36/arch/um/include/shared/init.h:129.26: error : expected '=', ',', ';', 'asm' or ' attribute ' beofer '__used'

#define __uml_setup_help __used __section(.uml.help.init)

The problem comes from the gcc version. I used gcc5 and could not compile it. When I switched to gcc4.9, I succeeded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM