Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Could not load compilationdatabase - Unknown key: ""output"" #94

Open
@kanihal

Description

I am trying to use woboq on postgres (https://github.com/postgres/postgres).
I have generated compile_commands.json using bear

cd postgres
bear -- ./configure
bear -- make 

Now when I run codebrowser_generator, I get the below-mentioned error

OUTPUT_DIRECTORY=~/public_html/postgres
DATA_DIRECTORY=$OUTPUT_DIRECTORY/../data
mkdir -p $OUTPUT_DIRECTORY
mkdir -p $DATA_DIRECTORY
BUILD_DIRECTORY=$PWD
SOURCE_DIRECTORY=$PWD
VERSION=`git describe --always --tags`
codebrowser_generator -b $BUILD_DIRECTORY -a \
-o $OUTPUT_DIRECTORY \
-p postgres:$SOURCE_DIRECTORY:$VERSION

json-compilation-database: Unknown key: ""output""

Could not load compilationdatabase. Please use the -b option to a path containing a compile_commands.json, or use '--' followed by the compilation commands.

Here is a sample entry from compile_commands.json,

 {
 "arguments": [
 "/usr/bin/x86_64-linux-gnu-gcc-10",
 "-Wall",
 "-Wmissing-prototypes",
 "-Wpointer-arith",
 "-Wdeclaration-after-statement",
 "-Werror=vla",
 "-Wendif-labels",
 "-Wmissing-format-attribute",
 "-Wimplicit-fallthrough=3",
 "-Wcast-function-type",
 "-Wformat-security",
 "-fno-strict-aliasing",
 "-fwrapv",
 "-fexcess-precision=standard",
 "-Wno-format-truncation",
 "-Wno-stringop-truncation",
 "-O2",
 "-fPIC",
 "-I.",
 "-I/home/jagadeesha/Downloads/postgres-git/src/pl/plpgsql/src",
 "-I../../../../src/include",
 "-I/home/jagadeesha/Downloads/postgres-git/src/include",
 "-D_GNU_SOURCE",
 "-c",
 "-o",
 "pl_scanner.o",
 "/home/jagadeesha/Downloads/postgres-git/src/pl/plpgsql/src/pl_scanner.c"
 ],
 "directory": "/home/jagadeesha/Downloads/postgres-git/build/src/pl/plpgsql/src",
 "file": "/home/jagadeesha/Downloads/postgres-git/src/pl/plpgsql/src/pl_scanner.c",
 "output": "/home/jagadeesha/Downloads/postgres-git/build/src/pl/plpgsql/src/pl_scanner.o"
 }

and codebrowser version details:

$ codebrowser_generator -version
LLVM (http://llvm.org/):
 LLVM version 3.8.1
 
 Optimized build.
 Built Jun 2 2017 (13:11:29).
 Default target: x86_64-pc-linux-gnu
 Host CPU: westmere

is the generated entries in compile_commands.json not supposed to contain output field?
How do I resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /