嵌入式爱好者

查看: 22586|回复: 3

[Ubuntu] LS1043A使用提供的原始环境和源码出现编译错误

[复制链接]

1

主题

4

帖子

62

积分

RK3568通行证LS1012A通行证LS1043A\46A通行证

扫一扫,手机访问本帖
发表于 2020-3-1 15:06:46 | 显示全部楼层 |阅读模式
使用LS1043A提供的原始环境和源码出现编译错误,按照手册写的步骤操作的,环境变量也都设置过了,

mv -f ofproto/.deps/ofproto_libofproto_la-ofproto.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto.Plo
make[4]: Leaving directory '/home/forlinx/work/OK10xx-linux-fs/flexbuild/packages/apps/ovs-dpdk'
Makefile:5526: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/forlinx/work/OK10xx-linux-fs/flexbuild/packages/apps/ovs-dpdk'
Makefile:5831: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/forlinx/work/OK10xx-linux-fs/flexbuild/packages/apps/ovs-dpdk'
Makefile:120: recipe for target 'ovs-dpdk' failed
make[1]: *** [ovs-dpdk] Error 2
make[1]: Leaving directory '/home/forlinx/work/OK10xx-linux-fs/flexbuild/packages/apps'
Makefile:24: recipe for target 'apps' failed
make: *** [apps] Error 2
root@ubuntu:~/work/OK10xx-linux-fs/flexbuild#

查了下有下面的错误,是源码不对么?

lib/dhparams.c:2:12: error: static declaration of ‘get_dh1024’ follows non-static declaration
static DH *get_dh1024(void)
            ^~~~~~~~~~
In file included from lib/dhparams.c:1:0:
./lib/dhparams.h:23:5: note: previous declaration of ‘get_dh1024’ was here
DH *get_dh1024(void);
     ^~~~~~~~~~
lib/dhparams.c:38:12: error: static declaration of ‘get_dh2048’ follows non-static declaration
static DH *get_dh2048(void)
            ^~~~~~~~~~
In file included from lib/dhparams.c:1:0:
./lib/dhparams.h:24:5: note: previous declaration of ‘get_dh2048’ was here
DH *get_dh2048(void);
     ^~~~~~~~~~
lib/dhparams.c:87:12: error: static declaration of ‘get_dh4096’ follows non-static declaration
static DH *get_dh4096(void)
            ^~~~~~~~~~
In file included from lib/dhparams.c:1:0:
./lib/dhparams.h:25:5: note: previous declaration of ‘get_dh4096’ was here
DH *get_dh4096(void);
     ^~~~~~~~~~
lib/dhparams.c:87:12: warning: ‘get_dh4096’ defined but not used [-Wunused-function]
static DH *get_dh4096(void)
            ^~~~~~~~~~
lib/dhparams.c:38:12: warning: ‘get_dh2048’ defined but not used [-Wunused-function]
static DH *get_dh2048(void)
            ^~~~~~~~~~
lib/dhparams.c:2:12: warning: ‘get_dh1024’ defined but not used [-Wunused-function]
static DH *get_dh1024(void)
            ^~~~~~~~~~
make[4]: *** [lib/dhparams.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
aarch64-linux-gnu-ar: `u' modifier ignored since `D' is the default (see `U')
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [ovs-dpdk] Error 2
make: *** [apps] Error 2



root@ubuntu:~/work/OK10xx-linux-fs/flexbuild#



回复

使用道具 举报

1

主题

4

帖子

62

积分

RK3568通行证LS1012A通行证LS1043A\46A通行证

 楼主| 发表于 2020-3-1 23:21:55 | 显示全部楼层
还有生成ubuntu镜像的时候提示make_ext4fs找不到:
root@ubuntu:~/work/OK10xx-linux-fs/flexbuild# flex-builder -i compressrfs -m ls1043ardb
INSTRUCTION: compressrfs
MACHINE: ls1043ardb
makeing /home/forlinx/work/OK10xx-linux-fs/flexbuild/build/images/ubuntu.img, waiting ...
sudo: make_ext4fs: command not found
root@ubuntu:~/work/OK10xx-linux-fs/flexbuild#
点评回复 支持 反对

使用道具 举报

0

主题

1173

帖子

2202

积分

发表于 2020-3-2 16:02:20 | 显示全部楼层
源码应该没错,如果不放心您可重拷贝解压一个,
第一个您可参考https://blog.csdn.net/wuyulanguang/article/details/86220770看看能不能解决
第二个sudo: make_ext4fs: command not found可能是系统没安装相关内容,您可从网上查阅安装
点评回复 支持 反对

使用道具 举报

0

主题

1

帖子

5

积分

LS1043A\46A通行证i.MX6Q通行证

发表于 2020-8-18 12:02:14 | 显示全部楼层
第一个问题修改 packages/apps/ovs-dpdk/lib/dhparams.c文件
/*static */DH *get_dh1024(void)
/*static */DH *get_dh2048(void)
/*static */DH *get_dh4096(void)
第二个问题修改flex-builder的line1155
# sudo chroot $RFSDIR ldconfig
line1116和line1120去掉make_ext4fs -s -T -I -l 7510982656 $FBDIR/build/images/ubuntu.img $RFSDIR前面的sudo
点评回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-24 08:28

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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