Package Details: bear-git r492.c3c3537-1

Git Clone URL: https://aur.archlinux.org/bear-git.git (read-only, click to copy)
Package Base: bear-git
Description: Tool to generate compilation database for clang tooling
Upstream URL: https://github.com/rizsotto/Bear
Licenses: GPL3
Conflicts: bear
Provides: bear
Submitter: mlq
Maintainer: dviktor
Last Packager: dviktor
Votes: 4
Popularity: 0.000053
First Submitted: 2013-05-28 16:10
Last Updated: 2019-09-25 08:41

Dependencies (5)

Required by (1)

  • edi (requires bear)

Sources (1)

Latest Comments

dviktor commented on 2020-10-19 21:41

@JJK can't reproduce:

[ 89%] Performing test step for 'BearTest'
UpdateCTestConfiguration  from :/opt/buildcache/bear-git/src/bear-git/subprojects/Build/BearTest/DartConfiguration.tcl
UpdateCTestConfiguration  from :/opt/buildcache/bear-git/src/bear-git/subprojects/Build/BearTest/DartConfiguration.tcl
Test project /opt/buildcache/bear-git/src/bear-git/subprojects/Build/BearTest
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: bear::func_test

1: Test command: /usr/bin/lit "-D_TEST_EXEC_ROOT=/opt/buildcache/bear-git/src/bear-git/subprojects/Build/BearTest" "-D_BIN_BEAR=/opt/buildcache/bear-git/src/bear-git/stage/bin/bear" "-D_BIN_CITNAMES=/opt/buildcache/bear-git/src/bear-git/stage/bin/citnames" "-D_BIN_INTERCEPT=/opt/buildcache/bear-git/src/bear-git/stage/bin/intercept" "-D_BIN_ER=/opt/buildcache/bear-git/src/bear-git/stage/libexec/er" "-D_BIN_WRAPPER=/opt/buildcache/bear-git/src/bear-git/stage/libexec/wrapper.d" "-D_LIB_EXEC=/opt/buildcache/bear-git/src/bear-git/stage/libexec/libexec.so" "-v" "/opt/buildcache/bear-git/src/bear-git/subprojects/Build/BearTest"
1: Test timeout computed to be: 90
1: [('%{compile}', 'cc -I /opt/buildcache/bear-git/src/bear-git/subprojects/Build/BearTest'), ('%{bear}', '/opt/buildcache/bear-git/src/bear-git/stage/bin/bear --citnames /opt/buildcache/bear-git/src/bear-git/stage/bin/citnames --interceptor /opt/buildcache/bear-git/src/bear-git/stage/bin/intercept --libexec /opt/buildcache/bear-git/src/bear-git/stage/libexec/libexec.so --executor /opt/buildcache/bear-git/src/bear-git/stage/libexec/er --wrapper /opt/buildcache/bear-git/src/bear-git/stage/libexec/wrapper.d'), ('%{intercept}', '/opt/buildcache/bear-git/src/bear-git/stage/bin/intercept --executor /opt/buildcache/bear-git/src/bear-git/stage/libexec/er --library /opt/buildcache/bear-git/src/bear-git/stage/libexec/libexec.so --wrapper /opt/buildcache/bear-git/src/bear-git/stage/libexec/wrapper.d'), ('%{citnames}', '/opt/buildcache/bear-git/src/bear-git/stage/bin/citnames'), ('%{shell}', '/usr/bin/bash'), ('%{make}', '/usr/bin/make'), ('%{true}', '/usr/bin/true'), ('%{false}', '/usr/bin/false'), ('%{echo}', '/usr/bin/echo'), ('%{sleep}', '/usr/bin/sleep'), ('%{c_compiler}', '/usr/bin/gcc'), ('%{cxx_compiler}', '/usr/bin/c++'), ('%{fortran}', '/usr/bin/gfortran'), ('%{fakeroot}', '/usr/bin/fakeroot'), ('%{valgrind}', '/usr/bin/valgrind')]
1: {'PATH': '/opt/buildcache/bear-git/src/bear-git/test/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/jvm/default/bin', 'LLVM_DISABLE_CRASH_REPORT': '1', 'LD_LIBRARY_PATH': '/usr/lib/libfakeroot:/usr/lib64/libfakeroot:/usr/lib32/libfakeroot', 'TERM': 'xterm-256color', 'LD_PRELOAD': 'libfakeroot.so', 'LC_CTYPE': 'en_US.UTF-8', 'TRUE': '/usr/bin/true', 'FALSE': '/usr/bin/false', 'ECHO': '/usr/bin/echo', 'SLEEP': '/usr/bin/sleep', 'CC': '/usr/bin/gcc', 'CXX': '/usr/bin/c++'}
1: {'dynamic-make', 'preload', 'make', 'shell', 'dynamic-shell', 'fakeroot', 'valgrind', 'fortran'}
1: -- Testing: 84 tests, 4 workers --
1: XFAIL: bear :: cases/citnames/exit_code/exit_code_for_fail.sh (1 of 84)
1: PASS: bear :: cases/citnames/exit_code/exit_code_for_help.sh (2 of 84)
1: XFAIL: bear :: cases/compilation/exit_code/exit_code_for_empty.sh (3 of 84)
1: XFAIL: bear :: cases/compilation/exit_code/exit_code_for_fail.sh (4 of 84)
1: PASS: bear :: cases/compilation/exit_code/exit_code_for_help.sh (5 of 84)
1: PASS: bear :: cases/compilation/exit_code/exit_code_for_success.sh (6 of 84)
1: PASS: bear :: cases/citnames/exit_code/exit_code_for_success.sh (7 of 84)
1: PASS: bear :: cases/citnames/output/wrapper_flags_extended.sh (8 of 84)
1: UNSUPPORTED: bear :: cases/compilation/output/compile_cuda.sh (9 of 84)
1: PASS: bear :: cases/citnames/output/convert_format.sh (10 of 84)
1: PASS: bear :: cases/compilation/output/broken_build.sh (11 of 84)
1: PASS: bear :: cases/compilation/output/compile_fortran.sh (12 of 84)
1: PASS: bear :: cases/compilation/output/assembly_sources.mk (13 of 84)
1: PASS: bear :: cases/compilation/output/define_with_escaped_quote.sh (14 of 84)
1: PASS: bear :: cases/compilation/output/empty_argument.sh (15 of 84)
1: PASS: bear :: cases/compilation/output/define_with_quote.sh (16 of 84)
1: PASS: bear :: cases/compilation/output/existing_files_only.sh (17 of 84)
1: PASS: bear :: cases/compilation/output/duplicate_entries.sh (18 of 84)
1: PASS: bear :: cases/compilation/output/flag/field_output.sh (19 of 84)
1: PASS: bear :: cases/compilation/output/flag/append.sh (20 of 84)
1: PASS: bear :: cases/compilation/output/flag/exclude.sh (21 of 84)
1: PASS: bear :: cases/compilation/output/flag/use_cc.sh (22 of 84)
1: PASS: bear :: cases/compilation/output/flags_filtered_link.sh (23 of 84)
1: PASS: bear :: cases/compilation/output/flags_filtered_preproc.sh (24 of 84)
1: PASS: bear :: cases/compilation/output/flag/use_cxx.sh (25 of 84)
1: XFAIL: bear :: cases/intercept/exit_code/exit_code_for_empty.sh (26 of 84)
1: XFAIL: bear :: cases/intercept/exit_code/exit_code_for_fail.sh (27 of 84)
1: PASS: bear :: cases/intercept/exit_code/exit_code_for_help.sh (28 of 84)
1: PASS: bear :: cases/intercept/exit_code/exit_code_for_success.sh (29 of 84)
1: PASS: bear :: cases/intercept/output/shell_command_with_iso8859-2.sh (30 of 84)
1: PASS: bear :: cases/compilation/output/multiple_source_build.sh (31 of 84)
1: PASS: bear :: cases/compilation/output/parallel_build.sh (32 of 84)
1: PASS: bear :: cases/intercept/preload/build_command_captured.sh (33 of 84)
1: PASS: bear :: cases/intercept/preload/build_stderr_captured.sh (34 of 84)
1: PASS: bear :: cases/intercept/preload/build_stdout_captured.sh (35 of 84)
1: PASS: bear :: cases/compilation/output/successful_build.sh (36 of 84)
1: PASS: bear :: cases/intercept/preload/path_resolver/same_name_without_exec_flag.c (37 of 84)
1: PASS: bear :: cases/intercept/preload/path_resolver/same_name_in_path.c (38 of 84)
1: PASS: bear :: cases/intercept/output/shell_commands_with_unicode.sh (39 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execl/failure_prints_errno.c (40 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execl/success.c (41 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execle/failure_prints_errno.c (42 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execle/success.c (43 of 84)
1: UNSUPPORTED: bear :: cases/intercept/preload/posix/exect/success.c (44 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execlp/failure_prints_errno.c (45 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execlp/success.c (46 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execlp/success_to_resolve.c (47 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execv/failure_prints_errno.c (48 of 84)
1: UNSUPPORTED: bear :: cases/intercept/preload/posix/execvp2/failure_prints_errno.c (49 of 84)
1: UNSUPPORTED: bear :: cases/intercept/preload/posix/execvp2/success.c (50 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execv/success.c (51 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execve/failure_prints_errno.c (52 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execve/success.c (53 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execvpe/failure_prints_errno.c (54 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execvpe/success.c (55 of 84)
1: PASS: bear :: cases/intercept/preload/posix/execvpe/success_to_resolve.c (56 of 84)
1: PASS: bear :: cases/intercept/preload/posix/exevp/failure_prints_errno.c (57 of 84)
1: PASS: bear :: cases/intercept/preload/posix/exevp/success.c (58 of 84)
1: PASS: bear :: cases/intercept/preload/posix/no_exec.c (59 of 84)
1: PASS: bear :: cases/intercept/preload/posix/exevp/success_to_resolve.c (60 of 84)
1: PASS: bear :: cases/intercept/preload/posix/popen/success.c (61 of 84)
1: PASS: bear :: cases/intercept/preload/posix/posix_spawn/failure_prints_errno.c (62 of 84)
1: PASS: bear :: cases/intercept/preload/posix/posix_spawn/success.c (63 of 84)
1: PASS: bear :: cases/intercept/preload/posix/posix_spawnp/failure_prints_errno.c (64 of 84)
1: PASS: bear :: cases/intercept/preload/posix/posix_spawnp/success.c (65 of 84)
1: PASS: bear :: cases/intercept/preload/posix/posix_spawnp/success_to_resolve.c (66 of 84)
1: PASS: bear :: cases/intercept/preload/posix/system/success.c (67 of 84)
1: PASS: bear :: cases/intercept/preload/preload_append/fakeroot.sh (68 of 84)
1: PASS: bear :: cases/intercept/preload/preload_append/io_calls.c (69 of 84)
1: PASS: bear :: cases/intercept/preload/shell_commands_intercepted.sh (70 of 84)
1: PASS: bear :: cases/intercept/preload/shell_commands_parallel_intercepted.sh (71 of 84)
1: PASS: bear :: cases/intercept/preload/shell_fail_commands_intercepted.sh (72 of 84)
1: PASS: bear :: cases/intercept/preload/shell_commands_with_empty_env.sh (73 of 84)
1: PASS: bear :: cases/intercept/wrapper/build_command_captured.sh (74 of 84)
1: PASS: bear :: cases/intercept/wrapper/build_stderr_captured.sh (75 of 84)
1: PASS: bear :: cases/intercept/wrapper/build_stdout_captured.sh (76 of 84)
1: PASS: bear :: cases/intercept/wrapper/shell_commands_intercepted.sh (77 of 84)
1: PASS: bear :: cases/intercept/wrapper/shell_commands_parallel_intercepted.sh (78 of 84)
1: XFAIL: bear :: cases/intercept/wrapper/shell_commands_with_empty_env.sh (79 of 84)
1: PASS: bear :: cases/intercept/preload/signal_outside_build.sh (80 of 84)
1: PASS: bear :: cases/intercept/preload/signal_inside_build.sh (81 of 84)
1: PASS: bear :: cases/intercept/wrapper/shell_fail_commands_intercepted.sh (82 of 84)
1: PASS: bear :: cases/intercept/wrapper/use_cc_env_to_select_compiler.sh (83 of 84)
1: PASS: bear :: cases/intercept/valgrind/shell_commands_intercepted.sh (84 of 84)
1: 
1: Testing Time: 26.55s
1:   Expected Passes    : 74
1:   Expected Failures  : 6
1:   Unsupported Tests  : 4
1/1 Test #1: bear::func_test ..................   Passed   26.82 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =  26.82 sec

JJK commented on 2020-10-03 08:46

The tests fail for me:

1: ********************
1:
1: Testing Time: 2.80s
1: ********************
1: Failing Tests (60):
1:     bear :: cases/compilation/exit_code/exit_code_for_success.sh
1:     bear :: cases/compilation/output/assembly_sources.mk
1:     bear :: cases/compilation/output/broken_build.sh
1:     bear :: cases/compilation/output/compile_fortran.sh
1:     bear :: cases/compilation/output/define_with_escaped_quote.sh
1:     bear :: cases/compilation/output/define_with_quote.sh
1:     bear :: cases/compilation/output/duplicate_entries.sh
1:     bear :: cases/compilation/output/empty_argument.sh
1:     bear :: cases/compilation/output/existing_files_only.sh
1:     bear :: cases/compilation/output/flag/append.sh
1:     bear :: cases/compilation/output/flag/exclude.sh
1:     bear :: cases/compilation/output/flag/field_output.sh
1:     bear :: cases/compilation/output/flag/use_cc.sh
1:     bear :: cases/compilation/output/flag/use_cxx.sh
1:     bear :: cases/compilation/output/flags_filtered_link.sh
1:     bear :: cases/compilation/output/flags_filtered_preproc.sh
1:     bear :: cases/compilation/output/multiple_source_build.sh
1:     bear :: cases/compilation/output/parallel_build.sh
1:     bear :: cases/compilation/output/successful_build.sh
1:     bear :: cases/intercept/exit_code/exit_code_for_success.sh
1:     bear :: cases/intercept/output/shell_commands_with_unicode.sh
1:     bear :: cases/intercept/preload/build_command_captured.sh
1:     bear :: cases/intercept/preload/build_stderr_captured.sh
1:     bear :: cases/intercept/preload/build_stdout_captured.sh
1:     bear :: cases/intercept/preload/path_resolver/same_name_in_path.c
1:     bear :: cases/intercept/preload/path_resolver/same_name_without_exec_flag.c
1:     bear :: cases/intercept/preload/posix/execl/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/execl/success.c
1:     bear :: cases/intercept/preload/posix/execle/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/execle/success.c
1:     bear :: cases/intercept/preload/posix/execlp/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/execlp/success.c
1:     bear :: cases/intercept/preload/posix/execlp/success_to_resolve.c
1:     bear :: cases/intercept/preload/posix/execv/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/execv/success.c
1:     bear :: cases/intercept/preload/posix/execve/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/execve/success.c
1:     bear :: cases/intercept/preload/posix/execvpe/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/execvpe/success.c
1:     bear :: cases/intercept/preload/posix/execvpe/success_to_resolve.c
1:     bear :: cases/intercept/preload/posix/exevp/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/exevp/success.c
1:     bear :: cases/intercept/preload/posix/exevp/success_to_resolve.c
1:     bear :: cases/intercept/preload/posix/no_exec.c
1:     bear :: cases/intercept/preload/posix/popen/success.c
1:     bear :: cases/intercept/preload/posix/posix_spawn/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/posix_spawn/success.c
1:     bear :: cases/intercept/preload/posix/posix_spawnp/failure_prints_errno.c
1:     bear :: cases/intercept/preload/posix/posix_spawnp/success.c
1:     bear :: cases/intercept/preload/posix/posix_spawnp/success_to_resolve.c
1:     bear :: cases/intercept/preload/posix/system/success.c
1:     bear :: cases/intercept/preload/preload_append/fakeroot.sh
1:     bear :: cases/intercept/preload/preload_append/io_calls.c
1:     bear :: cases/intercept/preload/shell_commands_intercepted.sh
1:     bear :: cases/intercept/preload/shell_commands_parallel_intercepted.sh
1:     bear :: cases/intercept/preload/shell_commands_with_empty_env.sh
1:     bear :: cases/intercept/preload/shell_fail_commands_intercepted.sh
1:     bear :: cases/intercept/preload/signal_inside_build.sh
1:     bear :: cases/intercept/preload/signal_outside_build.sh
1:     bear :: cases/intercept/valgrind/shell_commands_intercepted.sh
1:
1:   Expected Passes    : 14
1:   Expected Failures  : 6
1:   Unsupported Tests  : 4
1:   Unexpected Failures: 60
1/1 Test #1: bear::func_test ..................***Failed    3.27 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   3.28 sec

The following tests FAILED:
      1 - bear::func_test (Failed)
Errors while running CTest
make[2]: *** [CMakeFiles/BearTest.dir/build.make:139: subprojects/Stamp/BearTest/BearTest-test] Error 8
make[1]: *** [CMakeFiles/Makefile2:219: CMakeFiles/BearTest.dir/all] Error 2
make: *** [Makefile:171: all] Error 2

totsilence commented on 2019-08-30 12:10

Since the release of extra-cmake-modules-5.61.0-2

https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/extra-cmake-modules&id=c79fdb5b60580368ec83283b8fcda0d987a6c424

LIBDIR is set such that libraries are installed to /usr/lib instead of /usr/lib64 which breaks the build of this package. I suggest to remove the lines which move the (now non-existant) directory:

if [ $CARCH = "x86_64" ]; then mv $pkgdir/usr/lib64 $pkgdir/usr/lib fi

Thanks!

Ptero-4 commented on 2018-05-01 05:48

The section check() in the PKGBUILD breaks compilation. Seems safe to remove to make it compile properly.