1650
- 收藏
- 点赞
- 分享
- 举报
Hi3516CV500_SDK_V2.0.1.1 在Centos7.4系统上编译mkyaffs2image报错
参考【Hi3516CV500╱Hi3516DV300╱Hi3516AV300 SDK 安装及升级使用说明.pdf】 进行SDK安装,在mkyaffs2image这一步卡住了,求各位论坛大佬指点,谢谢!
具体报错信息如下
---------task [5] build tools which run on pc
make -C /home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/
make[1]: Entering directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image'
tar -xjf mkyaffs2image.tar.bz2 -C /home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image
cd /home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/mkyaffs2image && \
make && \
cd -
make[2]: Entering directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/mkyaffs2image'
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline mkyaffs2image.c -o mkyaffs2image.o
In file included from mkyaffs2image.c:35:0:
yaffs_guts.h:852:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_SetAttributes(yaffs_Object *obj, struct iattr *attr);
^
yaffs_guts.h:852:51: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
yaffs_guts.h:853:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_GetAttributes(yaffs_Object *obj, struct iattr *attr);
^
mkyaffs2image.c: In function ‘write_chunk’:
mkyaffs2image.c:150:9: warning: ‘offset’ may be used uninitialized in this function [-Wmaybe-uninitialized]
offset++;
^
mkyaffs2image.c:129:6: note: ‘offset’ was declared here
int offset, length;
^
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline yaffs_ecc.c -o yaffs_ecc.o
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline yaffs_packedtags2.c -o yaffs_packedtags2.o
In file included from yaffs_packedtags2.h:21:0,
from yaffs_packedtags2.c:14:
yaffs_guts.h:852:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_SetAttributes(yaffs_Object *obj, struct iattr *attr);
^
yaffs_guts.h:852:51: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
yaffs_guts.h:853:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_GetAttributes(yaffs_Object *obj, struct iattr *attr);
^
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline yaffs_tagsvalidity.c -o yaffs_tagsvalidity.o
In file included from yaffs_tagsvalidity.h:20:0,
from yaffs_tagsvalidity.c:14:
yaffs_guts.h:852:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_SetAttributes(yaffs_Object *obj, struct iattr *attr);
^
yaffs_guts.h:852:51: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
yaffs_guts.h:853:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_GetAttributes(yaffs_Object *obj, struct iattr *attr);
^
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline oob_config_v610.c -o oob_config_v610.o
gcc -o mkyaffs2image610 mkyaffs2image.o yaffs_ecc.o yaffs_packedtags2.o yaffs_tagsvalidity.o oob_config_v610.o -static
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [mkyaffs2image610] Error 1
make[2]: Leaving directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/mkyaffs2image'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image'
make: *** [hipctools] Error 2
具体报错信息如下
---------task [5] build tools which run on pc
make -C /home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/
make[1]: Entering directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image'
tar -xjf mkyaffs2image.tar.bz2 -C /home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image
cd /home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/mkyaffs2image && \
make && \
cd -
make[2]: Entering directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/mkyaffs2image'
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline mkyaffs2image.c -o mkyaffs2image.o
In file included from mkyaffs2image.c:35:0:
yaffs_guts.h:852:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_SetAttributes(yaffs_Object *obj, struct iattr *attr);
^
yaffs_guts.h:852:51: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
yaffs_guts.h:853:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_GetAttributes(yaffs_Object *obj, struct iattr *attr);
^
mkyaffs2image.c: In function ‘write_chunk’:
mkyaffs2image.c:150:9: warning: ‘offset’ may be used uninitialized in this function [-Wmaybe-uninitialized]
offset++;
^
mkyaffs2image.c:129:6: note: ‘offset’ was declared here
int offset, length;
^
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline yaffs_ecc.c -o yaffs_ecc.o
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline yaffs_packedtags2.c -o yaffs_packedtags2.o
In file included from yaffs_packedtags2.h:21:0,
from yaffs_packedtags2.c:14:
yaffs_guts.h:852:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_SetAttributes(yaffs_Object *obj, struct iattr *attr);
^
yaffs_guts.h:852:51: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
yaffs_guts.h:853:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_GetAttributes(yaffs_Object *obj, struct iattr *attr);
^
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline yaffs_tagsvalidity.c -o yaffs_tagsvalidity.o
In file included from yaffs_tagsvalidity.h:20:0,
from yaffs_tagsvalidity.c:14:
yaffs_guts.h:852:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_SetAttributes(yaffs_Object *obj, struct iattr *attr);
^
yaffs_guts.h:852:51: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
yaffs_guts.h:853:51: warning: ‘struct iattr’ declared inside parameter list [enabled by default]
int yaffs_GetAttributes(yaffs_Object *obj, struct iattr *attr);
^
gcc -c -I/usr/include -O2 -Wall -DCONFIG_YAFFS_UTIL -static -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline oob_config_v610.c -o oob_config_v610.o
gcc -o mkyaffs2image610 mkyaffs2image.o yaffs_ecc.o yaffs_packedtags2.o yaffs_tagsvalidity.o oob_config_v610.o -static
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [mkyaffs2image610] Error 1
make[2]: Leaving directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image/mkyaffs2image'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/upload/Hi3516CV500R001C02SPC011/01.software/board/Hi3516CV500_SDK_V2.0.1.1/osdrv/tools/pc/mkyaffs2image'
make: *** [hipctools] Error 2
我来回答
回答0个
时间排序
认可量排序

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2016-08-13 14:13:19
-
2020-08-05 16:48:26
-
2017-09-26 16:15:32
-
2015-11-30 14:59:08
-
2024-09-28 17:01:08
-
2018-08-07 14:43:43
-
2018-08-07 14:34:47
-
2023-06-28 14:16:36
-
2017-06-27 10:20:53
-
2016-03-15 21:36:06
-
2019-04-03 16:47:49
-
2023-12-02 17:48:20
-
2019-02-27 09:42:12
-
2016-12-16 19:36:01
-
2020-12-15 15:31:03
-
2019-12-06 18:01:25
-
2019-10-23 19:13:09
-
2019-03-13 11:35:51
-
2019-01-26 09:31:45
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
103403外接hdmi口1024*600显示屏报错
-
5SS928点DC camera的6946,全屏紫色
-
5hi3519 的 网络传输的MTU值可以修改到比1500大嘛?
-
10WS73V100星闪扫描不到设备sle
-
5SS928/SD3403 录像失败 venc stream time out, exit thread; venc 2 stream buffer is full
-
10Hi3516DV500无法运行PQTool软件
-
10君正T23+1084带TF卡插卡(给该主板适配TF卡驱动,电机驱动,适配GPIO)
-
5Hi3536A从vpss获取1080分辨率的yuv数据异常
-
10谁有RV1126 最新版本SDK卖吗?
-
10opencv算法移植海思3519能否用IVE加速
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认