首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在ubuntu上编译bochs失败

在ubuntu上编译bochs失败
EN

Stack Overflow用户
提问于 2018-11-26 06:25:58
回答 1查看 169关注 0票数 0

我的平台是Ubuntu18.04,Bochs2.6.9。

编译错误消息如下:

代码语言:javascript
复制
make[1]: Entering directory '/home/shore/MineOS/Source/bochs-2.6.9/bx_debug'
gcc -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -I. -I./. -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pthread   parser.c -o 
parser.o
y.tab.c: In function ‘yyparse’:
y.tab.c:59:16: warning: implicit declaration of function ‘yylex’; did you mean ‘bxlex’? [-Wimplicit-function-declaration]
y.tab.c:1516:23: note: in expansion of macro ‘YYLEX’
y.tab.c:67:27: warning: implicit declaration of function ‘yyerror’; did you mean ‘yyerrok’? [-Wimplicit-function-declaration]
y.tab.c:1553:5: note: in expansion of macro ‘YYERROR_CALL’
y.tab.c: At top level:
parser.y:10:0: error: unterminated #if

另外,我的配置如下

代码语言:javascript
复制
./configure --enable-plugins --enable-debugger --enable-disasm --enable-readline --enable-cpu-level=6 --enable-smp --enable-x86-64 --enable-avx --enable-a20-pin --enable-fast-function-calls --enable-all-optimizations --enable-x86-debugger --enable-alignment-check

我实际上需要调试,所以最好从源代码编译。

谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-11-26 08:39:12

嗯,我试着发现flex软件包不见了,所以安装了flex并解决了问题。

希望它能帮到别人。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53475735

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档