EnglishFrenchSpanish

OnWorks favicon

bear - Online in the Cloud

Run bear in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command bear that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


bear - build ear

SYNOPSIS


bear [options] [build commands]

DESCRIPTION


Bear is a tool to generate compilation database for clang tooling.

The JSON compilation database (http://clang.llvm.org/docs/JSONCompilationDatabase.html) is
used in clang project to provide information how a single compilation unit was processed.
When that is available then it is easy to re-run the compilation with different programs.

Bear execs the original build command and intercept the exec calls. To achieve that Bear
uses the LD_PRELOAD or DYLD_INSERT_LIBRARIES mechanisms provided by the dynamic linker.
There is a library which defines the exec methods and used in every child processes of the
build command. The executable itself sets the environment up to child processes and
writes the output file.

OPTIONS


-o output, --cdb output
Specify output file. Default value provided.

-a, --append
Use previously generated output file and append the new entries to it. This way
you can run bear continuously during work, and it keeps the compilation database up
to date. File deletion and addition are both considered. But build process change
(modifying compiler flags) will cause duplicate entries.

-v, --verbose
Make bear more verbose.

-l library
Specify the preloaded library location. Default value provided. (This option
mainly for development purposes.)

-n Disable filter. The output is also a JSON formated file. But the result is not a
compilation database. It contains all available information of the exec calls.
(This option mainly for development purposes.)

OUTPUT


There are two version of output formats. One is defined by the clang tooling. This goes
like this:

[
{ "directory": "/home/user/llvm/build",
"command": "clang++ -Irelative -c -o file.o file.cc",
"file": "file.cc" },
...
]

To achieve this bear has to run some filtering and formating. Build tools exec many
commands during the build process. Bear has to find was that a compiler call, and what
was the source file? The other output format is generated by the -n flag. (This output is
not formalized, it's used to debug bear itself.)

EXIT STATUS


Bear exit status is the exit status of the build command. Except when bear crashes, then
it sets to non zero.

ENVIRONMENT


BEAR_OUTPUT
The place of the temporary files where client shall report exec calls. Value set by
bear, overrides previous value for child processes.

LD_PRELOAD
Used by the dynamic loader on Linux, FreeBSD and other UNIX OS. Value set by bear,
overrides previous value for child processes.

DYLD_INSERT_LIBRARIES
Used by the dynamic loader on OS X. Value set by bear, overrides previous value
for child processes.

DYLD_FORCE_FLAT_NAMESPACE
Used by the dynamic loader on OS X. Value set by bear, overrides previous value
for child processes.

Use bear online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad