Try “UNATTENDED=1 make install-dep install-ext-deps build-release” instead.

--a

> On 5 May 2022, at 08:48, Sindhu Pitta <pitta.sind...@ltts.com> wrote:
> 
> 
> Hi Team,
>  
> We are trying to build VPP on ubuntu 20.04 with kernel version:5.4.x.
> We cloned the gerrit code: https://gerrit.fd.io/r/vpp
> When we try to build with : /build-root/vagrant/build.sh, we see below issues:
>  
>  
> ubuntu@vpp:~/vpp/build-root$ cat 
> /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeError.log
> Performing C SOURCE FILE Test compiler_flag_no_stringop_overflow failed with 
> the following output:
> Change Dir: 
> /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp
>  
> Run Build Command(s):/usr/bin/ninja cmTC_155e3 && [1/2] Building C object 
> CMakeFiles/cmTC_155e3.dir/src.c.o
> warning: unknown warning option '-Wno-stringop-overflow'; did you mean 
> '-Wno-shift-overflow'? [-Wunknown-warning-option]
> 1 warning generated.
> [2/2] Linking C executable cmTC_155e3
>  
>  
> Source file was:
> int main(void) { return 0; }
> Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the 
> following output:
> Change Dir: 
> /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp
>  
> Run Build Command(s):/usr/bin/ninja cmTC_ff9c6 && [1/2] Building C object 
> CMakeFiles/cmTC_ff9c6.dir/src.c.o
> [2/2] Linking C executable cmTC_ff9c6
> FAILED: cmTC_ff9c6 
> : && /usr/lib/ccache/clang --target=x86_64-linux-gnu   
> CMakeFiles/cmTC_ff9c6.dir/src.c.o -o cmTC_ff9c6   && :
> /usr/bin/x86_64-linux-gnu-ld: CMakeFiles/cmTC_ff9c6.dir/src.c.o: in function 
> `main':
> src.c:(.text+0x25): undefined reference to `pthread_create'
> /usr/bin/x86_64-linux-gnu-ld: src.c:(.text+0x31): undefined reference to 
> `pthread_detach'
> /usr/bin/x86_64-linux-gnu-ld: src.c:(.text+0x3d): undefined reference to 
> `pthread_cancel'
> /usr/bin/x86_64-linux-gnu-ld: src.c:(.text+0x4f): undefined reference to 
> `pthread_join'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> ninja: build stopped: subcommand failed.
>  
>  
> Source file was:
> #include <pthread.h>
>  
> static void* test_func(void* data)
> {
>   return data;
> }
>  
> int main(void)
> {
>   pthread_t thread;
>   pthread_create(&thread, NULL, test_func, NULL);
>   pthread_detach(thread);
>   pthread_cancel(thread);
>   pthread_join(thread, NULL);
>   pthread_atfork(NULL, NULL, NULL);
>   pthread_exit(NULL);
>  
>   return 0;
> }
>  
> Checking whether the ASM compiler is GNU using "--version" did not match 
> "(GNU assembler)|(GCC)|(Free Software Foundation)":
> clang version 10.0.0-4ubuntu1 
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Determining if the function SSL_set_async_callback exists failed with the 
> following output:
> Change Dir: 
> /home/ubuntu/vpp/build-root/build-vpp-native/vpp/CMakeFiles/CMakeTmp
>  
> Run Build Command(s):/usr/bin/ninja cmTC_ed864 && [1/2] Building C object 
> CMakeFiles/cmTC_ed864.dir/CheckFunctionExists.c.o
> [2/2] Linking C executable cmTC_ed864
> FAILED: cmTC_ed864 
> : && /usr/lib/ccache/clang --target=x86_64-linux-gnu 
> -DCHECK_FUNCTION_EXISTS=SSL_set_async_callback  
> CMakeFiles/cmTC_ed864.dir/CheckFunctionExists.c.o -o cmTC_ed864  
> /usr/lib/x86_64-linux-gnu/libssl.so  /usr/lib/x86_64-linux-gnu/libcrypto.so 
> && :
> /usr/bin/x86_64-linux-gnu-ld: 
> CMakeFiles/cmTC_ed864.dir/CheckFunctionExists.c.o: in function `main':
> CheckFunctionExists.c:(.text+0x17): undefined reference to 
> `SSL_set_async_callback'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> ninja: build stopped: subcommand failed.
>  
>  
> We have seen posts on similar issue (vpp-dev@lists.fd.io | Arm build failures 
> on Qualcomm, ThunderX2, Mellanox Bluefield),but couldn’t find a proper answer.
>  
> We tried with a stable version also, but seeing same issue.
>  
> Can anyone please share your points on this.
>  
> Regards,
> Sindhu
> 
> Get Outlook for iOS
> L&T Technology Services Ltd
> 
> www.LTTS.com
> 
> L&T Technology Services Limited (LTTS) is committed to safeguard your data 
> privacy. For more information to view our commitment towards data privacy 
> under GDPR, please visit the privacy policy on our website www.Ltts.com. This 
> Email may contain confidential or privileged information for the intended 
> recipient (s). If you are not the intended recipient, please do not use or 
> disseminate the information, notify the sender and delete it from your system.
> 
> 
> 
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21367): https://lists.fd.io/g/vpp-dev/message/21367
Mute This Topic: https://lists.fd.io/mt/90906174/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to