1
解决Linux下交叉编译U-Boot源码时报'multiple definition of `yylloc''的错误 - pSomng's blog (dreamforme.top)
我百度了一下,有文章说可以通过修改scripts/dtc/dtc-parser.tab.h
,将里面的yylloc
定义去掉就好了[1],但是我发现我找不到这个文件。其实是因为我先执行了make distclean
,清除了构建信息,这个文件就没有了,所以说这个改法不是永久的,就算是临时的,我发现我改了也没有作用
前往scripts/dtc/dtc-lexer.l
文件,找到YYLTYPE yylloc;
并注释掉即可
2
In file included from tools/aisimage.c:9:
include/image.h:1078:12: fatal error: openssl/evp.h: No such file or directory
1078 | # include <openssl/evp.h>
sudo apt-get install libssl-dev
3 linux内核编译问题
/bin/sh: 1: bc: not found
make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
make: *** [Makefile:1102: prepare0] Error 2
4同1
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here