From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4490616990477761811==" MIME-Version: 1.0 From: Harris, James R Subject: [SPDK] Re: Unit test failure for review submission Date: Fri, 01 May 2020 15:06:43 +0000 Message-ID: <2F78181C-CD1E-4D25-97D1-A893FA1DD4B8@intel.com> In-Reply-To: 64AFF97A-B591-418E-B892-8AD63A481D90@intel.com List-ID: To: spdk@lists.01.org --===============4490616990477761811== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Wenhua, Could you try: CC=3Dclang CXX=3Dclang++ ./configure make There is a bug in our dpdkbuild/Makefile, so please still file an issue for= it. But the above works on my system and should unblock you. The problem is that DPDK gets configured and built based on the compiler sp= ecified when SPDK's configure script was called, not the one specified on t= he make file. That's a bug. We need to fix how CC_TYPE is evaluated in dp= dkbuild/Makefile. -Jim =EF=BB=BFOn 5/1/20, 7:52 AM, "Harris, James R" = wrote: Hi Wenhua, Thanks for the report. Can you file a github issue for this? There's = no review link required - it's easily reproducible by just running "./confi= gure --enable-werror; make CC=3Dclang CXX=3Dclang++". It's possible this h= as been fixed with more recent DPDK, or there is some flag we can pass to t= he DPDK build to disable this warning. Regards, -Jim On 5/1/20, 5:45 AM, "Luse, Paul E" wrote: Hi Wenhua, Can you provide a link to the actual review? Thanks Paul -----Original Message----- From: Wenhua Liu [mailto:liuw(a)vmware.com] = Sent: Thursday, April 30, 2020 8:05 PM To: Storage Performance Development Kit Subject: [SPDK] Unit test failure for review submission Hi, I tried to submit a change for review, some unit test was run and f= ailed, but I did not touch any of these files. I=E2=80=99m on top of the ma= ster branch. warning: redirecting to https://review.spdk.io/gerrit/spdk/spdk/ Running make with clang ... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ /home/vmware/spdk/spdk/dpdk/build/include/rte_memcpy.h:359:23: erro= r: cast from 'uint8_t *' (aka 'unsigned char *') to '__m256i *' increases r= equired alignment from 1 to 32 [-Werror,-Wcast-align] _mm256_storeu_si256((__m256i *)((uint8_t *)dst + 1 = * 32), ymm1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ /home/vmware/spdk/spdk/dpdk/build/include/rte_memcpy.h:360:23: erro= r: cast from 'uint8_t *' (aka 'unsigned char *') to '__m256i *' increases r= equired alignment from 1 to 32 [-Werror,-Wcast-align] _mm256_storeu_si256((__m256i *)((uint8_t *)dst + 2 = * 32), ymm2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ /home/vmware/spdk/spdk/dpdk/build/include/rte_memcpy.h:361:23: erro= r: cast from 'uint8_t *' (aka 'unsigned char *') to '__m256i *' increases r= equired alignment from 1 to 32 [-Werror,-Wcast-align] _mm256_storeu_si256((__m256i *)((uint8_t *)dst + 3 = * 32), ymm3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ 12 errors generated. make[8]: *** [/home/vmware/spdk/spdk/dpdk/mk/internal/rte.compile-p= re.mk:114: malloc_heap.o] Error 1 make[7]: *** [/home/vmware/spdk/spdk/dpdk/mk/rte.subdir.mk:37: eal]= Error 2 make[6]: *** [/home/vmware/spdk/spdk/dpdk/mk/rte.subdir.mk:37: linu= x] Error 2 make[5]: *** [/home/vmware/spdk/spdk/dpdk/mk/rte.subdir.mk:37: libr= te_eal] Error 2 make[4]: *** [/home/vmware/spdk/spdk/dpdk/mk/rte.sdkbuild.mk:48: li= b] Error 2 make[3]: *** [/home/vmware/spdk/spdk/dpdk/mk/rte.sdkroot.mk:99: all= ] Error 2 make[2]: *** [Makefile:12: all] Error 2 make[1]: *** [Makefile:150: all] Error 2 make: *** [/home/vmware/spdk/spdk/mk/spdk.subdirs.mk:44: dpdkbuild]= Error 2 ERROR make CC=3Dclang CXX=3Dclang++ returned errors! ERROR Fix the problem and use 'git commit' to update your changes. ERROR See /home/vmware/spdk/spdk/make.log for more information. error: failed to push some refs to 'https://review.spdk.io/spdk/spd= k' Checking make.log, I did not see any test failed. What could be wrong? Thanks, -Wenhua Liu _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org --===============4490616990477761811==--