The "build-wrapper-dump.json" file was found empty after build toolchain is upgraded

Hi,
Our project has a sonnar CI job running smoothly until the build toolchain was upgraded. We got the error below:

ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty.

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube server 7.9.4
    SonarScanner 4.6.2.2472
    SonarCFamily 6.8.0.16475

  • what are you trying to achieve
    Our company upgraded the tool chain( gcc version is upgraded from 6.4.1 to 9.1.0). Then I found the sonar CI job failed and tried to resolve the issue.

  • what have you tried so far to achieve this
    I did some experiments with a simple hello world file and with both low toolchain version and higher version, and captured the build_wrapper_output_directory files and logs.

    If possible, could you provide some place I can put the logs for your analysis?

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.4 → 8.9.9 → 9.5 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

1 Like

Hi Colin,
Thank you very much for the reply. I’ll try to upgrade the SonarQube server and see what happens.

Unfortunately the highest version my company currently has is 8.9.8 version(The build wrapper version is 6.20.3), and it takes time to upgrade it right now. I tried on that sever and still got the same error.
One more finding is that the upgraded toolchain seems come from Yocto.
Could you help to take a look at the build-wrapper log? Thank you. ( Some text are deleted and replaced for confidentiality reason)

Tue Aug 09 10:25:43 2022: build-wrapper, version 6.20.3 (linux-x86)
Tue Aug 09 10:25:43 2022: System name: Linux Version: #1 SMP Fri Jan 24 16:28:55 CET 2020 Machine: x86_64
Tue Aug 09 10:25:43 2022: socket path: /tmp/build-wrapper-socket.ysRmmU
Tue Aug 09 10:25:43 2022: dynamic library found: /my-workspace/build-wrapper-linux-x86/libinterceptor-i686.so
Tue Aug 09 10:25:43 2022: dynamic library found: /my-workspace/build-wrapper-linux-x86/libinterceptor-x86_64.so
Tue Aug 09 10:25:43 2022: dynamic library found: /my-workspace/build-wrapper-linux-x86/libinterceptor-haswell.so
Tue Aug 09 10:25:43 2022: command executed as: <build-wrapper-linux-x86-64>
Tue Aug 09 10:25:43 2022: command line received: </pltf/rel-new/linux-x86_64/bld-tools/linux-x86_64/bin/linux-x86_64-g++ -o main.o -c --sysroot=/pltf/rel-new/linux-x86_64/sys-root -g -Wall main.cpp>
Tue Aug 09 10:25:43 2022: env 0: <XDG_SESSION_ID=120249>
Tue Aug 09 10:25:43 2022: env 2: <TERM=xterm-256color>
Tue Aug 09 10:25:43 2022: env 3: <SHELL=/bin/bash>
Tue Aug 09 10:25:43 2022: env 4: <HISTSIZE=1000>
Tue Aug 09 10:25:43 2022: env 6: <SSH_TTY=/dev/pts/1>
Tue Aug 09 10:25:43 2022: env 7: <USER=devuser>
Tue Aug 09 10:25:43 2022: env 8: <LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:>
Tue Aug 09 10:25:43 2022: env 9: <MAIL=/var/spool/mail/devuser>
Tue Aug 09 10:25:43 2022: env 10: <PATH=/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/valgrind/x86_64/3.13.0/bin:/home_local/devuser/.local/bin:/home_local/devuser/bin:/my-workspace/build-wrapper-linux-x86:/usr/local/bin>
Tue Aug 09 10:25:43 2022: env 11: <PWD=/home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: env 12: <LANG=en_US.UTF-8>
Tue Aug 09 10:25:43 2022: env 13: <HISTCONTROL=ignoredups>
Tue Aug 09 10:25:43 2022: env 14: <SHLVL=1>
Tue Aug 09 10:25:43 2022: env 15: <HOME=/home_local/devuser>
Tue Aug 09 10:25:43 2022: env 16: <LOGNAME=devuser>
Tue Aug 09 10:25:43 2022: env 18: <LESSOPEN=||/usr/bin/lesspipe.sh %s>
Tue Aug 09 10:25:43 2022: env 19: <XDG_RUNTIME_DIR=/run/user/1000>
Tue Aug 09 10:25:43 2022: env 20: <_=/my-workspace/build-wrapper-linux-x86/build-wrapper-linux-x86-64>
Tue Aug 09 10:25:43 2022: env 21: <OLDPWD=/home_local/devuser>
Tue Aug 09 10:25:43 2022: executing: </pltf/rel-new/linux-x86_64/bld-tools/linux-x86_64/bin/linux-x86_64-g++ -o main.o -c --sysroot=/pltf/rel-new/linux-x86_64/sys-root -g -Wall main.cpp>
Tue Aug 09 10:25:43 2022: initializing json file
Tue Aug 09 10:25:43 2022: process created with pid: 15292
Tue Aug 09 10:25:43 2022: parent pid: 15291
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </my-workspace/build-wrapper-linux-x86/build-wrapper-linux-x86-64>
Tue Aug 09 10:25:43 2022: argv[0]: <build-wrapper-linux-x86-64>
Tue Aug 09 10:25:43 2022: argv[1]: <-c>
Tue Aug 09 10:25:43 2022: argv[2]: <>
Tue Aug 09 10:25:43 2022: argv[3]: </pltf/rel-new/linux-x86_64/bld-tools/linux-x86_64/bin/linux-x86_64-g++>
Tue Aug 09 10:25:43 2022: argv[4]: <-o>
Tue Aug 09 10:25:43 2022: argv[5]: <main.o>
Tue Aug 09 10:25:43 2022: argv[6]: <-c>
Tue Aug 09 10:25:43 2022: argv[7]: <--sysroot=/pltf/rel-new/linux-x86_64/sys-root>
Tue Aug 09 10:25:43 2022: argv[8]: <-g>
Tue Aug 09 10:25:43 2022: argv[9]: <-Wall>
Tue Aug 09 10:25:43 2022: argv[10]: <main.cpp>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15292
Tue Aug 09 10:25:43 2022: process created with pid: 15293
Tue Aug 09 10:25:43 2022: parent pid: 15292
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/bash>
Tue Aug 09 10:25:43 2022: argv[0]: </bin/bash>
Tue Aug 09 10:25:43 2022: argv[1]: <-e>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/rel-new/linux-x86_64/bld-tools/linux-x86_64/bin/linux-x86_64-g++>
Tue Aug 09 10:25:43 2022: argv[3]: <-o>
Tue Aug 09 10:25:43 2022: argv[4]: <main.o>
Tue Aug 09 10:25:43 2022: argv[5]: <-c>
Tue Aug 09 10:25:43 2022: argv[6]: <--sysroot=/pltf/rel-new/linux-x86_64/sys-root>
Tue Aug 09 10:25:43 2022: argv[7]: <-g>
Tue Aug 09 10:25:43 2022: argv[8]: <-Wall>
Tue Aug 09 10:25:43 2022: argv[9]: <main.cpp>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15293
Tue Aug 09 10:25:43 2022: process created with pid: 15296
Tue Aug 09 10:25:43 2022: parent pid: 15295
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[0]: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[1]: <-f>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/rel-new/linux-x86_64/bld-tools/linux-x86_64/bin/linux-x86_64-g++>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15296
Tue Aug 09 10:25:43 2022: process created with pid: 15294
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/dirname>
Tue Aug 09 10:25:43 2022: argv[0]: </usr/bin/dirname>
Tue Aug 09 10:25:43 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/bin/x86_64-poky-linux-wrapper.sh>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15294
Tue Aug 09 10:25:43 2022: process created with pid: 15297
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[0]: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[1]: <-f>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/bin/../../core2-64-poky-linux>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15297
Tue Aug 09 10:25:43 2022: process created with pid: 15298
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[0]: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[1]: <-f>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/bin/../usr/bin/x86_64-poky-linux>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15298
Tue Aug 09 10:25:43 2022: process created with pid: 15293
Tue Aug 09 10:25:43 2022: parent pid: 15292
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/bash>
Tue Aug 09 10:25:43 2022: argv[0]: </bin/sh>
Tue Aug 09 10:25:43 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++>
Tue Aug 09 10:25:43 2022: argv[2]: <-B>
Tue Aug 09 10:25:43 2022: argv[3]: </pltf/sdk-new/tools/sysroots/core2-64-poky-linux/usr/lib64/x86_64-poky-linux/9.1.0/>
Tue Aug 09 10:25:43 2022: argv[4]: <--sysroot=/pltf/sdk-new/tools/sysroots/core2-64-poky-linux>
Tue Aug 09 10:25:43 2022: argv[5]: <-o>
Tue Aug 09 10:25:43 2022: argv[6]: <main.o>
Tue Aug 09 10:25:43 2022: argv[7]: <-c>
Tue Aug 09 10:25:43 2022: argv[8]: <--sysroot=/pltf/rel-new/linux-x86_64/sys-root>
Tue Aug 09 10:25:43 2022: argv[9]: <-g>
Tue Aug 09 10:25:43 2022: argv[10]: <-Wall>
Tue Aug 09 10:25:43 2022: argv[11]: <main.cpp>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15293
Tue Aug 09 10:25:43 2022: process created with pid: 15299
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[0]: </bin/readlink>
Tue Aug 09 10:25:43 2022: argv[1]: <-f>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15299
Tue Aug 09 10:25:43 2022: process created with pid: 15300
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/dirname>
Tue Aug 09 10:25:43 2022: argv[0]: </usr/bin/dirname>
Tue Aug 09 10:25:43 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15300
Tue Aug 09 10:25:43 2022: process created with pid: 15293
Tue Aug 09 10:25:43 2022: parent pid: 15292
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/lib/ld-2.28.so>
Tue Aug 09 10:25:43 2022: argv[0]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++.orig>
Tue Aug 09 10:25:43 2022: argv[1]: <-B>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/sdk-new/tools/sysroots/core2-64-poky-linux/usr/lib64/x86_64-poky-linux/9.1.0/>
Tue Aug 09 10:25:43 2022: argv[3]: <--sysroot=/pltf/sdk-new/tools/sysroots/core2-64-poky-linux>
Tue Aug 09 10:25:43 2022: argv[4]: <-o>
Tue Aug 09 10:25:43 2022: argv[5]: <main.o>
Tue Aug 09 10:25:43 2022: argv[6]: <-c>
Tue Aug 09 10:25:43 2022: argv[7]: <--sysroot=/pltf/rel-new/linux-x86_64/sys-root>
Tue Aug 09 10:25:43 2022: argv[8]: <-g>
Tue Aug 09 10:25:43 2022: argv[9]: <-Wall>
Tue Aug 09 10:25:43 2022: argv[10]: <main.cpp>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15293
Tue Aug 09 10:25:43 2022: process created with pid: 15301
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/bash>
Tue Aug 09 10:25:43 2022: argv[0]: </bin/sh>
Tue Aug 09 10:25:43 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/cc1plus>
Tue Aug 09 10:25:43 2022: argv[2]: <-quiet>
Tue Aug 09 10:25:43 2022: argv[3]: <-iprefix>
Tue Aug 09 10:25:43 2022: argv[4]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/>
Tue Aug 09 10:25:43 2022: argv[5]: <-isysroot>
Tue Aug 09 10:25:43 2022: argv[6]: </pltf/rel-new/linux-x86_64/sys-root>
Tue Aug 09 10:25:43 2022: argv[7]: <-D_GNU_SOURCE>
Tue Aug 09 10:25:43 2022: argv[8]: <main.cpp>
Tue Aug 09 10:25:43 2022: argv[9]: <-quiet>
Tue Aug 09 10:25:43 2022: argv[10]: <-dumpbase>
Tue Aug 09 10:25:43 2022: argv[11]: <main.cpp>
Tue Aug 09 10:25:43 2022: argv[12]: <-mtune=generic>
Tue Aug 09 10:25:43 2022: argv[13]: <-march=x86-64>
Tue Aug 09 10:25:43 2022: argv[14]: <-auxbase-strip>
Tue Aug 09 10:25:43 2022: argv[15]: <main.o>
Tue Aug 09 10:25:43 2022: argv[16]: <-g>
Tue Aug 09 10:25:43 2022: argv[17]: <-Wall>
Tue Aug 09 10:25:43 2022: argv[18]: <-o>
Tue Aug 09 10:25:43 2022: argv[19]: </tmp/cc63D6QX.s>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15301
Tue Aug 09 10:25:43 2022: process created with pid: 15302
Tue Aug 09 10:25:43 2022: parent pid: 15301
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/readlink>
Tue Aug 09 10:25:43 2022: argv[0]: </bin/readlink>
Tue Aug 09 10:25:43 2022: argv[1]: <-f>
Tue Aug 09 10:25:43 2022: argv[2]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/cc1plus>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15302
Tue Aug 09 10:25:43 2022: process created with pid: 15303
Tue Aug 09 10:25:43 2022: parent pid: 15301
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </usr/bin/dirname>
Tue Aug 09 10:25:43 2022: argv[0]: </usr/bin/dirname>
Tue Aug 09 10:25:43 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/cc1plus>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15303
Tue Aug 09 10:25:43 2022: process created with pid: 15301
Tue Aug 09 10:25:43 2022: parent pid: 15293
Tue Aug 09 10:25:43 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:43 2022: executable: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/lib/ld-2.28.so>
Tue Aug 09 10:25:43 2022: argv[0]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/cc1plus.orig>
Tue Aug 09 10:25:43 2022: argv[1]: <-quiet>
Tue Aug 09 10:25:43 2022: argv[2]: <-iprefix>
Tue Aug 09 10:25:43 2022: argv[3]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/>
Tue Aug 09 10:25:43 2022: argv[4]: <-isysroot>
Tue Aug 09 10:25:43 2022: argv[5]: </pltf/rel-new/linux-x86_64/sys-root>
Tue Aug 09 10:25:43 2022: argv[6]: <-D_GNU_SOURCE>
Tue Aug 09 10:25:43 2022: argv[7]: <main.cpp>
Tue Aug 09 10:25:43 2022: argv[8]: <-quiet>
Tue Aug 09 10:25:43 2022: argv[9]: <-dumpbase>
Tue Aug 09 10:25:43 2022: argv[10]: <main.cpp>
Tue Aug 09 10:25:43 2022: argv[11]: <-mtune=generic>
Tue Aug 09 10:25:43 2022: argv[12]: <-march=x86-64>
Tue Aug 09 10:25:43 2022: argv[13]: <-auxbase-strip>
Tue Aug 09 10:25:43 2022: argv[14]: <main.o>
Tue Aug 09 10:25:43 2022: argv[15]: <-g>
Tue Aug 09 10:25:43 2022: argv[16]: <-Wall>
Tue Aug 09 10:25:43 2022: argv[17]: <-o>
Tue Aug 09 10:25:43 2022: argv[18]: </tmp/cc63D6QX.s>
Tue Aug 09 10:25:43 2022: skipping process with pid: 15301
Tue Aug 09 10:25:44 2022: process created with pid: 15304
Tue Aug 09 10:25:44 2022: parent pid: 15293
Tue Aug 09 10:25:44 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:44 2022: executable: </usr/bin/bash>
Tue Aug 09 10:25:44 2022: argv[0]: </bin/sh>
Tue Aug 09 10:25:44 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/as>
Tue Aug 09 10:25:44 2022: argv[2]: <--64>
Tue Aug 09 10:25:44 2022: argv[3]: <-o>
Tue Aug 09 10:25:44 2022: argv[4]: <main.o>
Tue Aug 09 10:25:44 2022: argv[5]: </tmp/cc63D6QX.s>
Tue Aug 09 10:25:44 2022: skipping process with pid: 15304
Tue Aug 09 10:25:44 2022: process created with pid: 15305
Tue Aug 09 10:25:44 2022: parent pid: 15304
Tue Aug 09 10:25:44 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:44 2022: executable: </usr/bin/readlink>
Tue Aug 09 10:25:44 2022: argv[0]: </bin/readlink>
Tue Aug 09 10:25:44 2022: argv[1]: <-f>
Tue Aug 09 10:25:44 2022: argv[2]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.1.0/as>
Tue Aug 09 10:25:44 2022: skipping process with pid: 15305
Tue Aug 09 10:25:44 2022: process created with pid: 15306
Tue Aug 09 10:25:44 2022: parent pid: 15304
Tue Aug 09 10:25:44 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:44 2022: executable: </usr/bin/dirname>
Tue Aug 09 10:25:44 2022: argv[0]: </usr/bin/dirname>
Tue Aug 09 10:25:44 2022: argv[1]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-as>
Tue Aug 09 10:25:44 2022: skipping process with pid: 15306
Tue Aug 09 10:25:44 2022: process created with pid: 15304
Tue Aug 09 10:25:44 2022: parent pid: 15293
Tue Aug 09 10:25:44 2022: working directory: </home_local/devuser/honglinc>
Tue Aug 09 10:25:44 2022: executable: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/lib/ld-2.28.so>
Tue Aug 09 10:25:44 2022: argv[0]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-as.orig>
Tue Aug 09 10:25:44 2022: argv[1]: <--64>
Tue Aug 09 10:25:44 2022: argv[2]: <-o>
Tue Aug 09 10:25:44 2022: argv[3]: <main.o>
Tue Aug 09 10:25:44 2022: argv[4]: </tmp/cc63D6QX.s>
Tue Aug 09 10:25:44 2022: skipping process with pid: 15304
Tue Aug 09 10:25:44 2022: finalizing json file
Tue Aug 09 10:25:44 2022: returned with code: 0

Hi Chen,

I have checked the build log that you have provided, and the build commands that are found in it look unusual. The corresponding line is:

executable: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/lib/ld-2.28.so>
argv[0]: </pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++.orig>
argv[1]: <-B>
argv[2]: </pltf/sdk-new/tools/sysroots/core2-64-poky-linux/usr/lib64/x86_64-poky-linux/9.1.0/>
argv[3]: <--sysroot=/pltf/sdk-new/tools/sysroots/core2-64-poky-linux>
argv[4]: <-o>
argv[5]: <main.o>
argv[6]: <-c>
argv[7]: <--sysroot=/pltf/rel-new/linux-x86_64/sys-root>
argv[8]: <-g>
argv[9]: <-Wall>
argv[10]: <main.cpp>

Which would be equivalent to invoicing command line invocation:

/pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/lib/ld-2.28.so
   /pltf/sdk-new/tools/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++.orig 
  -B /pltf/sdk-new/tools/sysroots/core2-64-poky-linux/usr/lib64/x86_64-poky-linux/9.1.0/
  --sysroot=/pltf/sdk-new/tools/sysroots/core2-64-poky-linux
  -o main.o -c --sysroot=/pltf/rel-new/linux-x86_64/sys-root -g -Wall main.cpp

Note that the invoked program is ld-2.28.so and the compiler (x86_64-poky-linux-g++.orig) is passed as the first argument to it, which indicates that x86_64-poky-linux-g++.orig is shared library, and not a binary. I expect this to be something specific to Yocto.

I have created a following ticket, to record this information and track usages of the such toolchain. I am not aware for any other workaround for this expect, except using more “standard” toolchain.

1 Like

Thank you so much for the analysis.

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