找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 697|回复: 5

求大神帮助,编译最后报错

[复制链接]
发表于 2023-1-31 14:20 | 显示全部楼层 |阅读模式
In file included from ./../src/collector_module.h:27,
                 from iotrace.c:37:
iotrace.c:2812:1: error: conflicting types for 'lseek'
llseek (int fildes, offset_t offset, int whence)
^~~~~~
/usr/include/unistd.h:338:16: note: previous definition of 'lseek' was here
extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW;
                ^~~~~
make[9]: *** [Makefile:625: iotrace.lo] Error 1
make[9]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng/libcollector'
make[8]: *** [Makefile:479: all] Error 2
make[8]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng/libcollector'
make[7]: *** [Makefile:471: all-recursive] Error 1
make[7]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng'
make[6]: *** [Makefile:403: all] Error 2
make[6]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng'
make[5]: *** [Makefile:7414: all-gprofng] Error 2
make[5]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39'
make[4]: *** [Makefile:1004: all] Error 2
make[4]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39'
make[3]: *** [Makefile:110: /home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/.built] Error 2
make[3]: Leaving directory '/home/hziq/Desktop/lede/toolchain/binutils'
time: toolchain/binutils/compile#0.44#0.10#0.58
    ERROR: toolchain/binutils failed to build.
make[2]: *** [toolchain/Makefile:97: toolchain/binutils/compile] Error 1
make[2]: Leaving directory '/home/hziq/Desktop/lede'
make[1]: *** [toolchain/Makefile:93: /home/hziq/Desktop/lede/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/hziq/Desktop/lede'
make: *** [/home/hziq/Desktop/lede/include/toplevel.mk:231:world] 错误 2
hziq@hziq-PC:~/Desktop/lede$

求大神指条路

只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2023-1-31 14:49 | 显示全部楼层
make clean 试试,再重新来一次

点评

Making all in po make[8]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils/po' make[8]: Nothing to be done for 'all'. make[8]: Leaving d  详情 回复 发表于 2023-1-31 15:20
谢谢!我试试  详情 回复 发表于 2023-1-31 15:11
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-1-31 15:11 | 显示全部楼层
Wggglggg 发表于 2023-1-31 14:49
make clean 试试,再重新来一次

谢谢!我试试
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-1-31 15:20 | 显示全部楼层
Wggglggg 发表于 2023-1-31 14:49
make clean 试试,再重新来一次

Making all in po
make[8]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils/po'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils/po'
In file included from ./../src/collector_module.h:27,
                 from iotrace.c:37:
iotrace.c:2812:1: error: conflicting types for 'lseek'
llseek (int fildes, offset_t offset, int whence)
^~~~~~
/usr/include/unistd.h:338:16: note: previous definition of 'lseek' was here
extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW;
                ^~~~~
make[8]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils'
make[7]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils'
make[6]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/binutils'
make[9]: *** [Makefile:625: iotrace.lo] Error 1
make[9]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng/libcollector'
make[8]: *** [Makefile:479: all] Error 2
make[8]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng/libcollector'
make[7]: *** [Makefile:471: all-recursive] Error 1
make[7]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng'
make[6]: *** [Makefile:403: all] Error 2
make[6]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/gprofng'
make[5]: *** [Makefile:7414: all-gprofng] Error 2
make[5]: *** Waiting for unfinished jobs....
make[6]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld'
make  all-recursive
make[7]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld'
Making all in po
make[8]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld/po'
make[8]: Nothing to be done for 'all'.
make[8]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld/po'
make[8]: Entering directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld'
make[7]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld'
make[6]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/ld'
make[5]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39'
make[4]: *** [Makefile:1004: all] Error 2
make[4]: Leaving directory '/home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39'
make[3]: *** [Makefile:110: /home/hziq/Desktop/lede/build_dir/toolchain-x86_64_gcc-11.3.0_musl/binutils-2.39/.built] Error 2
make[3]: Leaving directory '/home/hziq/Desktop/lede/toolchain/binutils'
time: toolchain/binutils/compile#0.46#0.20#0.57
    ERROR: toolchain/binutils failed to build.
make[2]: *** [toolchain/Makefile:97: toolchain/binutils/compile] Error 1
make[2]: Leaving directory '/home/hziq/Desktop/lede'
make[1]: *** [toolchain/Makefile:93: /home/hziq/Desktop/lede/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/hziq/Desktop/lede'
make: *** [/home/hziq/Desktop/lede/include/toplevel.mk:231:world] 错误 2
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-1-31 15:20 | 显示全部楼层
还是一样个
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2023-1-31 19:41 | 显示全部楼层
hziq 发表于 2023-1-31 15:20
还是一样个

如果以前你编译成功过,可以
make clean 后,
清除缓存 rm -rf ./tmp,
与更新代码 git pull,
与更新插件代码
./scripts/feeds update -a
./scripts/feeds install -a
如果你以前没成功过,那我也不知道问题了
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-10-2 13:16

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表