hi all,
i am building ovs + dpdk, the operations is following:

build dpdk:
declare -x 
DPDK_BUILD="/home/sda3/dpdk-stable-19.11.4/x86_64-native-linuxapp-gcc"
declare -x DPDK_DIR="/home/sda3/dpdk-stable-19.11.4"
declare -x DPDK_TARGET="x86_64-native-linuxapp-gcc"

make install T=$DPDK_TARGET DESTDIR=./dpdk_for_ovs

build ovs:(version 2.14.0)
boot.sh
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc 
--enable-Werror CFLAGS="-g -O2 -march=native" --with-dpdk=$DPDK_BUILD
make rpm-fedora RPMBUILD_OPT="--with dpdk --without check"

result:
checking for library containing dlopen... -ldl
checking whether linking with dpdk works... no
configure: error: Could not find DPDK libraries in /home/sda3/dpdk_for_ovs/lib

but, yestoday i have built ovs+dpdk successfully.

How i can do? 

[root@c1 openvswitch-2.14.0]# make rpm-fedora RPMBUILD_OPT="--with dpdk 
--without check"
make  dist-gzip am__post_remove_distdir='@:'
make[1]: 进入目录“/home/sda3/openvswitch-2.14.0”
if test -d "openvswitch-2.14.0"; then find "openvswitch-2.14.0" -type d ! -perm 
-200 -exec chmod u+w {} ';' && rm -rf "openvswitch-2.14.0" || { sleep 5 && rm 
-rf "openvswitch-2.14.0"; }; else :; fi
test -d "openvswitch-2.14.0" || mkdir "openvswitch-2.14.0"
 (cd datapath && make  top_distdir=../openvswitch-2.14.0 
distdir=../openvswitch-2.14.0/datapath \
     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[2]: 进入目录“/home/sda3/openvswitch-2.14.0/datapath”
 (cd linux && make  top_distdir=../../openvswitch-2.14.0 
distdir=../../openvswitch-2.14.0/datapath/linux \
     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[3]: 进入目录“/home/sda3/openvswitch-2.14.0/datapath/linux”
rm -f *.o *.ko *.mod.* .*.gcno .*.d .*.cmd kcompat.h.new \
.cache.mk Module.symvers modules.order .tmp_versions/*.mod
for d in actions.c conntrack.c datapath.c dp_notify.c flow.c flow_netlink.c 
flow_table.c vport.c vport-internal_dev.c vport-netdev.c nsh.c meter.c 
dev-openvswitch.c dst_cache.c exthdrs_core.c geneve.c gre.c gso.c 
genetlink-openvswitch.c inet_fragment.c ip_gre.c ip_fragment.c ip_output.c 
ip_tunnel.c ip_tunnels_core.c ip6_output.c ip6_gre.c ip6_tunnel.c lisp.c 
netdevice.c nf_conncount.c nf_conntrack_core.c nf_conntrack_proto.c 
nf_conntrack_reasm.c nf_conntrack_timeout.c reciprocal_div.c 
skbuff-openvswitch.c socket.c stt.c udp.c udp_tunnel.c vxlan.c utils.c 
vport-geneve.c vport-gre.c vport-lisp.c vport-stt.c vport-vxlan.c; do if test 
-h $d; then rm $d; fi; done
make[3]: 离开目录“/home/sda3/openvswitch-2.14.0/datapath/linux”
make[2]: 离开目录“/home/sda3/openvswitch-2.14.0/datapath”
make  \
  top_distdir="openvswitch-2.14.0" distdir="openvswitch-2.14.0" \
  dist-hook
make[2]: 进入目录“/home/sda3/openvswitch-2.14.0”
make[2]: 离开目录“/home/sda3/openvswitch-2.14.0”
test -n "" \
|| find "openvswitch-2.14.0" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  ! -type d ! -perm -444 -exec /bin/sh 
/home/sda3/openvswitch-2.14.0/build-aux/install-sh -c -m a+r {} {} \; \
|| chmod -R a+r "openvswitch-2.14.0"
tardir=openvswitch-2.14.0 && tar --format=posix -chf - "$tardir" | GZIP=--best 
gzip -c >openvswitch-2.14.0.tar.gz
make[1]: 离开目录“/home/sda3/openvswitch-2.14.0”
if test -d "openvswitch-2.14.0"; then find "openvswitch-2.14.0" -type d ! -perm 
-200 -exec chmod u+w {} ';' && rm -rf "openvswitch-2.14.0" || { sleep 5 && rm 
-rf "openvswitch-2.14.0"; }; else :; fi
/usr/bin/mkdir -p /home/sda3/openvswitch-2.14.0/rpm/rpmbuild/SOURCES
cp openvswitch-2.14.0.tar.gz /home/sda3/openvswitch-2.14.0/rpm/rpmbuild/SOURCES
rpmbuild --with dpdk --without check \
                 -D "_topdir /home/sda3/openvswitch-2.14.0/rpm/rpmbuild" \
                 -ba ./rhel/openvswitch-fedora.spec
执行(%prep): /bin/sh -e /var/tmp/rpm-tmp.uC9Jws
+ umask 022
+ cd /home/sda3/openvswitch-2.14.0/rpm/rpmbuild/BUILD
+ cd /home/sda3/openvswitch-2.14.0/rpm/rpmbuild/BUILD
+ rm -rf openvswitch-2.14.0
+ /usr/bin/gzip -dc 
/home/sda3/openvswitch-2.14.0/rpm/rpmbuild/SOURCES/openvswitch-2.14.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd openvswitch-2.14.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
执行(%build): /bin/sh -e /var/tmp/rpm-tmp.QlczIL
+ umask 022
+ cd /home/sda3/openvswitch-2.14.0/rpm/rpmbuild/BUILD
+ cd openvswitch-2.14.0
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -m64 -mtune=generic 
-I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -m64 -mtune=generic 
-I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 == 1 ']'
+ '[' x86_64 == ppc64le ']'
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./build-aux/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./build-aux/config.guess
++ basename ./build-aux/config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess
'/usr/lib/rpm/redhat/config.guess' -> './build-aux/config.guess'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./build-aux/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./build-aux/config.sub
++ basename ./build-aux/config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub
'/usr/lib/rpm/redhat/config.sub' -> './build-aux/config.sub'
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu 
--program-prefix= --disable-dependency-tracking --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib 
--mandir=/usr/share/man --infodir=/usr/share/info --enable-libcapng 
--with-dpdk=/home/sda3/dpdk_for_ovs --enable-ssl --enable-static 
--with-pkidir=/var/lib/openvswitch/pki PYTHON3=/usr/bin/python3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/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 x86_64-redhat-linux-gnu-gcc... no
checking for gcc... 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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for x86_64-redhat-linux-gnu-g++... no
checking for x86_64-redhat-linux-gnu-c++... no
checking for x86_64-redhat-linux-gnu-gpp... no
checking for x86_64-redhat-linux-gnu-aCC... no
checking for x86_64-redhat-linux-gnu-CC... no
checking for x86_64-redhat-linux-gnu-cxx... no
checking for x86_64-redhat-linux-gnu-cc++... no
checking for x86_64-redhat-linux-gnu-cl.exe... no
checking for x86_64-redhat-linux-gnu-FCC... no
checking for x86_64-redhat-linux-gnu-KCC... no
checking for x86_64-redhat-linux-gnu-RCC... no
checking for x86_64-redhat-linux-gnu-xlC_r... no
checking for x86_64-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for fgrep... /usr/bin/grep -F
checking for egrep... /usr/bin/grep -E
checking for x86_64-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
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-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-redhat-linux-gnu file names to 
x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-linux-gnu file names to toolchain 
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for x86_64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) 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... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) 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_rwlock_tryrdlock... -lpthread
checking for library containing pthread_rwlockattr_destroy... none required
checking for library containing pthread_spin_lock... none required
checking for pthread_spin_lock... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
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 pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking whether SSL_set_tlsext_host_name is declared... yes
checking for capng_clear in -lcap-ng... yes
checking for Python 3 (version 3.4 or later)... /usr/bin/python3
checking for flake8... no
checking for sphinx-build-3... sphinx-build-3
checking for dot... 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... no
checking whether AF_XDP is enabled... no
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 linux/net_namespace.h usability... yes
checking linux/net_namespace.h presence... yes
checking for linux/net_namespace.h... yes
checking stdatomic.h usability... no
checking stdatomic.h presence... no
checking for stdatomic.h... no
checking bits/floatn-common.h usability... no
checking bits/floatn-common.h presence... no
checking for bits/floatn-common.h... no
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 gcc -std=gnu99 has <threads.h> that supports thread_local... no
checking whether gcc -std=gnu99 supports __thread... yes
checking for library containing __atomic_load_8... no
checking whether gcc -std=gnu99 supports GCC 4.0+ atomic built-ins... yes
checking value of __atomic_always_lock_free(1)... 1
checking value of __atomic_always_lock_free(2)... 1
checking value of __atomic_always_lock_free(4)... 1
checking value of __atomic_always_lock_free(8)... 1
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.14.so.0.0.0)
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for working posix_memalign... yes
checking for ub_ctx_create in -lunbound... yes
checking for unw_backtrace in -lunwind... 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 gcc -std=gnu99 accepts -Werror... yes
checking whether gcc -std=gnu99 accepts -Wall... yes
checking whether gcc -std=gnu99 accepts -Wextra... yes
checking whether gcc -std=gnu99 accepts -Wno-sign-compare... yes
checking whether gcc -std=gnu99 accepts -Wpointer-arith... yes
checking whether gcc -std=gnu99 accepts -Wformat -Wformat-security... yes
checking whether gcc -std=gnu99 accepts -Wswitch-enum... yes
checking whether gcc -std=gnu99 accepts -Wunused-parameter... yes
checking whether gcc -std=gnu99 accepts -Wbad-function-cast... yes
checking whether gcc -std=gnu99 accepts -Wcast-align... yes
checking whether gcc -std=gnu99 accepts -Wstrict-prototypes... yes
checking whether gcc -std=gnu99 accepts -Wold-style-definition... yes
checking whether gcc -std=gnu99 accepts -Wmissing-prototypes... yes
checking whether gcc -std=gnu99 accepts -Wmissing-field-initializers... yes
checking whether gcc -std=gnu99 accepts -Wthread-safety... no
checking whether gcc -std=gnu99 accepts -fno-strict-aliasing... yes
checking whether gcc -std=gnu99 accepts -Wswitch-bool... no
checking whether gcc -std=gnu99 accepts -Wlogical-not-parentheses... no
checking whether gcc -std=gnu99 accepts -Wsizeof-array-argument... no
checking whether gcc -std=gnu99 accepts -Wbool-compare... no
checking whether gcc -std=gnu99 accepts -Wshift-negative-value... no
checking whether gcc -std=gnu99 accepts -Wduplicated-cond... no
checking whether gcc -std=gnu99 accepts -Qunused-arguments... no
checking whether gcc -std=gnu99 accepts -Wshadow... yes
checking whether gcc -std=gnu99 accepts -Wmultistatement-macros... no
checking whether gcc -std=gnu99 accepts -Wcast-align=strict... no
checking whether gcc -std=gnu99 accepts -Wno-null-pointer-arithmetic... no
checking whether gcc -std=gnu99 accepts -Warray-bounds-pointer-arithmetic... no
checking whether gcc -std=gnu99 accepts -Wno-unused... yes
checking whether gcc -std=gnu99 accepts -Wno-unused-parameter... yes
checking whether gcc -std=gnu99 accepts -mavx512f... no
checking whether gcc -std=gnu99 accepts -mavx512f... (cached) no
checking target hint for cgcc... x86_64
checking vector options for cgcc... -D__MMX__=1 -D__SSE2_MATH__=1 
-D__SSE_MATH__=1 -D__SSE2__=1 -D__SSE__=1 
checking whether DPCLS Autovalidator is default implementation... no
checking binutils avx512 assembler checks passing... yes
checking for struct tcf_t.firstuse... yes
checking whether dpdk is enabled... yes
checking for rte_config.h... yes
checking whether RTE_LIBRTE_VHOST_NUMA is declared... yes
checking for library containing get_mempolicy... -lnuma
checking whether RTE_EAL_NUMA_AWARE_HUGEPAGES is declared... yes
checking for library containing get_mempolicy... (cached) -lnuma
checking whether RTE_LIBRTE_PMD_PCAP is declared... no
checking whether RTE_LIBRTE_PMD_AF_XDP is declared... no
checking whether RTE_LIBRTE_VHOST_NUMA is declared... (cached) yes
checking whether RTE_LIBRTE_MLX5_PMD is declared... no
checking whether RTE_LIBRTE_MLX4_PMD is declared... no
checking for library containing dlopen... -ldl
checking whether linking with dpdk works... no
configure: error: Could not find DPDK libraries in /home/sda3/dpdk_for_ovs/lib



ccd...@sina.com
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to