rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.76k stars 312 forks source link

libexec.so from LD_PRELOAD cannot be preloaded (read wiki) #448

Closed RobertYCXu closed 2 years ago

RobertYCXu commented 2 years ago

Describe the bug Getting

ERROR: ld.so: object '/usr/local//lib64/bear/libexec.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/bin/sh: /usr/local//lib64/bear/wrapper: No such file or directory

when running bear -- make

To Reproduce Steps to reproduce the behavior:

bear -- make

Environment:

Additional context Output of bear --verbose -- make:

[10:33:30.079125, br, 3437228] bear: 3.0.18
[10:33:30.079201, br, 3437228] arguments: ["bear", "--verbose", "--", "make"]
[10:33:30.079239, br, 3437228] environment: ["BASH_FUNC_which%%=() {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}", "CLICOLOR=1", "CLIENT_LOG_SESSION_ID=devvm978.atn0.facebook.com:61e9b141.76e51", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/228619/bus", "HISTCONTROL=ignoredups", "HISTFILE=/home/robertycxu/.bash_history", "HISTSIZE=1000000", "HISTTIMEFORMAT=%F %T ", "HOME=/home/robertycxu", "HOSTNAME=devvm978.atn0.facebook.com", "KRB5CCNAME=FILE:/var/run/ccache/krb5cc_228619", "LANG=en_US.UTF-8", "LESS=-n -i", "LESSOPEN=||/usr/local/bin/lesspipe.sh %s", "LOGNAME=robertycxu", "LOG_SESSION_ID=devvm978.atn0.facebook.com:61e9b141.76e51", "LSCOLORS=Gxfxcxdxbxegedabagacad", "LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00: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=01;05;37;41: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;40:*.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:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=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:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=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:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=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:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL=/var/spool/mail/robertycxu", "MAVEN_OPTS=-Djava.net.preferIPv6Addresses=true", "PATH=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/soong/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/acloud/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/aidegen/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/atest/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/vendor/oculus/scripts:/home/robertycxu/bin:/home/robertycxu/clangd_13.0.0/bin:/home/robertycxu/nodenew/node-v16.13.2-linux-x64/bin:/home/robertycxu/bin:/home/robertycxu/clangd_13.0.0/bin:/home/robertycxu/nodenew/node-v16.13.2-linux-x64/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/var/lib/snapd/snap/bin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db:/usr/local/sbin:/usr/sbin:/sbin:/var/www/scripts/bin:/home/robertycxu/.yarn/bin:/home/robertycxu/.fzf/bin:/home/robertycxu/bin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/local/sbin:/usr/sbin:/sbin:/var/www/scripts/bin:/home/robertycxu/.yarn/bin", "PS1=\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[32m\]$(parse_git_branch)\[\033[00m\]$", "PWD=/home/robertycxu/oculus-10.0-exynos9820", "SHELL=/bin/zsh", "SHLVL=2", "SSH_AUTH_SOCK=/tmp/ssh-LVAQ7wT1TP/agent.2670051", "SSH_CLIENT=2620:10d:c0a8:11c1::1273 57298 22", "SSH_CONNECTION=2620:10d:c0a8:11e1::1239 50249 2401:db00:eef0:1120:3520:0:2002:7226 22", "SSH_TTY=/dev/pts/0", "SSH_USER_AUTH=/tmp/sshauth.ntLtdC4nLJ7zeFs", "SUDO_USER=robertycxu", "S_COLORS=auto", "TERM=screen-256color", "TERMINFO_DIRS=/usr/share/terminfo-backports:/usr/share/terminfo-backports", "TERM_PROGRAM=tmux", "TERM_PROGRAM_VERSION=3.2a", "THRIFT_TLS_CL_CERT_PATH=/var/facebook/credentials/robertycxu/x509/robertycxu.pem", "THRIFT_TLS_CL_KEY_PATH=/var/facebook/credentials/robertycxu/x509/robertycxu.pem", "TMUX=/tmp/tmux-228619/default,628721,10", "TMUX_PANE=%11", "USER=robertycxu", "XDG_RUNTIME_DIR=/run/user/228619", "XDG_SESSION_CLASS=user", "XDG_SESSION_ID=5048", "XDG_SESSION_TYPE=tty", "_=/usr/local/bin/bear", "_DOTSYNC_ALREADY_GOT=yes", "is_fzf=ps -o state= -o comm= -t '#{pane_tty}'   | grep -iqE '^[^TXZ ]+ +(\S+\/)?fzf$'", "is_vim=ps -o state= -o comm= -t '#{pane_tty}'   | grep -iqE '^[^TXZ ]+ +(\S+\/)?g?(view|n?vim?x?)(diff)?$'", "no_proxy=.fbcdn.net,.facebook.com,.thefacebook.com,.tfbnw.net,.fb.com,.fburl.com,.facebook.net,.sb.fbsbx.com,localhost", "which_declare=typeset -f", "OLDPWD=/home/robertycxu", "XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop", "LOCAL_ADMIN_SCRIPTS=/usr/facebook/ops/rc", "ADMIN_SCRIPTS=/usr/facebook/ops/rc", "TFB_SANDBOX_SCRIPTS=/var/www", "GIT_CEILING_DIRECTORIES=/home", "CURL_CA_BUNDLE=/etc/pki/tls/certs/fb_certs.pem", "PHPSH_CEILING_DIRECTORIES=/home", "ZSH=/home/robertycxu/.oh-my-zsh", "PAGER=less", "KEYTIMEOUT=1", "OCULUS_VENDORSETUP=1", "NINJA_STATUS=[Elapsed: %e: Jobs: %r %f/%t %p] ", "TARGET_BUILD_APPS=", "TARGET_BUILD_TYPE=release", "TARGET_GCC_VERSION=4.9", "ANDROID_TOOLCHAIN=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin", "ANDROID_TOOLCHAIN_2ND_ARCH=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin", "ANDROID_DEV_SCRIPTS=/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt", "ANDROID_BUILD_PATHS=/home/robertycxu/oculus-10.0-exynos9820/out/soong/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/acloud/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/aidegen/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/atest/linux-x86:", "ANDROID_EMULATOR_PREBUILTS=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64", "PYTHONPATH=/home/robertycxu/oculus-10.0-exynos9820/development/python-packages:", "ANDROID_PYTHONPATH=/home/robertycxu/oculus-10.0-exynos9820/development/python-packages:", "ANDROID_JAVA_HOME=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86", "JAVA_HOME=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86", "ANDROID_JAVA_TOOLCHAIN=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin", "ANDROID_PRE_BUILD_PATHS=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin:", "OUT=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage", "BUILD_ENV_SEQUENCE_NUMBER=13", "ANDROID_BUILD_TOP=/home/robertycxu/oculus-10.0-exynos9820", "GCC_COLORS=error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01", "ASAN_OPTIONS=detect_leaks=0", "TARGET_PRODUCT=nff1_stage", "TARGET_BUILD_VARIANT=eng", "ANDROID_PRODUCT_OUT=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage", "ANDROID_HOST_OUT=/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86", "ANDROID_HOST_OUT_TESTCASES=/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/testcases", "ANDROID_TARGET_OUT_TESTCASES=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage/testcases"]
[10:33:30.079287, br, 3437228] sysname: Linux
[10:33:30.079292, br, 3437228] release: 5.6.13-0_fbk19_hardened_6064_gabfd136bb69a
[10:33:30.079294, br, 3437228] version: #1 SMP Fri Oct 22 10:57:22 PDT 2021
[10:33:30.079299, br, 3437228] machine: x86_64
[10:33:30.079307, br, 3437228] arguments parsed: {program: bear, arguments: [{--: [make]}, {--citnames: [/usr/local/bin/citnames]}, {--interceptor: [/usr/local/bin/intercept]}, {--library: [/usr/local//lib64/bear/libexec.so]}, {--output: [compile_commands.json]}, {--verbose: []}, {--wrapper: [/usr/local//lib64/bear/wrapper]}, {--wrapper-dir: [/usr/local//lib64/bear/wrapper.d]}]}
[10:33:30.080135, br, 3437228] Process spawned. [pid: 3437229, command: [/usr/local/bin/intercept, --library, /usr/local//lib64/bear/libexec.so, --wrapper, /usr/local//lib64/bear/wrapper, --wrapper-dir, /usr/local//lib64/bear/wrapper.d, --output, compile_commands.events.json, --verbose, --, make]]
[10:33:30.080192, br, 3437228] Process wait requested. [pid: 3437229]
[10:33:30.083678, ic, 3437229] intercept: 3.0.18
[10:33:30.083739, ic, 3437229] arguments: ["/usr/local/bin/intercept", "--library", "/usr/local//lib64/bear/libexec.so", "--wrapper", "/usr/local//lib64/bear/wrapper", "--wrapper-dir", "/usr/local//lib64/bear/wrapper.d", "--output", "compile_commands.events.json", "--verbose", "--", "make"]
[10:33:30.083786, ic, 3437229] environment: ["ADMIN_SCRIPTS=/usr/facebook/ops/rc", "ANDROID_BUILD_PATHS=/home/robertycxu/oculus-10.0-exynos9820/out/soong/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/acloud/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/aidegen/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/atest/linux-x86:", "ANDROID_BUILD_TOP=/home/robertycxu/oculus-10.0-exynos9820", "ANDROID_DEV_SCRIPTS=/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt", "ANDROID_EMULATOR_PREBUILTS=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64", "ANDROID_HOST_OUT=/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86", "ANDROID_HOST_OUT_TESTCASES=/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/testcases", "ANDROID_JAVA_HOME=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86", "ANDROID_JAVA_TOOLCHAIN=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin", "ANDROID_PRE_BUILD_PATHS=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin:", "ANDROID_PRODUCT_OUT=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage", "ANDROID_PYTHONPATH=/home/robertycxu/oculus-10.0-exynos9820/development/python-packages:", "ANDROID_TARGET_OUT_TESTCASES=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage/testcases", "ANDROID_TOOLCHAIN=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin", "ANDROID_TOOLCHAIN_2ND_ARCH=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin", "ASAN_OPTIONS=detect_leaks=0", "BASH_FUNC_which%%=() {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}", "BUILD_ENV_SEQUENCE_NUMBER=13", "CLICOLOR=1", "CLIENT_LOG_SESSION_ID=devvm978.atn0.facebook.com:61e9b141.76e51", "CURL_CA_BUNDLE=/etc/pki/tls/certs/fb_certs.pem", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/228619/bus", "GCC_COLORS=error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01", "GIT_CEILING_DIRECTORIES=/home", "HISTCONTROL=ignoredups", "HISTFILE=/home/robertycxu/.bash_history", "HISTSIZE=1000000", "HISTTIMEFORMAT=%F %T ", "HOME=/home/robertycxu", "HOSTNAME=devvm978.atn0.facebook.com", "JAVA_HOME=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86", "KEYTIMEOUT=1", "KRB5CCNAME=FILE:/var/run/ccache/krb5cc_228619", "LANG=en_US.UTF-8", "LESS=-n -i", "LESSOPEN=||/usr/local/bin/lesspipe.sh %s", "LOCAL_ADMIN_SCRIPTS=/usr/facebook/ops/rc", "LOGNAME=robertycxu", "LOG_SESSION_ID=devvm978.atn0.facebook.com:61e9b141.76e51", "LSCOLORS=Gxfxcxdxbxegedabagacad", "LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00: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=01;05;37;41: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;40:*.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:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=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:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=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:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=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:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL=/var/spool/mail/robertycxu", "MAVEN_OPTS=-Djava.net.preferIPv6Addresses=true", "NINJA_STATUS=[Elapsed: %e: Jobs: %r %f/%t %p] ", "OCULUS_VENDORSETUP=1", "OLDPWD=/home/robertycxu", "OUT=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage", "PAGER=less", "PATH=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/soong/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/acloud/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/aidegen/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/atest/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/vendor/oculus/scripts:/home/robertycxu/bin:/home/robertycxu/clangd_13.0.0/bin:/home/robertycxu/nodenew/node-v16.13.2-linux-x64/bin:/home/robertycxu/bin:/home/robertycxu/clangd_13.0.0/bin:/home/robertycxu/nodenew/node-v16.13.2-linux-x64/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/var/lib/snapd/snap/bin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db:/usr/local/sbin:/usr/sbin:/sbin:/var/www/scripts/bin:/home/robertycxu/.yarn/bin:/home/robertycxu/.fzf/bin:/home/robertycxu/bin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/local/sbin:/usr/sbin:/sbin:/var/www/scripts/bin:/home/robertycxu/.yarn/bin", "PHPSH_CEILING_DIRECTORIES=/home", "PS1=\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[32m\]$(parse_git_branch)\[\033[00m\]$", "PWD=/home/robertycxu/oculus-10.0-exynos9820", "PYTHONPATH=/home/robertycxu/oculus-10.0-exynos9820/development/python-packages:", "SHELL=/bin/zsh", "SHLVL=2", "SSH_AUTH_SOCK=/tmp/ssh-LVAQ7wT1TP/agent.2670051", "SSH_CLIENT=2620:10d:c0a8:11c1::1273 57298 22", "SSH_CONNECTION=2620:10d:c0a8:11e1::1239 50249 2401:db00:eef0:1120:3520:0:2002:7226 22", "SSH_TTY=/dev/pts/0", "SSH_USER_AUTH=/tmp/sshauth.ntLtdC4nLJ7zeFs", "SUDO_USER=robertycxu", "S_COLORS=auto", "TARGET_BUILD_APPS=", "TARGET_BUILD_TYPE=release", "TARGET_BUILD_VARIANT=eng", "TARGET_GCC_VERSION=4.9", "TARGET_PRODUCT=nff1_stage", "TERM=screen-256color", "TERMINFO_DIRS=/usr/share/terminfo-backports:/usr/share/terminfo-backports", "TERM_PROGRAM=tmux", "TERM_PROGRAM_VERSION=3.2a", "TFB_SANDBOX_SCRIPTS=/var/www", "THRIFT_TLS_CL_CERT_PATH=/var/facebook/credentials/robertycxu/x509/robertycxu.pem", "THRIFT_TLS_CL_KEY_PATH=/var/facebook/credentials/robertycxu/x509/robertycxu.pem", "TMUX=/tmp/tmux-228619/default,628721,10", "TMUX_PANE=%11", "USER=robertycxu", "XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop", "XDG_RUNTIME_DIR=/run/user/228619", "XDG_SESSION_CLASS=user", "XDG_SESSION_ID=5048", "XDG_SESSION_TYPE=tty", "ZSH=/home/robertycxu/.oh-my-zsh", "_=/usr/local/bin/bear", "_DOTSYNC_ALREADY_GOT=yes", "is_fzf=ps -o state= -o comm= -t '#{pane_tty}'   | grep -iqE '^[^TXZ ]+ +(\S+\/)?fzf$'", "is_vim=ps -o state= -o comm= -t '#{pane_tty}'   | grep -iqE '^[^TXZ ]+ +(\S+\/)?g?(view|n?vim?x?)(diff)?$'", "no_proxy=.fbcdn.net,.facebook.com,.thefacebook.com,.tfbnw.net,.fb.com,.fburl.com,.facebook.net,.sb.fbsbx.com,localhost", "which_declare=typeset -f"]
[10:33:30.083839, ic, 3437229] sysname: Linux
[10:33:30.083844, ic, 3437229] release: 5.6.13-0_fbk19_hardened_6064_gabfd136bb69a
[10:33:30.083846, ic, 3437229] version: #1 SMP Fri Oct 22 10:57:22 PDT 2021
[10:33:30.083848, ic, 3437229] machine: x86_64
[10:33:30.083853, ic, 3437229] arguments parsed: {program: /usr/local/bin/intercept, arguments: [{--: [make]}, {--library: [/usr/local//lib64/bear/libexec.so]}, {--output: [compile_commands.events.json]}, {--verbose: []}, {--wrapper: [/usr/local//lib64/bear/wrapper]}, {--wrapper-dir: [/usr/local//lib64/bear/wrapper.d]}]}
[10:33:30.084053, ic, 3437229] Created library preload session. [library=/usr/local//lib64/bear/libexec.so, executor=/usr/local//lib64/bear/wrapper]
[10:33:30.086009, ic, 3437229] Running gRPC server. dns:///localhost:44935
[10:33:30.086718, ic, 3437229] Process spawned. [pid: 3437235, command: [/usr/local//lib64/bear/wrapper, --destination, dns:///localhost:44935, --verbose, --execute, /bin/make, --, make]]
[10:33:30.086774, ic, 3437229] Process wait requested. [pid: 3437235]
ERROR: ld.so: object '/usr/local//lib64/bear/libexec.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/bin/sh: /usr/local//lib64/bear/wrapper: No such file or directory
[10:33:30.088422, ic, 3437229] Process wait request: done. [pid: 3437235]
[10:33:30.088457, ic, 3437229] Running command. [Exited with 127]
[10:33:30.088472, ic, 3437229] Stopping gRPC server.
[10:33:30.089462, ic, 3437229] succeeded with: 127
[10:33:30.090185, br, 3437228] Process wait request: done. [pid: 3437229]
[10:33:30.090220, br, 3437228] Running intercept finished. [Exited with 127]
[10:33:30.090600, br, 3437228] Process spawned. [pid: 3437236, command: [/usr/local/bin/citnames, --input, compile_commands.events.json, --output, compile_commands.json, --run-checks, --verbose]]
[10:33:30.090642, br, 3437228] Process wait requested. [pid: 3437236]
[10:33:30.095316, cs, 3437236] citnames: 3.0.18
[10:33:30.095403, cs, 3437236] arguments: ["/usr/local/bin/citnames", "--input", "compile_commands.events.json", "--output", "compile_commands.json", "--run-checks", "--verbose"]
[10:33:30.095444, cs, 3437236] environment: ["ADMIN_SCRIPTS=/usr/facebook/ops/rc", "ANDROID_BUILD_PATHS=/home/robertycxu/oculus-10.0-exynos9820/out/soong/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/acloud/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/aidegen/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/atest/linux-x86:", "ANDROID_BUILD_TOP=/home/robertycxu/oculus-10.0-exynos9820", "ANDROID_DEV_SCRIPTS=/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt", "ANDROID_EMULATOR_PREBUILTS=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64", "ANDROID_HOST_OUT=/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86", "ANDROID_HOST_OUT_TESTCASES=/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/testcases", "ANDROID_JAVA_HOME=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86", "ANDROID_JAVA_TOOLCHAIN=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin", "ANDROID_PRE_BUILD_PATHS=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin:", "ANDROID_PRODUCT_OUT=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage", "ANDROID_PYTHONPATH=/home/robertycxu/oculus-10.0-exynos9820/development/python-packages:", "ANDROID_TARGET_OUT_TESTCASES=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage/testcases", "ANDROID_TOOLCHAIN=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin", "ANDROID_TOOLCHAIN_2ND_ARCH=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin", "ASAN_OPTIONS=detect_leaks=0", "BASH_FUNC_which%%=() {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}", "BUILD_ENV_SEQUENCE_NUMBER=13", "CLICOLOR=1", "CLIENT_LOG_SESSION_ID=devvm978.atn0.facebook.com:61e9b141.76e51", "CURL_CA_BUNDLE=/etc/pki/tls/certs/fb_certs.pem", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/228619/bus", "GCC_COLORS=error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01", "GIT_CEILING_DIRECTORIES=/home", "HISTCONTROL=ignoredups", "HISTFILE=/home/robertycxu/.bash_history", "HISTSIZE=1000000", "HISTTIMEFORMAT=%F %T ", "HOME=/home/robertycxu", "HOSTNAME=devvm978.atn0.facebook.com", "JAVA_HOME=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86", "KEYTIMEOUT=1", "KRB5CCNAME=FILE:/var/run/ccache/krb5cc_228619", "LANG=en_US.UTF-8", "LESS=-n -i", "LESSOPEN=||/usr/local/bin/lesspipe.sh %s", "LOCAL_ADMIN_SCRIPTS=/usr/facebook/ops/rc", "LOGNAME=robertycxu", "LOG_SESSION_ID=devvm978.atn0.facebook.com:61e9b141.76e51", "LSCOLORS=Gxfxcxdxbxegedabagacad", "LS_COLORS=rs=0:di=38;5;33:ln=38;5;51:mh=00: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=01;05;37;41: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;40:*.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:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=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:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=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:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=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:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL=/var/spool/mail/robertycxu", "MAVEN_OPTS=-Djava.net.preferIPv6Addresses=true", "NINJA_STATUS=[Elapsed: %e: Jobs: %r %f/%t %p] ", "OCULUS_VENDORSETUP=1", "OLDPWD=/home/robertycxu", "OUT=/home/robertycxu/oculus-10.0-exynos9820/out/target/product/nff1_stage", "PAGER=less", "PATH=/home/robertycxu/oculus-10.0-exynos9820/prebuilts/jdk/jdk9/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/soong/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/out/host/linux-x86/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/home/robertycxu/oculus-10.0-exynos9820/development/scripts:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/devtools/tools:/home/robertycxu/oculus-10.0-exynos9820/external/selinux/prebuilts/bin:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/dtc:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/misc/linux-x86/libufdt:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/android-emulator/linux-x86_64:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/acloud/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/aidegen/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/prebuilts/asuite/atest/linux-x86:/home/robertycxu/oculus-10.0-exynos9820/vendor/oculus/scripts:/home/robertycxu/bin:/home/robertycxu/clangd_13.0.0/bin:/home/robertycxu/nodenew/node-v16.13.2-linux-x64/bin:/home/robertycxu/bin:/home/robertycxu/clangd_13.0.0/bin:/home/robertycxu/nodenew/node-v16.13.2-linux-x64/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/var/lib/snapd/snap/bin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db:/usr/local/sbin:/usr/sbin:/sbin:/var/www/scripts/bin:/home/robertycxu/.yarn/bin:/home/robertycxu/.fzf/bin:/home/robertycxu/bin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/local/sbin:/usr/sbin:/sbin:/var/www/scripts/bin:/home/robertycxu/.yarn/bin", "PHPSH_CEILING_DIRECTORIES=/home", "PS1=\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[32m\]$(parse_git_branch)\[\033[00m\]$", "PWD=/home/robertycxu/oculus-10.0-exynos9820", "PYTHONPATH=/home/robertycxu/oculus-10.0-exynos9820/development/python-packages:", "SHELL=/bin/zsh", "SHLVL=2", "SSH_AUTH_SOCK=/tmp/ssh-LVAQ7wT1TP/agent.2670051", "SSH_CLIENT=2620:10d:c0a8:11c1::1273 57298 22", "SSH_CONNECTION=2620:10d:c0a8:11e1::1239 50249 2401:db00:eef0:1120:3520:0:2002:7226 22", "SSH_TTY=/dev/pts/0", "SSH_USER_AUTH=/tmp/sshauth.ntLtdC4nLJ7zeFs", "SUDO_USER=robertycxu", "S_COLORS=auto", "TARGET_BUILD_APPS=", "TARGET_BUILD_TYPE=release", "TARGET_BUILD_VARIANT=eng", "TARGET_GCC_VERSION=4.9", "TARGET_PRODUCT=nff1_stage", "TERM=screen-256color", "TERMINFO_DIRS=/usr/share/terminfo-backports:/usr/share/terminfo-backports", "TERM_PROGRAM=tmux", "TERM_PROGRAM_VERSION=3.2a", "TFB_SANDBOX_SCRIPTS=/var/www", "THRIFT_TLS_CL_CERT_PATH=/var/facebook/credentials/robertycxu/x509/robertycxu.pem", "THRIFT_TLS_CL_KEY_PATH=/var/facebook/credentials/robertycxu/x509/robertycxu.pem", "TMUX=/tmp/tmux-228619/default,628721,10", "TMUX_PANE=%11", "USER=robertycxu", "XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop", "XDG_RUNTIME_DIR=/run/user/228619", "XDG_SESSION_CLASS=user", "XDG_SESSION_ID=5048", "XDG_SESSION_TYPE=tty", "ZSH=/home/robertycxu/.oh-my-zsh", "_=/usr/local/bin/bear", "_DOTSYNC_ALREADY_GOT=yes", "is_fzf=ps -o state= -o comm= -t '#{pane_tty}'   | grep -iqE '^[^TXZ ]+ +(\S+\/)?fzf$'", "is_vim=ps -o state= -o comm= -t '#{pane_tty}'   | grep -iqE '^[^TXZ ]+ +(\S+\/)?g?(view|n?vim?x?)(diff)?$'", "no_proxy=.fbcdn.net,.facebook.com,.thefacebook.com,.tfbnw.net,.fb.com,.fburl.com,.facebook.net,.sb.fbsbx.com,localhost", "which_declare=typeset -f"]
[10:33:30.095488, cs, 3437236] sysname: Linux
[10:33:30.095493, cs, 3437236] release: 5.6.13-0_fbk19_hardened_6064_gabfd136bb69a
[10:33:30.095495, cs, 3437236] version: #1 SMP Fri Oct 22 10:57:22 PDT 2021
[10:33:30.095498, cs, 3437236] machine: x86_64
[10:33:30.095503, cs, 3437236] arguments parsed: {program: /usr/local/bin/citnames, arguments: [{--input: [compile_commands.events.json]}, {--output: [compile_commands.json]}, {--run-checks: []}, {--verbose: []}]}
[10:33:30.095606, cs, 3437236] Configuration: {"compilation":null,"output":{"content":{"include_only_existing_source":true},"format":{"command_as_array":true,"drop_output_field":false}}}
[10:33:30.095703, cs, 3437236] compilation entries created. [size: 0]
[10:33:30.095709, cs, 3437236] compilation entries to output. [size: 0]
[10:33:30.095903, cs, 3437236] compilation entries written. [size: 0]
[10:33:30.095916, cs, 3437236] succeeded with: 0
[10:33:30.096450, br, 3437228] Process wait request: done. [pid: 3437236]
[10:33:30.096488, br, 3437228] Running citnames finished. [Exited with 0]
[10:33:30.096562, br, 3437228] succeeded with: 127

Before you send... Read the wiki, I can't find libexec.so and not sure how to get it...

rizsotto commented 2 years ago

Hey @RobertYCXu , can you confirm that Bear is installed to /usr/local? Did it install the wrapper and libexec.so under /usr/local/lib64 or /usr/local/lib? (Also, why is it /usr/local//lib64? Note the double slash.)

RobertYCXu commented 2 years ago

Hey @RobertYCXu , can you confirm that Bear is installed to /usr/local? Did it install the wrapper and libexec.so under /usr/local/lib64 or /usr/local/lib? (Also, why is it /usr/local//lib64? Note the double slash.)

Thanks for your response @rizsotto !

Yep Bear is in /usr/local/bin/bear I don't see wrapper and libexec.so under either /usr/local/lib or /usr/local/lib64 I think the double slash is because $LIB env variable does not have anything set for it.

I should also note that I was having troubles building; mucked with the CMakeLists files as directed here: https://github.com/rizsotto/Bear/issues/305 in order to build properly. Not sure if this is relevant.

rizsotto commented 2 years ago

A couple of notes it might went wrong...

rizsotto commented 2 years ago

I'm closing it, because it looks like an installation problem to me.

I am happy to help. Just the ticket got closed. :smile:

RobertYCXu commented 2 years ago

Hi @rizsotto ,

I've updated my gcc version to 10.2.1 but I'm still getting the same error...

[ 60%] Built target intercept_a
[ 62%] Linking CXX executable intercept
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionLibrary.cc.o: in function `ic::LibraryPreloadSession::supervise(domain::Execution const&) const':
SessionLibrary.cc:(.text+0xae9): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionLibrary.cc.o: in function `domain::Execution::Execution(domain::Execution&&)':
SessionLibrary.cc:(.text._ZN6domain9ExecutionC2EOS0_[_ZN6domain9ExecutionC5EOS0_]+0x78): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionLibrary.cc:(.text._ZN6domain9ExecutionC2EOS0_[_ZN6domain9ExecutionC5EOS0_]+0x148): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionLibrary.cc:(.text._ZN6domain9ExecutionC2EOS0_[_ZN6domain9ExecutionC5EOS0_]+0x1e4): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionLibrary.cc:(.text._ZN6domain9ExecutionC2EOS0_[_ZN6domain9ExecutionC5EOS0_]+0x1f5): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/Application.cc.o:Application.cc:(.text+0x48f): more undefined references to `std::filesystem::__cxx11::path::_M_split_cmpts()' follow
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/Session.cc.o: in function `ic::Session::keep_front_in_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
Session.cc:(.text+0x70b): undefined reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/Session.cc.o: in function `ic::Session::remove_from_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
Session.cc:(.text+0xdb4): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Session.cc:(.text+0xdc6): undefined reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o: in function `std::_Function_handler<void (char const* const&), ic::WrapperSession::from(flags::Arguments const&, char const**)::{lambda(auto:1)#1}::operator()<std::__cxx11::list<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11> > >(std::__cxx11::list<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11> >) const::{lambda(auto:1)#1}>::_M_invoke(std::_Any_data const&, char const* const&)':
SessionWrapper.cc:(.text+0xc04): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0xde5): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o: in function `std::_Function_handler<void (char const* const&), ic::WrapperSession::from(flags::Arguments const&, char const**)::{lambda(auto:1 const&)#2}::operator()<std::tuple<std::basic_string_view<char, std::char_traits<char> >, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator<char> >, std::filesystem::__cxx11::path, std::less<std::allocator<char> >, std::allocator<std::pair<std::allocator<char> const, std::filesystem::__cxx11> > > > >(std::tuple<std::basic_string_view<char, std::char_traits<char> >, std::map<std::__cxx11::basic_string<char, std::char_traits, std::allocator<char> >, std::filesystem::__cxx11::path, std::less<std::allocator<char> >, std::allocator<std::pair<std::allocator<char> const, std::filesystem::__cxx11> > > > const&) const::{lambda(auto:1)#1}>::_M_invoke(std::_Any_data const&, char const* const&)':
SessionWrapper.cc:(.text+0x1077): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x11ad): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x12d2): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o:SessionWrapper.cc:(.text+0x140e): more undefined references to `std::filesystem::__cxx11::path::_M_split_cmpts()' follow
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o: in function `(anonymous namespace)::list_dir(std::filesystem::__cxx11::path const&)':
SessionWrapper.cc:(.text+0x4c4b): undefined reference to `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&, std::filesystem::directory_options, std::error_code*)'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x4cd7): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator*() const'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x4d0c): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x5004): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x5040): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o: in function `ic::WrapperSession::resolve(std::filesystem::__cxx11::path const&) const':
SessionWrapper.cc:(.text+0x5396): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x5436): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x550d): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: SessionWrapper.cc:(.text+0x5529): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o: in function `ic::WrapperSession::resolve(domain::Execution const&) const':
SessionWrapper.cc:(.text+0x5962): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/intercept_a.dir/source/collect/SessionWrapper.cc.o:SessionWrapper.cc:(.text+0x5a91): more undefined references to `std::filesystem::__cxx11::path::_M_split_cmpts()' follow
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/domain_a.dir/source/Domain.cc.o: in function `domain::operator==(domain::Execution const&, domain::Execution const&)':
Domain.cc:(.text+0x15): undefined reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Domain.cc:(.text+0x9b): undefined reference to `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/domain_a.dir/source/Convert.cc.o: in function `domain::from(rpc::Execution const&)':
Convert.cc:(.text+0x142): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Convert.cc:(.text+0x24a): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/events_db_a.dir/source/collect/db/EventsDatabaseReader.cc.o: in function `ic::collect::db::EventsDatabaseReader::from(std::filesystem::__cxx11::path const&)':
EventsDatabaseReader.cc:(.text+0x4b8): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: EventsDatabaseReader.cc:(.text+0x5be): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/events_db_a.dir/source/collect/db/EventsDatabaseReader.cc.o: in function `ic::collect::db::EventsDatabaseReader::EventsDatabaseReader(std::filesystem::__cxx11::path, std::unique_ptr<std::istream, std::default_delete<std::istream> >)':
EventsDatabaseReader.cc:(.text+0x6ec): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: CMakeFiles/events_db_a.dir/source/collect/db/EventsDatabaseReader.cc.o:EventsDatabaseReader.cc:(.text+0x70c): more undefined references to `std::filesystem::__cxx11::path::_M_split_cmpts()' follow
/opt/rh/gcc-toolset-10/root/usr/bin/ld: ../libsys/CMakeFiles/sys_a.dir/source/Path.cc.o: in function `sys::path::get_cwd[abi:cxx11]()':
Path.cc:(.text+0x4ac): undefined reference to `std::filesystem::current_path[abi:cxx11](std::error_code&)'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Path.cc:(.text+0x642): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Path.cc:(.text+0x6f7): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Path.cc:(.text+0x797): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Path.cc:(.text+0x864): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: Path.cc:(.text+0x881): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: ../libsys/CMakeFiles/sys_a.dir/source/Path.cc.o:Path.cc:(.text+0x896): more undefined references to `std::filesystem::__cxx11::path::_M_split_cmpts()' follow
collect2: error: ld returned 1 exit status
make[5]: *** [intercept/CMakeFiles/intercept.dir/build.make:204: intercept/intercept] Error 1
make[4]: *** [CMakeFiles/Makefile2:507: intercept/CMakeFiles/intercept.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/BearSource.dir/build.make:87: subprojects/Stamp/BearSource/BearSource-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:174: CMakeFiles/BearSource.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Here's the cmake command I'm using: cmake -DENABLE_UNIT_TESTS=OFF -DENABLE_FUNC_TESTS=OFF -DCMAKE_INSTALL_LIBDIR=/lib64 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ~/Bear

From the output, it's clear it's using the right gcc that I installed. I thought this should work with gcc 10.2 like you mentioned before?

rizsotto commented 2 years ago

I'm pretty confident this is not an issue with Bear. (I compile it on Arch, Fedora, Ubuntu, Alpine, macOS and FreeBSD. Plus there are many distro which has package from it.) Once you figure it out. Could you ask a packaging request for EPEL to include it as package? CentOS questions coming up every 3-4 months. A package would help for many people.

My tip here, you've might installed the right gcc, but it is not picking up the filesystem library. (If you still have the old compiler, the new compiler might just using the old compiler libraries and header files.)