rizsotto / Bear

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

Generates empty DB with default system `make` on Freebsd 12. Works with `gmake`. #212

Closed umanwizard closed 4 years ago

umanwizard commented 6 years ago

If you attach log output, please consider to run Bear with -vvvv to have debug logs available.

Expected Behavior

bear works with both make and gmake

Actual Behavior

bear only works properly with gmake; the db generated with base system make is empty.

$ cat Makefile
hello: test.o
        cc -o hello test.o

test.o: test.c
        cc -c -o test.o test.c

clean:
        rm -f hello test.o
$ bear -vvvv make hello
bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', 'make', 'hello']
bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['make', 'hello'], cc='cc', cdb='compile_commands.json', cxx='c++', libear='/usr/local/lib/libear.so', verbose=4)
bear: DEBUG: run_build: run build ['make', 'hello'], in environment: {'LD_PRELOAD': '/usr/local/lib/libear.so', 'TERM': 'screen', 'SHELL': '/bin/sh', 'MAIL': '/var/mail/brennan', 'BLOCKSIZE': 'K', 'OLDPWD': '/usr/src/usr.bin/bmake', 'TMUX': '/tmp/tmux-1001/default,815,0', 'PATH': '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/brennan/bin', 'PWD': '/home/brennan', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-VmAIkt', 'LOGNAME': 'brennan', 'EDITOR': 'vi', 'ENV': '/home/brennan/.shrc', 'HOME': '/home/brennan', 'PAGER': 'more', 'TMUX_PANE': '%1', 'USER': 'brennan'}
cc -c -o test.o test.c
cc -o hello test.o
bear: DEBUG: run_build: build finished with exit code: 0
$ make clean
rm -f hello test.o
$ bear -vvvv gmake hello
bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', 'gmake', 'hello']
bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['gmake', 'hello'], cc='cc', cdb='compile_commands.json', cxx='c++', libear='/usr/local/lib/libear.so', verbose=4)
bear: DEBUG: run_build: run build ['gmake', 'hello'], in environment: {'LD_PRELOAD': '/usr/local/lib/libear.so', 'TERM': 'screen', 'SHELL': '/bin/sh', 'MAIL': '/var/mail/brennan', 'BLOCKSIZE': 'K', 'OLDPWD': '/usr/src/usr.bin/bmake', 'TMUX': '/tmp/tmux-1001/default,815,0', 'PATH': '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/brennan/bin', 'PWD': '/home/brennan', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-u4Ud5r', 'LOGNAME': 'brennan', 'EDITOR': 'vi', 'ENV': '/home/brennan/.shrc', 'HOME': '/home/brennan', 'PAGER': 'more', 'TMUX_PANE': '%1', 'USER': 'brennan'}
cc -c -o test.o test.c
cc -o hello test.o
bear: DEBUG: run_build: build finished with exit code: 0
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-u4Ud5r/execution.H44HBS
bear: DEBUG: _split_command: input was: [u'cc', u'-c', u'-o', u'test.o', u'test.c']
bear: DEBUG: _split_command: output is: CompilationCommand(compiler='c', phase=[u'-c'], flags=[], files=[u'test.c'], output=[u'test.o'])
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-u4Ud5r/execution.vmxUKr
bear: DEBUG: _split_command: input was: [u'cc', u'-o', u'hello', u'test.o']
bear: DEBUG: _split_command: output is: CompilationCommand(compiler='c', phase=[], flags=[u'test.o'], files=[], output=[u'hello'])
$ cat compile_commands.json 
[
    {
        "arguments": [
            "cc", 
            "-c", 
            "-o", 
            "test.o", 
            "test.c"
        ], 
        "directory": "/usr/home/brennan", 
        "file": "test.c"
    }
]$ 

Environment

rizsotto commented 6 years ago

Thanks for the report. It will take some time to dig into this. (I'm not active FreeBSD user.) By the way, do you know any public CI server which runs BSD?

umanwizard commented 6 years ago

I think this is because the system make is statically linked, so libear.so is useless. (i.e., the make binary will jump directly to its own statically linked execve etc. functions, rather than using the ones provided in libear.so ). Might be unfixable.

rizsotto commented 6 years ago

Yes, that is a problem to Bear. :) Can you point me the source code of make?

umanwizard commented 6 years ago

It is at /usr/src/contrib/bmake in the FreeBSD source tree.

But I don't think the source will tell you anything interesting. The relevant thing is the fact that it was linked with the -static flag. I'm not sure if this is true on all FreeBSD systems or just the one I have installed...

Anyway, one way to resolve this would be to simply print a warning if the make binary is statically linked, because in that case it is probably impossible to replace the execve it's using.

rizsotto commented 6 years ago

Thanks for the pointer. I agree, that static linking is the thing this case. But wanted to make sure that if the exec call is covered by Bear. (Just learned recently about execveat which I have not heard before and not covered.)

What shall we do with this ticket?

DavidPu commented 6 years ago

one idea is using strace instread of libear.so to capture exec call. it will fix some of 'Known issues' listed in README.

I have proof-of-concept change for it: https://github.com/DavidPu/Bear/commit/b977aca230b637b133e3c25b6af0b2d1969710f2

I'm not sure if any strace equivalent available for macOS?

rizsotto commented 6 years ago

Thanks for your message @DavidPu . I was looking at the ptrace calls to implement Bear, but then decided not to use them... It's not portable. It might not work within containers... For the statically linked binaries, I will use compiler wrappers. (Work in progress.)

j-rahman commented 4 years ago

The same happens on macOS 10.15.2 too. The JSON is empty if generated with the system make. The same happens with compiledb too. But after seeing this thread, I installed gmake and tried bear gmake and it worked like a charm. I don't think the empty JSON earlier had anything to do with system integrity protection because I haven't touched that switch at all.

wataash commented 4 years ago

Same with OpenBSD's /usr/bin/make, but seems to be another issue since it's dynamically linked:

# ldd /usr/bin/make
/usr/bin/make:
    Start            End              Type  Open Ref GrpRef Name
    00000a27d4100000 00000a27d412a000 exe   1    0   0      /usr/bin/make
    00000a2a5a8a9000 00000a2a5a8be000 rlib  0    1   0      /usr/lib/libutil.so.13.1
    00000a2a407ea000 00000a2a408de000 rlib  0    1   0      /usr/lib/libc.so.95.1
    00000a2a3cecb000 00000a2a3cecb000 ld.so 0    1   0      /usr/libexec/ld.so
rizsotto commented 4 years ago

Hey @wataash , could you send a verbose output of the run? (bear -vvvv make would do it.) This might be another issue. (Maybe statically linked compiler or something else.)

wataash commented 4 years ago

Thank you for replying @rizsotto .

``` root@wshob /u/s/s/a/a/c/GENERIC# bear -vvvv make | head bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', 'make'] bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['make'], cdb='compile_commands.json', exclude=[], field_output=False, include=[], libear='/usr/local/lib/bear/libear.so', use_cc=['cc'], use_cxx=['c++'], use_fortran=['f95'], use_only=False, verbose=4) bear: DEBUG: run_build: run build ['make'], in environment: {'HOME': '/root', 'LC_CTYPE': 'en_US.UTF-8', 'LOGNAME': 'root', 'MAIL': '/var/mail/root', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin', 'PWD': '/usr/src/sys/arch/amd64/compile/GENERIC', 'SHELL': '/bin/ksh', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/tmp/ssh-LhfgOaXF3v/agent.33309', 'SSH_CLIENT': '10.0.2.2 35478 22', 'SSH_CONNECTION': '10.0.2.2 35478 10.0.2.15 22', 'SSH_TTY': '/dev/ttyp1', 'TERM': 'xterm-256color', 'USER': 'root', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-db8z3zp7', 'LD_PRELOAD': '/usr/local/lib/bear/libear.so'} cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ffs/ffs_vnops.c cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ffs/ffs_softdep.c cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/mfs/mfs_vfsops.c cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/mfs/mfs_vnops.c cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ufs/ufs_bmap.c cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ufs/ufs_dirhash.c cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ufs/ufs_ihash.c --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 340, in capture exit_code = run_build(args.build, env=environment) File "/usr/local/bin/bear", line 214, in run_build logging.debug('build finished with exit code: %d', exit_code) Message: 'build finished with exit code: %d' Arguments: (-13,) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.ThipPF',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ffs/ffs_vnops.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.i3PbKq',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'ffs_vnops.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/ffs_vnops.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'ffs_vnops.d', '-MT', 'ffs_vnops.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'ffs_vnops.o', '-x', 'c', '/usr/src/sys/ufs/ffs/ffs_vnops.c', '-faddrsig'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.Jm8NJq',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ffs/ffs_softdep.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.VAMAJt',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'ffs_softdep.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/ffs_softdep.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'ffs_softdep.d', '-MT', 'ffs_softdep.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'ffs_softdep.o', '-x', 'c', '/usr/src/sys/ufs/ffs/ffs_softdep.c', '-faddrsig'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.352u0u',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/mfs/mfs_vfsops.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.WeE452',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'mfs_vfsops.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/mfs_vfsops.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'mfs_vfsops.d', '-MT', 'mfs_vfsops.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'mfs_vfsops.o', '-x', 'c', '/usr/src/sys/ufs/mfs/mfs_vfsops.c', '-faddrsig'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.TFCcqK',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/mfs/mfs_vnops.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.cirjm8',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'mfs_vnops.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/mfs_vnops.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'mfs_vnops.d', '-MT', 'mfs_vnops.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'mfs_vnops.o', '-x', 'c', '/usr/src/sys/ufs/mfs/mfs_vnops.c', '-faddrsig'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.VCrmNi',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ufs/ufs_bmap.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.2Iz8ya',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'ufs_bmap.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/ufs_bmap.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'ufs_bmap.d', '-MT', 'ufs_bmap.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'ufs_bmap.o', '-x', 'c', '/usr/src/sys/ufs/ufs/ufs_bmap.c', '-faddrsig'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.OBBr1j',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ufs/ufs_dirhash.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.0s49Bc',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'ufs_dirhash.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/ufs_dirhash.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'ufs_dirhash.d', '-MT', 'ufs_dirhash.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'ufs_dirhash.o', '-x', 'c', '/usr/src/sys/ufs/ufs/ufs_dirhash.c', '-faddrsig'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.JEF2WC',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/bin/sh', '-ec', 'cc -g -Werror -Wall -Wimplicit-function-declaration -Wno-uninitialized -Wno-pointer-sign -Wno-address-of-packed-member -Wno-constant-conversion -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow -mno-mmx -msoft-float -fno-omit-frame-pointer -ffreestanding -fno-pie -msave-args -O0 -pipe -nostdinc -I/usr/src/sys -I/usr/src/sys/arch/amd64/compile/GENERIC/obj -I/usr/src/sys/arch -I/usr/src/sys/dev/pci/drm/include -I/usr/src/sys/dev/pci/drm/include/uapi -I/usr/src/sys/dev/pci/drm/amd/include/asic_reg -I/usr/src/sys/dev/pci/drm/amd/include -I/usr/src/sys/dev/pci/drm/amd/amdgpu -I/usr/src/sys/dev/pci/drm/amd/display -I/usr/src/sys/dev/pci/drm/amd/display/include -I/usr/src/sys/dev/pci/drm/amd/display/dc -I/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm -I/usr/src/sys/dev/pci/drm/amd/powerplay/inc -I/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr -I/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc -I/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw -I/usr/src/sys/dev/pci/drm/amd/display/modules/inc -DDDB -DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_ECN -DTCP_SIGNATURE -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP -c /usr/src/sys/ufs/ufs/ufs_ihash.c'],) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 403, in compilations for call in exec_calls: File "/usr/local/bin/bear", line 343, in safe_calls = (x for x in calls if x is not None) File "/usr/local/bin/bear", line 342, in calls = (parse_exec_trace(file) for file in exec_trace_files(tmp_dir)) File "/usr/local/bin/bear", line 464, in parse_exec_trace logging.debug('parse exec trace file: %s', filename) Message: 'parse exec trace file: %s' Arguments: ('/tmp/intercept-db8z3zp7/execution.uir5bz',) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.7/logging/__init__.py", line 1029, in emit self.flush() File "/usr/local/lib/python3.7/logging/__init__.py", line 1009, in flush self.stream.flush() BrokenPipeError: [Errno 32] Broken pipe Call stack: File "/usr/local/bin/bear", line 887, in sys.exit(intercept_build()) File "/usr/local/bin/bear", line 289, in wrapper return function(*args, **kwargs) File "/usr/local/bin/bear", line 316, in intercept_build exit_code, current = capture(args, tools) File "/usr/local/bin/bear", line 347, in capture filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 347, in filtered = set(entry for entry in current if include_filter(entry)) File "/usr/local/bin/bear", line 404, in compilations for compilation in Compilation.iter_from_execution(call, tools): File "/usr/local/bin/bear", line 681, in iter_from_execution candidate = cls._split_command(execution.cmd, tools) File "/usr/local/bin/bear", line 737, in _split_command logging.debug('input was: %s', command) Message: 'input was: %s' Arguments: (['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'ufs_ihash.c', '-mrelocation-model', 'static', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-ffreestanding', '-mcode-model', 'kernel', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-target-feature', '-sse2', '-target-feature', '-sse', '-target-feature', '-3dnow', '-target-feature', '-mmx', '-target-feature', '+save-args', '-disable-red-zone', '-no-implicit-float', '-dwarf-column-info', '-debug-info-kind=limited', '-dwarf-version=2', '-debugger-tuning=gdb', '-coverage-notes-file', '/usr/src/sys/arch/amd64/compile/GENERIC/obj/ufs_ihash.gcno', '-nostdsysteminc', '-nobuiltininc', '-resource-dir', '/usr/lib/clang/8.0.1', '-dependency-file', 'ufs_ihash.d', '-MT', 'ufs_ihash.o', '-sys-header-deps', '-MP', '-I', '/usr/src/sys', '-I', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-I', '/usr/src/sys/arch', '-I', '/usr/src/sys/dev/pci/drm/include', '-I', '/usr/src/sys/dev/pci/drm/include/uapi', '-I', '/usr/src/sys/dev/pci/drm/amd/include/asic_reg', '-I', '/usr/src/sys/dev/pci/drm/amd/include', '-I', '/usr/src/sys/dev/pci/drm/amd/amdgpu', '-I', '/usr/src/sys/dev/pci/drm/amd/display', '-I', '/usr/src/sys/dev/pci/drm/amd/display/include', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/amdgpu_dm', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/smumgr', '-I', '/usr/src/sys/dev/pci/drm/amd/powerplay/hwmgr', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc', '-I', '/usr/src/sys/dev/pci/drm/amd/display/dc/inc/hw', '-I', '/usr/src/sys/dev/pci/drm/amd/display/modules/inc', '-D', 'DDB', '-D', 'DIAGNOSTIC', '-D', 'KTRACE', '-D', 'ACCOUNTING', '-D', 'KMEMSTATS', '-D', 'PTRACE', '-D', 'POOL_DEBUG', '-D', 'CRYPTO', '-D', 'SYSVMSG', '-D', 'SYSVSEM', '-D', 'SYSVSHM', '-D', 'UVM_SWAP_ENCRYPT', '-D', 'FFS', '-D', 'FFS2', '-D', 'FFS_SOFTUPDATES', '-D', 'UFS_DIRHASH', '-D', 'QUOTA', '-D', 'EXT2FS', '-D', 'MFS', '-D', 'NFSCLIENT', '-D', 'NFSSERVER', '-D', 'CD9660', '-D', 'UDF', '-D', 'MSDOSFS', '-D', 'FIFO', '-D', 'FUSE', '-D', 'SOCKET_SPLICE', '-D', 'TCP_ECN', '-D', 'TCP_SIGNATURE', '-D', 'INET6', '-D', 'IPSEC', '-D', 'PPP_BSDCOMP', '-D', 'PPP_DEFLATE', '-D', 'PIPEX', '-D', 'MROUTING', '-D', 'MPLS', '-D', 'BOOT_CONFIG', '-D', 'USER_PCICONF', '-D', 'APERTURE', '-D', 'MTRR', '-D', 'NTFS', '-D', 'HIBERNATE', '-D', 'PCIVERBOSE', '-D', 'USBVERBOSE', '-D', 'WSDISPLAY_COMPAT_USL', '-D', 'WSDISPLAY_COMPAT_RAWKBD', '-D', 'WSDISPLAY_DEFAULTSCREENS=6', '-D', 'X86EMU', '-D', 'ONEWIREVERBOSE', '-D', 'MAXUSERS=80', '-D', '_KERNEL', '-O0', '-Werror', '-Wall', '-Wimplicit-function-declaration', '-Wno-uninitialized', '-Wno-pointer-sign', '-Wno-address-of-packed-member', '-Wno-constant-conversion', '-fdebug-compilation-dir', '/usr/src/sys/arch/amd64/compile/GENERIC/obj', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', 'ufs_ihash.o', '-x', 'c', '/usr/src/sys/ufs/ufs/ufs_ihash.c', '-faddrsig'],) Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='UTF-8'> BrokenPipeError: [Errno 32] Broken pipe ```

I added | head because I'm compiling OpenBSD kernel, which emits too many outputs.

Empty compile_commands.json is generated even with cc:

root@wshob ~# cc --version
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: amd64-unknown-openbsd6.6
Thread model: posix
InstalledDir: /usr/bin
root@wshob ~# ldd ^C
root@wshob ~# which cc
/usr/bin/cc
root@wshob ~# cc --version
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: amd64-unknown-openbsd6.6
Thread model: posix
InstalledDir: /usr/bin
root@wshob ~# ldd /usr/bin/cc
/usr/bin/cc:
    Start            End              Type  Open Ref GrpRef Name
    0000000000200000 00000000036e3000 exe   2    0   0      /usr/bin/cc
    0000000228b78000 0000000228c54000 rlib  0    1   0      /usr/lib/libc++.so.3.0
    00000002038cb000 000000020390d000 rlib  0    2   0      /usr/lib/libc++abi.so.1.0
    00000002afdf0000 00000002afdfd000 rlib  0    1   0      /usr/lib/libpthread.so.26.1
    00000002582b4000 00000002582e3000 rlib  0    1   0      /usr/lib/libm.so.10.1
    00000002d0a16000 00000002d0b0a000 rlib  0    1   0      /usr/lib/libc.so.95.1
    000000022ef0f000 000000022ef0f000 ld.so 0    1   0      /usr/libexec/ld.so
root@wshob ~# bear -vvvv cc a.c
bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', 'cc', 'a.c']
bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['cc', 'a.c'], cdb='compile_commands.json', exclude=[], field_output=False, include=[], libear='/usr/local/lib/bear/libear.so', use_cc=['cc'], use_cxx=['c++'], use_fortran=['f95'], use_only=False, verbose=4)
bear: DEBUG: run_build: run build ['cc', 'a.c'], in environment: {'HOME': '/root', 'LC_CTYPE': 'en_US.UTF-8', 'LOGNAME': 'root', 'MAIL': '/var/mail/root', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin', 'PWD': '/root', 'SHELL': '/bin/ksh', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/tmp/ssh-LhfgOaXF3v/agent.33309', 'SSH_CLIENT': '10.0.2.2 35478 22', 'SSH_CONNECTION': '10.0.2.2 35478 10.0.2.15 22', 'SSH_TTY': '/dev/ttyp1', 'TERM': 'xterm-256color', 'USER': 'root', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-xxnzn3cq', 'LD_PRELOAD': '/usr/local/lib/bear/libear.so'}
bear: DEBUG: run_build: build finished with exit code: 0
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-xxnzn3cq/execution.iEI67A
bear: DEBUG: _split_command: input was: ['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'a.c', '-mrelocation-model', 'pic', '-pic-level', '1', '-pic-is-pie', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-munwind-tables', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-dwarf-column-info', '-debugger-tuning=gdb', '-resource-dir', '/usr/lib/clang/8.0.1', '-fdebug-compilation-dir', '/root', '-ferror-limit', '19', '-fmessage-length', '112', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', '/tmp/a-32ef65.o', '-x', 'c', 'a.c', '-faddrsig']
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-xxnzn3cq/execution.24GYVE
bear: DEBUG: _split_command: input was: ['/usr/bin/ld', '-e', '__start', '--eh-frame-hdr', '-Bdynamic', '-dynamic-linker', '/usr/libexec/ld.so', '-o', 'a.out', '/usr/bin/../lib/crt0.o', '/usr/bin/../lib/crtbegin.o', '-L/usr/bin/../lib', '-L/usr/lib', '/tmp/a-32ef65.o', '-lcompiler_rt', '-lc', '-lcompiler_rt', '/usr/bin/../lib/crtend.o']
root@wshob ~# cat compile_commands.json 
[]⏎                                                                                                             root@wshob ~# 
rizsotto commented 4 years ago

Thanks @wataash to come back with this.

Yes, the compiler looks good to me. (As you can see, it was intercepted the child processes.) The bear -vvvv cc a.c won't make a non empty compilation database, even if it's working well. (bear -vvvv sh -c "cc a.c" is the way to intercept a single compilation. Or pass -MJ output.json flag to Clang.)

wataash commented 4 years ago

Thanks! Okay, I understood that bear cc doesn't make sense.

Here's bear -vvvv sh -c "cc a.c" output, just in case of anyone want to see:

root@wshob ~# bear -vvvv sh -c "cc a.c"
bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', 'sh', '-c', 'cc a.c']
bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['sh', '-c', 'cc a.c'], cdb='compile_commands.json', exclude=[], field_output=False, include=[], libear='/usr/local/lib/bear/libear.so', use_cc=['cc'], use_cxx=['c++'], use_fortran=['f95'], use_only=False, verbose=4)
bear: DEBUG: run_build: run build ['sh', '-c', 'cc a.c'], in environment: {'HOME': '/root', 'LC_CTYPE': 'en_US.UTF-8', 'LOGNAME': 'root', 'MAIL': '/var/mail/root', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin', 'PWD': '/root', 'SHELL': '/bin/ksh', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/tmp/ssh-vqAfZCzHjQ/agent.23339', 'SSH_CLIENT': '10.0.2.2 44664 22', 'SSH_CONNECTION': '10.0.2.2 44664 10.0.2.15 22', 'SSH_TTY': '/dev/ttyp0', 'TERM': 'xterm-256color', 'USER': 'root', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-y6b3affj', 'LD_PRELOAD': '/usr/local/lib/bear/libear.so'}
bear: DEBUG: run_build: build finished with exit code: 0
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-y6b3affj/execution.8k45lC
bear: DEBUG: _split_command: input was: ['/usr/bin/cc', '-cc1', '-triple', 'amd64-unknown-openbsd6.6', '-emit-obj', '-mrelax-all', '-disable-free', '-disable-llvm-verifier', '-discard-value-names', '-main-file-name', 'a.c', '-mrelocation-model', 'pic', '-pic-level', '1', '-pic-is-pie', '-mthread-model', 'posix', '-mdisable-fp-elim', '-relaxed-aliasing', '-masm-verbose', '-mconstructor-aliases', '-munwind-tables', '-target-cpu', 'x86-64', '-target-feature', '+retpoline-indirect-calls', '-target-feature', '+retpoline-indirect-branches', '-dwarf-column-info', '-debugger-tuning=gdb', '-resource-dir', '/usr/lib/clang/8.0.1', '-fdebug-compilation-dir', '/root', '-ferror-limit', '19', '-fmessage-length', '213', '-fwrapv', '-D_RET_PROTECTOR', '-ret-protector', '-fobjc-runtime=gnustep', '-fdiagnostics-show-option', '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-valloc', '-fno-builtin-free', '-fno-builtin-strdup', '-fno-builtin-strndup', '-o', '/tmp/a-73d21b.o', '-x', 'c', 'a.c', '-faddrsig']
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-y6b3affj/execution.yz68hY
bear: DEBUG: _split_command: input was: ['/usr/bin/ld', '-e', '__start', '--eh-frame-hdr', '-Bdynamic', '-dynamic-linker', '/usr/libexec/ld.so', '-o', 'a.out', '/usr/bin/../lib/crt0.o', '/usr/bin/../lib/crtbegin.o', '-L/usr/bin/../lib', '-L/usr/lib', '/tmp/a-73d21b.o', '-lcompiler_rt', '-lc', '-lcompiler_rt', '/usr/bin/../lib/crtend.o']
root@wshob ~# cat compile_commands.json
[]⏎                                                                                                                                                                                                                  root@wshob ~#

Update I made an issue about OpenBSD's problem at https://github.com/rizsotto/Bear/issues/283

rizsotto commented 4 years ago

@wataash thanks for the update. Since I don't yet have OpenBSD I need your help to fix this. (If it's fixable.)

phil-blain commented 4 years ago

Quick note : Cirrus CI has FreeBSD VMs.

rizsotto commented 4 years ago

There is a release candidate on master branch now, which suppose to fix this issue. Could you give it a try for that?

I'm closing this ticket now, but will re-open if the bug still there.