Thanks Damjan. If cloning a brandnew repo, the build is ok. Ping
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Damjan Marion via Lists.Fd.Io Sent: Wednesday, September 5, 2018 1:13 AM To: Yu, Ping <ping...@intel.com> Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] cmake is on Dear Ping, Can you please clean up your workspace (git clean -fdx) and then capture full log... Thanks, -- Damjan On 4 Sep 2018, at 15:40, Yu, Ping <ping...@intel.com<mailto:ping...@intel.com>> wrote: Hi, Damjan, My Ubuntu environment is good. But in FC27, I got the following issue in debug mode. -- Build files have been written to: /home/pyu4/git-home/vpp_master/vpp/build-root/build-vpp_debug-native/vpp @@@@ Building vpp in /home/pyu4/git-home/vpp_master/vpp/build-root/build-vpp_debug-native/vpp @@@@ [507/1184] Building C object vppinfra/CMakeFiles/vppinfra.dir/mem_dlmalloc.c.o FAILED: vppinfra/CMakeFiles/vppinfra.dir/mem_dlmalloc.c.o ccache /usr/lib64/ccache/cc -Dvppinfra_EXPORTS -I/home/pyu4/git-home/vpp_master/vpp/src -I. -Iinclude -march=corei7 -mtune=corei7-avx -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -fstack-protector-all -fPIC -Werror -fPIC -Wno-address-of-packed-member -Wall -MD -MT vppinfra/CMakeFiles/vppinfra.dir/mem_dlmalloc.c.o -MF vppinfra/CMakeFiles/vppinfra.dir/mem_dlmalloc.c.o.d -o vppinfra/CMakeFiles/vppinfra.dir/mem_dlmalloc.c.o -c /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem_dlmalloc.c /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem_dlmalloc.c:42:3: error: conflicting types for ‘mheap_trace_t’ } mheap_trace_t; ^~~~~~~~~~~~~ In file included from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem.h:49:0, from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/vec.h:42, from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/format.h:44, from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem_dlmalloc.c:16: /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mheap_bootstrap.h:147:3: note: previous declaration of ‘mheap_trace_t’ was here } mheap_trace_t; ^~~~~~~~~~~~~ /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem_dlmalloc.c:59:3: error: conflicting types for ‘mheap_trace_main_t’ } mheap_trace_main_t; ^~~~~~~~~~~~~~~~~~ In file included from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem.h:49:0, from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/vec.h:42, from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/format.h:44, from /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mem_dlmalloc.c:16: /home/pyu4/git-home/vpp_master/vpp/src/vppinfra/mheap_bootstrap.h:161:3: note: previous declaration of ‘mheap_trace_main_t’ was here } mheap_trace_main_t; ^~~~~~~~~~~~~~~~~~ cc1: error: unrecognized command line option ‘-Wno-address-of-packed-member’ [-Werror] cc1: all warnings being treated as errors [620/1184] Building C object vnet/CMakeFiles/vnet.dir/dhcp/dhcp_api.c.o ninja: build stopped: subcommand failed. make[1]: *** [Makefile:691: vpp-build] Error 1 make[1]: Leaving directory '/home/pyu4/git-home/vpp_master/vpp/build-root' make: *** [Makefile:342: build] Error 2 the following issue in release mode. [781/1184] Linking C executable bin/sock_test_server FAILED: bin/sock_test_server : && ccache /usr/lib64/ccache/cc -march=corei7 -mtune=corei7-avx -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror vcl/CMakeFiles/sock_test_server.dir/sock_test_server.c.o -o bin/sock_test_server -Wl ,-rpath,/home/pyu4/git-home/vpp_master/vpp/build-root/build-vpp-native/vpp/lib lib/libvppcom.so.18.10 lib/libvlibmemoryclient.so.18.10 lib/libvlib.so.18.10 lib/libsvm.so.18.10 lib/libvppinfra.so.18.10 -lm -ldl - lrt -lpthread && : lib/libvppcom.so.18.10: undefined reference to `mheap_put' lib/libvlibmemoryclient.so.18.10: undefined reference to `mheap_get_aligned' collect2: error: ld returned 1 exit status [782/1184] Linking C executable bin/test_vcl_listener_client FAILED: bin/test_vcl_listener_client : && ccache /usr/lib64/ccache/cc -march=corei7 -mtune=corei7-avx -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror vcl/CMakeFiles/test_vcl_listener_client.dir/test_vcl_listener_client.c.o -o bin/test_ vcl_listener_client -Wl,-rpath,/home/pyu4/git-home/vpp_master/vpp/build-root/build-vpp-native/vpp/lib lib/libvppcom.so.18.10 lib/libvlibmemoryclient.so.18.10 lib/libvlib.so.18.10 lib/libsvm.so.18.10 lib/libvppinfra.so.18.10 -lm -ldl -lrt -lpthread && : lib/libvppcom.so.18.10: undefined reference to `mheap_put' lib/libvlibmemoryclient.so.18.10: undefined reference to `mheap_get_aligned' collect2: error: ld returned 1 exit status From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> [mailto:vpp-dev@lists.fd.io] On Behalf Of Damjan Marion via Lists.Fd.Io Sent: Sunday, September 2, 2018 8:48 PM To: vpp-dev <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] cmake is on Dear all, We just switched from autotools to cmake and retired all autotools related files in src/. All verify jobs are ok, and we also tried it on 3 different x86 and 2 different ARM Aarch64 machines. Due to blast radius, i will not be surprised that some small issues pop out, but i don't expect anything hard to fix. Let us know if you hit something... PS As a part of this change, CentOS 7 build are now using devtoolset-7, so they are compiled with gcc-7, which also means images have support for Skylake Servers (AVX512). -- Damjan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10380): https://lists.fd.io/g/vpp-dev/message/10380 Mute This Topic: https://lists.fd.io/mt/25155374/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-