Sonarqube build wrapper empty json

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 8.1.0.31237
    build-wrapper 6.5
  • what are you trying to achieve
    Build with wrapper for general code quality analysis
  • what have you tried so far to achieve this
    /opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir . ‘make command’

Hello,

I am having some issues with the build wrapper, it keeps skipping build processes and it generates an empty JSON dump. I will include the log and the dump file here.

Can someone help me?

Thanks!

Log:
Fri Jun 26 09:38:31 2020: build-wrapper, version 6.5 (linux-x86)
Fri Jun 26 09:38:31 2020: System name: Linux Nodename: wenshvm Release: 3.10.0-327.36.3.el7.x86_64 Version: #1 SMP Mon Oct 24 16:09:20 UTC 2016 Machine: x86_64
Fri Jun 26 09:38:31 2020: socket path: /tmp/build-wrapper-socket.Hz9vDY
Fri Jun 26 09:38:31 2020: dynamic library found: /opt/build-wrapper-linux-x86/libinterceptor-i686.so
Fri Jun 26 09:38:31 2020: dynamic library found: /opt/build-wrapper-linux-x86/libinterceptor-x86_64.so
Fri Jun 26 09:38:31 2020: command executed as: </opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64>
Fri Jun 26 09:38:31 2020: command line received: <make modules -j4 CODE_COV=Yes BUILDTYPE=Debug_Development>
Fri Jun 26 09:38:31 2020: env 0: <XDG_VTNR=1>
Fri Jun 26 09:38:31 2020: env 1: <XDG_SESSION_ID=1>
Fri Jun 26 09:38:31 2020: env 2: <HOSTNAME=wenshvm>
Fri Jun 26 09:38:31 2020: env 3: <IMSETTINGS_INTEGRATE_DESKTOP=yes>
Fri Jun 26 09:38:31 2020: env 4: <GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1>
Fri Jun 26 09:38:31 2020: env 5: <TERM=xterm-256color>
Fri Jun 26 09:38:31 2020: env 6: <SHELL=/bin/bash>
Fri Jun 26 09:38:31 2020: env 7: <VTE_VERSION=3803>
Fri Jun 26 09:38:31 2020: env 8: <XDG_MENU_PREFIX=gnome->
Fri Jun 26 09:38:31 2020: env 9: <HISTSIZE=1000>
Fri Jun 26 09:38:31 2020: env 10: <GJS_DEBUG_OUTPUT=stderr>
Fri Jun 26 09:38:31 2020: env 11: <WINDOWID=41943047>
Fri Jun 26 09:38:31 2020: env 12: <OLDPWD=/home/workspace/embedded>
Fri Jun 26 09:38:31 2020: env 13: <QTDIR=/usr/lib64/qt-3.3>
Fri Jun 26 09:38:31 2020: env 14: <QTINC=/usr/lib64/qt-3.3/include>
Fri Jun 26 09:38:31 2020: env 15: <GJS_DEBUG_TOPICS=JS ERROR;JS LOG>
Fri Jun 26 09:38:31 2020: env 16: <NO_PROXY=localhost,127.0.0.0/8,::1>
Fri Jun 26 09:38:31 2020: env 17: <IMSETTINGS_MODULE=none>
Fri Jun 26 09:38:31 2020: env 18: <QT_GRAPHICSSYSTEM_CHECKED=1>
Fri Jun 26 09:38:31 2020: env 19: <USER=wensh>
Fri Jun 26 09:38:31 2020: env 21: <SSH_AUTH_SOCK=/run/user/1000/keyring/ssh>
Fri Jun 26 09:38:31 2020: env 22: <SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/3145,unix/unix:/tmp/.ICE-unix/3145>
Fri Jun 26 09:38:31 2020: env 23: <USERNAME=wensh>
Fri Jun 26 09:38:31 2020: env 24: <CCACHE_CPP2=>
Fri Jun 26 09:38:31 2020: env 25: <PATH=/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/.local/bin:/home/bin>
Fri Jun 26 09:38:31 2020: env 26: <MAIL=/var/spool/mail/wensh>
Fri Jun 26 09:38:31 2020: env 27: <DESKTOP_SESSION=gnome>
Fri Jun 26 09:38:31 2020: env 28: <QT_IM_MODULE=ibus>
Fri Jun 26 09:38:31 2020: env 29: <PWD=/home/wensh/workspace/embedded>
Fri Jun 26 09:38:31 2020: env 30: <XMODIFIERS=@im=ibus>
Fri Jun 26 09:38:31 2020: env 31: <LANG=en_US.utf8>
Fri Jun 26 09:38:31 2020: env 32: <GDM_LANG=en_US.utf8>
Fri Jun 26 09:38:31 2020: env 33: <GDMSESSION=gnome>
Fri Jun 26 09:38:31 2020: env 34: <HISTCONTROL=ignoredups>
Fri Jun 26 09:38:31 2020: env 35: <HOME=/home/wensh>
Fri Jun 26 09:38:31 2020: env 36: <XDG_SEAT=seat0>
Fri Jun 26 09:38:31 2020: env 37: <SHLVL=2>
Fri Jun 26 09:38:31 2020: env 38: <no_proxy=localhost,127.0.0.0/8,::1>
Fri Jun 26 09:38:31 2020: env 39: <GNOME_DESKTOP_SESSION_ID=this-is-deprecated>
Fri Jun 26 09:38:31 2020: env 40: <XDG_SESSION_DESKTOP=gnome>
Fri Jun 26 09:38:31 2020: env 41: <LOGNAME=wensh>
Fri Jun 26 09:38:31 2020: env 42: <QTLIB=/usr/lib64/qt-3.3/lib>
Fri Jun 26 09:38:31 2020: env 43: <DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Uh3UptgeBT,guid=58a0410ae7f08805cecaad915ef5a452>
Fri Jun 26 09:38:31 2020: env 44: <LESSOPEN=||/usr/bin/lesspipe.sh %s>
Fri Jun 26 09:38:31 2020: env 45: <WINDOWPATH=1>
Fri Jun 26 09:38:31 2020: env 46: <XDG_RUNTIME_DIR=/run/user/1000>
Fri Jun 26 09:38:31 2020: env 47: <DISPLAY=:0>
Fri Jun 26 09:38:31 2020: env 48: <XDG_CURRENT_DESKTOP=GNOME>
Fri Jun 26 09:38:31 2020: env 49: <CCACHE_HASHDIR=>
Fri Jun 26 09:38:31 2020: env 50: <XAUTHORITY=/run/gdm/auth-for-wensh-RiKY90/database>
Fri Jun 26 09:38:31 2020: env 51: <_=/opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64>
Fri Jun 26 09:38:31 2020: executing: <make modules -j4 CODE_COV=Yes BUILDTYPE=Debug_Development>
Fri Jun 26 09:38:31 2020: initializing json file
Fri Jun 26 09:38:31 2020: process created with pid: 6290
Fri Jun 26 09:38:31 2020: parent pid: 6289
Fri Jun 26 09:38:31 2020: working directory: </home/wensh/workspace/embedded>
Fri Jun 26 09:38:31 2020: executable: </opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64>

Fri Jun 26 09:41:49 2020: argv[1]: <Building file: ‘source.cpp’>
Fri Jun 26 09:41:49 2020: skipping process with pid: 7968
Fri Jun 26 09:41:49 2020: process created with pid: 7974
Fri Jun 26 09:41:49 2020: parent pid: 6291
Fri Jun 26 09:41:49 2020: working directory: </home/workspace/embedded>
Fri Jun 26 09:41:49 2020: executable: </usr/bin/echo>
Fri Jun 26 09:41:49 2020: argv[0]:
Fri Jun 26 09:41:49 2020: argv[1]: <Building file: ‘source.cpp’>
Fri Jun 26 09:41:49 2020: skipping process with pid: 7974

JSON dump:
© SonarSource SA, 2014-2019, info@sonarsource.com
All SONARSOURCE programs and content are copyright protected.
SONARSOURCE and SONARQUBE are trademarks of SonarSource SA. All rights are expressly reserved.

This file is designed exclusively for use with the SONARSOURCE C / C++ / Objective-C Plugin.
It may not be used in connection with any other software.
Any other use is prohibited by law and may be grounds for immediate termination of your License.
{
“version”:0,
“captures”:[
]}

Hello @Wensh,

  • First, to make sure that the problem is still there can you update to the latest version of Cfamily analyzer
    If the problem persists:
  • What compiler are you using?
  • Can you upload the full build-wrapper log file? Let me know if you prefer to share it privately.

Thanks,

Hey Abbas,

strange enough, redoing the analysis on a fresh VM fixed the issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.