I didn't get right result in Ubuntu 18.04

sonarcfamily
build-wrapper
scanner
ubuntu
c

(Mehmet Sergen Ergen) #1

Hello,
I tried code-analysis two different Ubuntu version (18.04 and 16.04) on local.
I believe i got the right result while I working on Ubuntu 16.04.
But I got errors while I working on Ubuntu 18.04.

I am working this command in Ubuntu 18.04. I got errors for each code files. (I attached log output down).
build-wrapper-linux-x86-64 --out-dir bw-output make clean all

Log output;

ERROR: ld.so: object ‘/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so’ from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

I’m not sure if I get the right result
Most software developers are using ubuntu 18.04 at company
I am your customer at SonarCloud so I want to use system effectively.
I need to help.
Thanks.

ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Making clean
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
compiling steci_layer_test.c
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
compiling dcop_mw_datachannel_test.c
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/msergenergen/.build-wrapper/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Unity test run 1 of 1
1.File Loading status: 0 / 2105384 
2.File Loading status: 2048 / 2105384 
3.File Loading status: 4096 / 2105384 
4.File Loading status: 6144 / 2105384 
5.File Loading status: 8192 / 2105384 
6.File Loading status: 8232 / 2105384 
7.File Loading status: 8232 / 2105384 
8.File Loading status: 8232 / 2105384 
9.File Loading status: 8232 / 2105384 
10.File Loading status: 8232 / 2105384 
11.File Loading status: 8232 / 2105384 
12.File Loading status: 8232 / 2105384 
13.File Loading status: 8232 / 2105384 
14.File Loading status: 8232 / 2105384 
15.File Loading status 8232 / 2105384 
16.File Loading status: 8232 / 2105384 
17.File Loading status 8232 / 2105384 
18.File Loading status 8232 / 2105384 
19.File Loading status 8232 / 2105384 
20.File Loading status 8232 / 2105384 
21.File Loading status 8232 / 2105384 
22.File Loading status 8232 / 2105384 
23.File Loading status. 8232 / 2105384 

-----------------------
1 Tests 0 Failures 0 Ignored
OK

(Massimo Paladin) #2

Hello @msergenergen,

you might be facing CPP-2027:

Either copy libinterceptor-x86_64.so to libinterceptor-haswell.so

cp ./build-wrapper-linux-x86/libinterceptor-x86_64.so ./build-wrapper-linux-x86/libinterceptor-haswell.so

(make sure to not remove original file)

or create symlink libinterceptor-haswell.so to libinterceptor-x86_64.so

ln -s libinterceptor-x86_64.so ./build-wrapper-linux-x86/libinterceptor-haswell.so

(Mehmet Sergen Ergen) #3

Thanks for answer.
I didn’t get the error this time.
I guess working properly.
Have a nice day.