Skip to content

build command issue #202

@Thomasb81

Description

@Thomasb81

Since meson branch merge, the build command need probably updated in https://github.com/Nic30/hdlConvertor/blob/master/README.md

When I use:

pip3 install .

The installation failed with:

      ccache c++ -Isrc/libhdlConvertor_cpp_static.a.p -Isrc -I../src -Iinclude -I../include -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/atn -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/dfa -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/internal -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/misc -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/support -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/tree -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/tree/pattern -I../subprojects/antlr4-runtime/runtime/Cpp/runtime/src/tree/xpath -Isubprojects/antlr4-runtime -I../subprojects/antlr4-runtime -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O3 -fPIC -Wall -pedantic -W -Wno-attributes -MD -MQ src/libhdlConvertor_cpp_static.a.p/hdlConvertor.cpp.o -MF src/libhdlConvertor_cpp_static.a.p/hdlConvertor.cpp.o.d -o src/libhdlConvertor_cpp_static.a.p/hdlConvertor.cpp.o -c ../src/hdlConvertor.cpp
      In file included from ../include/hdlConvertor/hdlConvertor.h:14,
                       from ../src/hdlConvertor.cpp:1:
      ../include/hdlConvertor/verilogPreproc/verilogPreproc.h:13:10: fatal error: hdlConvertor/verilogPreproc/verilogPreprocParser/verilogPreprocLexer.h: No such file or directory
         13 | #include <hdlConvertor/verilogPreproc/verilogPreprocParser/verilogPreprocLexer.h>
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      [173/248] Generating verilogPreproc_src_gen with a custom command
      warning(179): verilogPreprocLexer.g4:369:58: incompatible commands type and skip
      [174/248] Generating vhdl_src_gen with a custom command
      [175/248] Generating sv2017_src_gen with a custom command
      ninja: build stopped: subcommand failed.

Apparently files C++ files from the grammar are not generated out of the box, and are missing for the compilation of source code.

Minimal command that works for me is:

pip3 install . -Ccompile-args="-j1"

Or to compile with debug symbol

pip -v  install -e . -Csetup-args="-Dbuildtype=debug" -Ccompile-args="--verbose" -Cbuild-dir=build-dbg -Ccompile-args="-j1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions