UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

Not able to setup the configuration in WSL2 Ubuntu 24

Open javierMolinero opened this issue 1 year ago • 0 comments

Description I am not being able to configure the UTBot in WS2 Ubuntu 24 with VSCode

To Reproduce Steps to reproduce the behavior:

  1. Open the 'X' project in IDE
  2. Use plugin to generate tests
  3. There is an error when trying to configure the target

It fails with the following output:

_Change Dir: /home/jmolinero/demos/cpp-example/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_057bb/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_057bb.dir/build.make CMakeFiles/cmTC_057bb.dir/build
gmake[1]: Entering directory '/home/jmolinero/demos/cpp-example/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_057bb.dir/testCCompiler.c.o
/usr/bin/gcc    -o CMakeFiles/cmTC_057bb.dir/testCCompiler.c.o -c /home/jmolinero/demos/cpp-example/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_057bb
/home/jmolinero/utbot_distr/install/bin/cmake -E cmake_link_script CMakeFiles/cmTC_057bb.dir/link.txt --verbose=1
/usr/bin/gcc CMakeFiles/cmTC_057bb.dir/testCCompiler.c.o -o cmTC_057bb 
/home/jmolinero/utbot_distr/debs-install/usr/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section `.relr.dyn'
/home/jmolinero/utbot_distr/debs-install/usr/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6
/home/jmolinero/utbot_distr/debs-install/usr/bin/ld: cannot find /lib/x86_64-linux-gnu/libc.so.6
/home/jmolinero/utbot_distr/debs-install/usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
/home/jmolinero/utbot_distr/debs-install/usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
/home/jmolinero/utbot_distr/debs-install/usr/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_057bb.dir/build.make:99: cmTC_057bb] Error 1
gmake[1]: Leaving directory '/home/jmolinero/demos/cpp-example/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_057bb/fast] Error 2_

Expected behavior Tests are supposed to be generated.

Actual behavior An error test is generated with information about errors in the concrete executor.

Visual proofs (screenshots, logs) image

Environment VsCode running in Windows using WSL2 Ubuntu 24 with gcc-9 installed and running properly

Additional context My first "failure" was trying to compile the target project with gcc-13. Then I realized that gcc-9 was required, then with gcc-9 is still failing.

javierMolinero avatar Dec 03 '24 09:12 javierMolinero