嵌入式爱好者

查看: 5651|回复: 12

[Ubuntu] 编译 LS043 出问题

[复制链接]

1

主题

7

帖子

12

积分

扫一扫,手机访问本帖
发表于 2022-1-21 15:56:54 | 显示全部楼层 |阅读模式
configure: error: Could not find DPDK libraries in /home/forlinx/work/OK10xx-linux-fs/flexbuild/build/apps/components_arm64/usr/local/lib
回复

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2022-1-21 17:02:50 | 显示全部楼层
您用的是那一版源码啊?用的是我们的开发环境吗?编译之前有修改源码吗?
点评回复 支持 反对

使用道具 举报

1

主题

7

帖子

12

积分

 楼主| 发表于 2022-1-21 17:09:09 | 显示全部楼层
没有! 用的是 LS1043 V1.x核心板中的源码
点评回复 支持 反对

使用道具 举报

1

主题

7

帖子

12

积分

 楼主| 发表于 2022-1-21 17:14:34 | 显示全部楼层
configure: error: Could not find DPDK libraries in /home/forlinx/work/OK10xx-linux-fs/flexbuild/build/apps/components_arm64/usr/local/lib
Makefile:120: recipe for target 'ovs-dpdk' failed

点评

在编译之前先执行一下如下命令试试看: flex-builder -i clean-apps  详情 回复 发表于 2022-1-24 11:31
djh
报错只有这个吗,您能在提供一下比较全的报错信息吗?截个图看一下吧  详情 回复 发表于 2022-1-22 09:30
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2022-1-22 09:30:05 | 显示全部楼层
fbi8948 发表于 2022-1-21 17:14
configure: error: Could not find DPDK libraries in /home/forlinx/work/OK10xx-linux-fs/flexbuild/buil ...

报错只有这个吗,您能在提供一下比较全的报错信息吗?截个图看一下吧
点评回复 支持 反对

使用道具 举报

4

主题

9

帖子

32

积分

LS1043A\46A通行证

发表于 2022-1-24 11:31:58 | 显示全部楼层
fbi8948 发表于 2022-1-21 17:14
configure: error: Could not find DPDK libraries in /home/forlinx/work/OK10xx-linux-fs/flexbuild/buil ...

在编译之前先执行一下如下命令试试看:
flex-builder -i clean-apps
点评回复 支持 反对

使用道具 举报

1

主题

7

帖子

12

积分

 楼主| 发表于 2022-1-24 16:53:37 | 显示全部楼层
用的是 OK1043A&1046A-C3 (Linux) 用户资料-20210622\Linux\V1.x核心板\源码\OK10xx-linux-fs.tar.bz2

第一步
flex-builder -i clean-apps

第二步
flex-builder -a arm64 -m ls1043ardb
在  Building OVS_DPDK ... 中 出错

Building OVS_DPDK ...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:24: installing 'build-aux/compile'
configure.ac:22: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for aarch64-linux-gnu-strip... aarch64-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make  sets $(MAKE)... yes
checking whether make  supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking for style of include used by make ... GNU
checking for aarch64-linux-gnu-gcc... aarch64-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-linux-gnu-gcc accepts -g... yes
checking for aarch64-linux-gnu-gcc option to accept ISO C89... none needed
checking whether aarch64-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of aarch64-linux-gnu-gcc... gcc3
checking for aarch64-linux-gnu-gcc option to accept ISO C99... none needed
checking for aarch64-linux-gnu-g++... aarch64-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether aarch64-linux-gnu-g++ accepts -g... yes
checking dependency style of aarch64-linux-gnu-g++... gcc3
checking how to run the C preprocessor... aarch64-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for fgrep... /bin/grep -F
checking for egrep... /bin/grep -E
checking for aarch64-linux-gnu-pkg-config... no
checking for pkg-config... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for ld used by aarch64-linux-gnu-gcc... /usr/aarch64-linux-gnu/bin/ld
checking if the linker (/usr/aarch64-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/aarch64-linux-gnu-nm -B
checking the name lister (/usr/bin/aarch64-linux-gnu-nm -B) inte**ce... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/aarch64-linux-gnu/bin/ld option to reload object files... -r
checking for aarch64-linux-gnu-objdump... aarch64-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for aarch64-linux-gnu-ar... aarch64-linux-gnu-ar
checking for archiver @FILE support... @
checking for aarch64-linux-gnu-strip... (cached) aarch64-linux-gnu-strip
checking for aarch64-linux-gnu-ranlib... aarch64-linux-gnu-ranlib
checking command to parse /usr/bin/aarch64-linux-gnu-nm -B output from aarch64-linux-gnu-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for aarch64-linux-gnu-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if aarch64-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for aarch64-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if aarch64-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if aarch64-linux-gnu-gcc static flag -static works... no
checking if aarch64-linux-gnu-gcc supports -c -o file.o... yes
checking if aarch64-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the aarch64-linux-gnu-gcc linker (/usr/aarch64-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... aarch64-linux-gnu-g++ -E
checking for ld used by aarch64-linux-gnu-g++... /usr/aarch64-linux-gnu/bin/ld
checking if the linker (/usr/aarch64-linux-gnu/bin/ld) is GNU ld... yes
checking whether the aarch64-linux-gnu-g++ linker (/usr/aarch64-linux-gnu/bin/ld) supports shared libraries... yes
checking for aarch64-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if aarch64-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if aarch64-linux-gnu-g++ static flag -static works... no
checking if aarch64-linux-gnu-g++ supports -c -o file.o... yes
checking if aarch64-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the aarch64-linux-gnu-g++ linker (/usr/aarch64-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for library containing pow... -lm
checking for library containing clock_gettime... none required
checking for library containing timer_create... -lrt
checking for library containing pthread_create... -lpthread
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking vmware.h usability... no
checking vmware.h presence... no
checking for vmware.h... no
checking for MSVC x64 compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for linux/netlink.h... yes
checking for openssl/ssl.h in /home/forlinx/work/OK10xx-linux-fs/flexbuild/build/rfs/rootfs_ubuntu_bionic_arm64/usr... yes
checking whether compiling and linking against OpenSSL works... yes
checking for capng_clear in -lcap-ng... no
configure: WARNING: cannot find libcap-ng.
--user option will not be supported on Linux.
(you may use --disable-libcapng to suppress this warning).
checking for Python 2.x for x >= 7... /usr/bin/python
checking whether /usr/bin/python has six library... yes
checking for Python 3.x for x >= 4... /usr/bin/python3
checking for flake8... no
checking for sphinx... no
checking for dot... no
checking net/if_packet.h usability... yes
checking net/if_packet.h presence... yes
checking for net/if_packet.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking whether strtok_r macro segfaults on some inputs... yes
checking whether sys_siglist is declared... yes
checking for struct stat.st_mtim.tv_nsec... yes
checking for struct stat.st_mtimensec... no
checking for struct ifreq.ifr_flagshigh... no
checking for struct mmsghdr.msg_len... yes
checking for struct sockaddr_in6.sin6_scope_id... yes
checking for mlockall... yes
checking for strnlen... yes
checking for getloadavg... yes
checking for statvfs... yes
checking for getmntent_r... yes
checking for sendmmsg... yes
checking for clock_gettime... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking stdatomic.h usability... yes
checking stdatomic.h presence... yes
checking for stdatomic.h... yes
checking for net/if_mib.h... no
checking for library containing backtrace... none required
checking linux/perf_event.h usability... yes
checking linux/perf_event.h presence... yes
checking for linux/perf_event.h... yes
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking for connect in -lsocket... no
checking for library containing gethostbyname... none required
checking XenServer release... none
checking for groff... yes
checking whether aarch64-linux-gnu-gcc has <threads.h> that supports thread_local... no
checking whether aarch64-linux-gnu-gcc supports __thread... yes
checking for library containing __atomic_load_8... -latomic
checking whether aarch64-linux-gnu-gcc supports GCC 4.0+ atomic built-ins... yes
checking value of __atomic_always_lock_free(1)... unsupported
checking value of __atomic_always_lock_free(2)... unsupported
checking value of __atomic_always_lock_free(4)... unsupported
checking value of __atomic_always_lock_free(8)... unsupported
checking for library containing aio_write... none required
checking for pthread_set_name_np... no
checking for pthread_setname_np() variant... glibc
checking whether __linux__ is defined... true
checking linker output version information... libX-2.9.so.0.0.3)
checking whether aarch64-linux-gnu-g++ supports C++11 features by default... yes
checking for working posix_memalign... no
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for stdio.h... yes
checking for string.h... (cached) yes
checking whether aarch64-linux-gnu-gcc accepts -Werror... yes
checking whether aarch64-linux-gnu-gcc accepts -Wall... yes
checking whether aarch64-linux-gnu-gcc accepts -Wextra... yes
checking whether aarch64-linux-gnu-gcc accepts -Wno-sign-compare... yes
checking whether aarch64-linux-gnu-gcc accepts -Wpointer-arith... yes
checking whether aarch64-linux-gnu-gcc accepts -Wformat -Wformat-security... yes
checking whether aarch64-linux-gnu-gcc accepts -Wswitch-enum... yes
checking whether aarch64-linux-gnu-gcc accepts -Wunused-parameter... yes
checking whether aarch64-linux-gnu-gcc accepts -Wbad-function-cast... yes
checking whether aarch64-linux-gnu-gcc accepts -Wcast-align... yes
checking whether aarch64-linux-gnu-gcc accepts -Wstrict-prototypes... yes
checking whether aarch64-linux-gnu-gcc accepts -Wold-style-definition... yes
checking whether aarch64-linux-gnu-gcc accepts -Wmissing-prototypes... yes
checking whether aarch64-linux-gnu-gcc accepts -Wmissing-field-initializers... yes
checking whether aarch64-linux-gnu-gcc accepts -Wthread-safety... no
checking whether aarch64-linux-gnu-gcc accepts -fno-strict-aliasing... yes
checking whether aarch64-linux-gnu-gcc accepts -Wswitch-bool... yes
checking whether aarch64-linux-gnu-gcc accepts -Wlogical-not-parentheses... yes
checking whether aarch64-linux-gnu-gcc accepts -Wsizeof-array-argument... yes
checking whether aarch64-linux-gnu-gcc accepts -Wbool-compare... yes
checking whether aarch64-linux-gnu-gcc accepts -Wshift-negative-value... yes
checking whether aarch64-linux-gnu-gcc accepts -Wduplicated-cond... yes
checking whether aarch64-linux-gnu-gcc accepts -Qunused-arguments... no
checking whether aarch64-linux-gnu-gcc accepts -Wno-unused... yes
checking whether aarch64-linux-gnu-gcc accepts -Wno-unused-parameter... yes
checking target hint for cgcc... other
checking whether dpdk datapath is enabled... yes
checking for library containing get_mempolicy... none required
checking for library containing pcap_dump... -lpcap
configure: error: Could not find DPDK libraries in /home/forlinx/work/OK10xx-linux-fs/flexbuild/build/apps/components_arm64/usr/local/lib
Makefile:120: recipe for target 'ovs-dpdk' failed
make[1]: *** [ovs-dpdk] Error 1
make[1]: Leaving directory '/home/forlinx/work/OK10xx-linux-fs/flexbuild/packages/apps'
Makefile:24: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/forlinx/work/OK10xx-linux-fs/flexbuild'
forlinx@ubuntu:~/work/OK10xx-linux-fs/flexbuild$

点评

djh
试一下这个看看,详见附件  详情 回复 发表于 2022-1-24 17:05
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2022-1-24 17:05:27 | 显示全部楼层
fbi8948 发表于 2022-1-24 16:53
用的是 OK1043A&1046A-C3 (Linux) 用户资料-20210622\Linux\V1.x核心板\源码\OK10xx-linux-fs.tar.bz2

...

试一下这个看看,详见附件

编译问题dpdk.rar

239.63 KB, 下载次数: 10, 下载积分: 贡献 1

点评回复 支持 反对

使用道具 举报

1

主题

7

帖子

12

积分

 楼主| 发表于 2022-1-24 17:36:54 | 显示全部楼层
附件中的文件不存在
点评回复 支持 反对

使用道具 举报

1

主题

7

帖子

12

积分

 楼主| 发表于 2022-1-24 17:42:54 | 显示全部楼层
ls flexbuild/packages/apps/ovs-dpdk/lib/dh* -l
-rw-r--r-- 1 forlinx forlinx  492 Jun 22  2021 flexbuild/packages/apps/ovs-dpdk/lib/dh1024.pem
-rw-r--r-- 1 forlinx forlinx  588 Jun 22  2021 flexbuild/packages/apps/ovs-dpdk/lib/dh2048.pem
-rw-r--r-- 1 forlinx forlinx 1016 Jun 22  2021 flexbuild/packages/apps/ovs-dpdk/lib/dh4096.pem
-rw-r--r-- 1 forlinx forlinx 2251 Jun 22  2021 flexbuild/packages/apps/ovs-dpdk/lib/dhcp.h
-rw-r--r-- 1 forlinx forlinx  787 Jun 22  2021 flexbuild/packages/apps/ovs-dpdk/lib/dhparams.h
forlinx@ubuntu:~/work/OK10xx-linux-fs$

点评

djh
方便电话沟通吗,可以的话拨打电话:0312-3119192  详情 回复 发表于 2022-1-25 08:41
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2022-1-25 08:41:00 | 显示全部楼层
fbi8948 发表于 2022-1-24 17:42
ls flexbuild/packages/apps/ovs-dpdk/lib/dh* -l
-rw-r--r-- 1 forlinx forlinx  492 Jun 22  2021 flexb ...

方便电话沟通吗,可以的话拨打电话:0312-3119192
点评回复 支持 反对

使用道具 举报

1

主题

7

帖子

12

积分

 楼主| 发表于 2022-1-26 13:30:11 | 显示全部楼层
现在下载了最新的 OK1043A&1046A-C3 (Linux) 用户资料-20211208,全编译通过了! 多谢!

点评

djh
好的,感谢  详情 回复 发表于 2022-1-26 16:38
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2022-1-26 16:38:32 | 显示全部楼层
fbi8948 发表于 2022-1-26 13:30
现在下载了最新的 OK1043A&1046A-C3 (Linux) 用户资料-20211208,全编译通过了! 多谢!

好的,感谢
点评回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-22 16:22

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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