gpt4 book ai didi

compiler-errors - 在ubuntu上编译内核时出错

转载 作者:行者123 更新时间:2023-12-02 10:43:47 25 4
gpt4 key购买 nike

我正在Windows 7 pc上安装的vmware上使用ubuntu 12.04 ...我正在尝试编译linux-2.6.0源文件(从kernel.org下载)...我按照网络上的指示进行操作,但是有问题...

所以我搜索了一下并碰到了this ...我按照答案中的说明进行操作,但是仍然执行了第二步之后,当我继续执行第三步(make menuconfig)时,出现以下错误。

make[1]: `scripts/fixdep' is up to date.
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91:21: error: static declaration of ‘current_menu’ follows
non-static declaration
scripts/kconfig/lkc.h:63:21: note: previous declaration of ‘current_menu’ was here
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:553:7: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:225:6: warning: ignoring return value of ‘pipe’, declared with
attribute warn_unused_result [-Wunused-result]
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2

使用make xconfig时发生相同的错误...请告诉我应该怎么做?提前致谢。

最佳答案

Here is the answer
只是从scripts/kconfig/mconf.c中的“静态结构菜单* current_ment”行中删除“static”关键字

关于compiler-errors - 在ubuntu上编译内核时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10828208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com