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<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fd.io%2Fg%2Fvpp-dev%2Ftopic%2F30829032%3Fp%3D%2C%2C%2C20%2C0%2C0%2C0%3A%3A%2C%2C%2C0%2C0%2C0%2C30829032&data=05%7C01%7Cpitta.sindhu1%40ltts.com%7C7b6de252a1d5456720d308da2dd41d9a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637872686303438404%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TIJV6GaPAY1YQ%2FtNVWp0ZyMIy2A3j0vdkkf98C%2FwJZw%3D&reserved=0>),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<https://aka.ms/o0ukef>

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 (#21365): https://lists.fd.io/g/vpp-dev/message/21365
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