Loki-Astari / ThorsMongo

C++ MongoDB API and BSON/JSON Serialization library
GNU General Public License v3.0
316 stars 71 forks source link

Unable to build the library, flex: unknown flag '-' #28

Closed vlkv closed 7 years ago

vlkv commented 7 years ago

Hi! Could you help me please. I'm following your Build instructions. Configure step succeeds. But make fails.

vitvlkv@sakura:~/src$ git clone git@github.com:Loki-Astari/ThorsSerializer.git
Cloning into 'ThorsSerializer'...
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
remote: Counting objects: 3062, done.
remote: Total 3062 (delta 0), reused 0 (delta 0), pack-reused 3062
Receiving objects: 100% (3062/3062), 875.07 KiB | 753.00 KiB/s, done.
Resolving deltas: 100% (1966/1966), done.
Checking connectivity... done.
vitvlkv@sakura:~/src$ cd ThorsSerializer/
vitvlkv@sakura:~/src/ThorsSerializer$ ./configure --disable-binary --disable-yaml
checking for wget... wget
checking for unzip... unzip
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
Submodule 'build' (https://github.com/Loki-Astari/ThorMaker.git) registered for path 'build'
Cloning into 'build'...
remote: Counting objects: 745, done.
remote: Total 745 (delta 0), reused 0 (delta 0), pack-reused 745
Receiving objects: 100% (745/745), 384.89 KiB | 479.00 KiB/s, done.
Resolving deltas: 100% (465/465), done.
Checking connectivity... done.
Submodule path 'build': checked out '4b8ea1d12bf083651692086c631bf00175fb69f8'
Submodule 'googletest' (https://github.com/google/googletest.git) registered for path 'googletest'
Submodule 'vera-plusplus' (https://github.com/Loki-Astari/vera-plusplus.git) registered for path 'vera-plusplus'
Cloning into 'googletest'...
remote: Counting objects: 7439, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 7439 (delta 5), reused 0 (delta 0), pack-reused 7426
Receiving objects: 100% (7439/7439), 2.51 MiB | 623.00 KiB/s, done.
Resolving deltas: 100% (5522/5522), done.
Checking connectivity... done.
Submodule path 'googletest': checked out 'ed9d1e1ff92ce199de5ca2667a667cd0a368482a'
Cloning into 'vera-plusplus'...
remote: Counting objects: 2715, done.
remote: Total 2715 (delta 0), reused 0 (delta 0), pack-reused 2715
Receiving objects: 100% (2715/2715), 702.82 KiB | 349.00 KiB/s, done.
Resolving deltas: 100% (1841/1841), done.
Checking connectivity... done.
Submodule path 'vera-plusplus': checked out '526e6fba9ed8d7f99b74188ee670c819bc4f895c'
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Tclsh: /usr/bin/tclsh (found version "8.6") 
-- Found TCL: /usr/lib/x86_64-linux-gnu/libtcl.so  
-- Could NOT find TCLTK (missing:  TK_INCLUDE_PATH) 
-- Could NOT find TK (missing:  TK_INCLUDE_PATH) 
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2.0") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.0") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   program_options
--   regex
--   wave
--   python
--   serialization
--   thread
--   chrono
--   date_time
--   atomic
CMake Warning at doc/CMakeLists.txt:5 (message):
  The documentation won't be built because pandoc was not found.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/vitvlkv/src/ThorsSerializer/build/vera-plusplus/build
Scanning dependencies of target vera
[  3%] Building CXX object src/CMakeFiles/vera.dir/main.cpp.o
[  6%] Building CXX object src/CMakeFiles/vera.dir/plugins/Rules.cpp.o
[ 10%] Building CXX object src/CMakeFiles/vera.dir/plugins/tcl/TclInterpreter.cpp.o
[ 13%] Building CXX object src/CMakeFiles/vera.dir/plugins/tcl/cpptcl-1.1.4/cpptcl.cpp.o
[ 17%] Building CXX object src/CMakeFiles/vera.dir/plugins/Exclusions.cpp.o
[ 20%] Building CXX object src/CMakeFiles/vera.dir/plugins/lua/LuaInterpreter.cpp.o
[ 24%] Building CXX object src/CMakeFiles/vera.dir/plugins/Reports.cpp.o
[ 27%] Building CXX object src/CMakeFiles/vera.dir/plugins/Interpreter.cpp.o
[ 31%] Building CXX object src/CMakeFiles/vera.dir/plugins/RootDirectory.cpp.o
[ 34%] Building CXX object src/CMakeFiles/vera.dir/plugins/python/PythonInterpreter.cpp.o
[ 37%] Building CXX object src/CMakeFiles/vera.dir/plugins/Parameters.cpp.o
[ 41%] Building CXX object src/CMakeFiles/vera.dir/plugins/Transformations.cpp.o
[ 44%] Building CXX object src/CMakeFiles/vera.dir/plugins/Profiles.cpp.o
[ 48%] Building CXX object src/CMakeFiles/vera.dir/legacy_main.cpp.o
[ 51%] Building CXX object src/CMakeFiles/vera.dir/get_vera_root_default.cpp.o
[ 55%] Building CXX object src/CMakeFiles/vera.dir/structures/Tokens.cpp.o
[ 58%] Building CXX object src/CMakeFiles/vera.dir/structures/SourceLines.cpp.o
[ 62%] Building CXX object src/CMakeFiles/vera.dir/structures/SourceFiles.cpp.o
[ 65%] Building CXX object src/CMakeFiles/vera.dir/executable_path.cpp.o
[ 68%] Building CXX object src/CMakeFiles/vera.dir/boost_main.cpp.o
[ 72%] Linking CXX executable vera++
[ 72%] Built target vera
Scanning dependencies of target style_reports
[ 75%] Checking style with vera++ in src
[ 79%] Checking style with vera++ in src/plugins
[ 82%] Checking style with vera++ in src/plugins/lua
[ 86%] Checking style with vera++ in src/plugins/python
[ 89%] Checking style with vera++ in src/plugins/tcl
[ 93%] Checking style with vera++ in src/plugins/tcl/cpptcl-1.1.4
[ 96%] Checking style with vera++ in src/plugins/tcl/cpptcl-1.1.4/details
[100%] Checking style with vera++ in src/structures
[100%] Built target style_reports
[ 72%] Built target vera
[100%] Built target style_reports
Install the project...
-- Install configuration: ""
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/bin/vera++
-- Set runtime path of "/home/vitvlkv/src/ThorsSerializer/build/bin/vera++" to ""
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T011.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T009.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T018.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T015.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L006.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/M002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T010.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T008B.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T005.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/DUMP.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/M003.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T008.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T012.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L003.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T008A.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T019.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T009A.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T003.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T016.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L004.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/Doc
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T006.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T007.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T004.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/M001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L005.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/F001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T014.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T013.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/F002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T017.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/move_macros.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/to_xml.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/move_includes.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/to_lower.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/trim_right.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/to_xml2.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/move_namespace.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/fullblock.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/full
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/thor
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/moz
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/default
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/boost
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/vera++-config-version.cmake
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/vera++-config.cmake
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/use_vera++.cmake
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/test_wrapper.cmake.in
~/src/ThorsSerializer/build/third ~/src/ThorsSerializer
~/src/ThorsSerializer/build/googletest/googletest ~/src/ThorsSerializer/build/third
ar: creating libgtest.a
a - gtest-all.o
a - gtest_main.o
~/src/ThorsSerializer/build/third
Installing google test
~/src/ThorsSerializer/build ~/src/ThorsSerializer/build/third
~/src/ThorsSerializer/build/third
~/src/ThorsSerializer
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether C compiler accepts -ansi... yes
checking whether C++ compiler accepts -std=c++11... yes
checking whether C++ compiler accepts -std=c++14... yes
checking whether C++ compiler accepts -std=c++17... yes
checking whether C++ compiler accepts -std=c++1x... no
checking whether C++ compiler accepts -std=c++1y... yes
checking whether C++ compiler accepts -std=c++1z... yes
checking Checking Compiler Compatibility g++ -std=c++17... good
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile.extra
config.status: creating Makefile.config
config.status: creating src/Serialize/SerializeConfig.h
config.status: creating src/BinaryRep/BinaryRepConfig.h
config.status: executing libtool commands
config.status: executing depfiles commands
vitvlkv@sakura:~/src/ThorsSerializer$ make 
Buiding src Start
make -C src build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[1]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src'
Buiding Serialize Start
make -C Serialize build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[2]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Objects for Testing and Coverage
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Failed in Lexer Generator
ERROR
========================================
flex: unknown flag '-'.  For usage, try
    flex --help
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:605: recipe for target 'JsonLexer.lex.cpp' failed
make[3]: *** [JsonLexer.lex.cpp] Error 1
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:341: recipe for target 'run_test' failed
make[2]: *** [run_test] Error 2
make[2]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'Serialize.dir' failed
make[1]: *** [Serialize.dir] Error 2
make[1]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'src.dir' failed
make: *** [src.dir] Error 2
vlkv commented 7 years ago

More info. I have a flex in my system:

vitvlkv@sakura:~/src/ThorsSerializer$ flex --help
flex [-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton]
    [--help --version] [file ...]
    -b  generate backing-up information to lex.backup
    -c  do-nothing POSIX option
    -d  turn on debug mode in generated scanner
    -f  generate fast, large scanner
    -h  produce this help message
    -i  generate case-insensitive scanner
    -l  maximal compatibility with original lex
    -n  do-nothing POSIX option
    -p  generate performance report to stderr
    -s  suppress default rule to ECHO unmatched text
    -t  write generated scanner on stdout instead of lex.yy.c
    -v  write summary of scanner statistics to f
    -w  do not generate warnings
    -B  generate batch scanner (opposite of -I)
    -F  use alternative fast scanner representation
    -I  generate interactive scanner (opposite of -B)
    -L  suppress #line directives in scanner
    -T  flex should run in trace mode
    -V  report flex version
    -7  generate 7-bit scanner
    -8  generate 8-bit scanner
    -+  generate C++ scanner class
    -?  produce this help message
    -C  specify degree of table compression (default is -Cem):
        -Ca  trade off larger tables for better memory alignment
        -Ce  construct equivalence classes
        -Cf  do not compress scanner tables; use -f representation
        -CF  do not compress scanner tables; use -F representation
        -Cm  construct meta-equivalence classes
        -Cr  use read() instead of stdio for scanner input
    -o  specify output filename
    -P  specify scanner prefix other than "yy"
    -S  specify skeleton file
    --help     produce this help message
    --version  report flex version
vitvlkv@sakura:~/src/ThorsSerializer$ flex --version
flex version 2.5.4
Loki-Astari commented 7 years ago

My version of flex seems to support --c++ or -+ to specify C++. Your only seems to support -+.

I'll try and fix this weekend. You can do a temporary fix by editing the file => "build/tools/Makefile" Find --c++ and change to -+ and re-try.

Loki.

On Wed, Dec 28, 2016 at 12:05 PM, Vitaly Volkov notifications@github.com wrote:

More info. I have a flex in my system:

vitvlkv@sakura:~/src/ThorsSerializer$ flex --help flex [-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton] [--help --version] [file ...] -b generate backing-up information to lex.backup -c do-nothing POSIX option -d turn on debug mode in generated scanner -f generate fast, large scanner -h produce this help message -i generate case-insensitive scanner -l maximal compatibility with original lex -n do-nothing POSIX option -p generate performance report to stderr -s suppress default rule to ECHO unmatched text -t write generated scanner on stdout instead of lex.yy.c -v write summary of scanner statistics to f -w do not generate warnings -B generate batch scanner (opposite of -I) -F use alternative fast scanner representation -I generate interactive scanner (opposite of -B) -L suppress #line directives in scanner -T flex should run in trace mode -V report flex version -7 generate 7-bit scanner -8 generate 8-bit scanner -+ generate C++ scanner class -? produce this help message -C specify degree of table compression (default is -Cem): -Ca trade off larger tables for better memory alignment -Ce construct equivalence classes -Cf do not compress scanner tables; use -f representation -CF do not compress scanner tables; use -F representation -Cm construct meta-equivalence classes -Cr use read() instead of stdio for scanner input -o specify output filename -P specify scanner prefix other than "yy" -S specify skeleton file --help produce this help message --version report flex version vitvlkv@sakura:~/src/ThorsSerializer$ flex --version flex version 2.5.4

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Loki-Astari/ThorsSerializer/issues/28#issuecomment-269532909, or mute the thread https://github.com/notifications/unsubscribe-auth/ABk433jSmnFZ5n0qkFBRyxprYaKldAXRks5rMsEcgaJpZM4LXKBe .

-- Blog: http://lokiastari.com/ LinkedIn: https://www.linkedin.com/in/lokiastari Resume: http://stackoverflow.com/cv/lokiastari

vlkv commented 7 years ago

Ok, I've replaced https://github.com/Loki-Astari/ThorMaker/blob/4b8ea1d12bf083651692086c631bf00175fb69f8/tools/Makefile#L612 here --c++ with -+. Now I have another error:

vitvlkv@sakura:~/src/ThorsSerializer$ make 
Buiding src Start
make -C src build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[1]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src'
Buiding Serialize Start
make -C Serialize build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[2]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Objects for Testing and Coverage
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
ERROR
g++ -c JsonLexer.lex.cpp -o coverage/JsonLexer.lex.o -fPIC -Wall -Wextra -Wstrict-aliasing -pedantic -Werror -Wunreachable-code -Wno-long-long -Wno-deprecated-register -Wno-sign-compare -I/home/vitvlkv/src/ThorsSerializer/build/include -isystem /home/vitvlkv/src/ThorsSerializer/build/include3rd -DCOVERAGE_Serialize -g -fprofile-arcs -ftest-coverage -DCOVERAGE_TEST -Wno-unused-private-field -Wno-unreachable-code -DTHOR_USE_CPLUSPLUS17 -std=c++17
========================================
JsonLexer.lex.cpp:1:1: error: ‘flex’ does not name a type
 flex -t JsonLexer.l
 ^
cc1plus: error: unrecognized command line option ‘-Wno-unused-private-field’ [-Werror]
cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’ [-Werror]
cc1plus: all warnings being treated as errors
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:558: recipe for target 'coverage/JsonLexer.lex.o' failed
make[3]: *** [coverage/JsonLexer.lex.o] Error 1
make[3]: *** Waiting for unfinished jobs....
g++ -c YamlPrinter.cpp -DCOVERAGE_Serialize                          OK
g++ -c BinaryParser.cpp -DCOVERAGE_Serialize                         OK
g++ -c YamlParser.cpp -DCOVERAGE_Serialize                           OK
g++ -c JsonPrinter.cpp -DCOVERAGE_Serialize                          OK
g++ -c BinaryTHash.cpp -DCOVERAGE_Serialize                          OK
g++ -c JsonParser.cpp -DCOVERAGE_Serialize                           OK
g++ -c Serialize.cpp -DCOVERAGE_Serialize                            OK
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:341: recipe for target 'run_test' failed
make[2]: *** [run_test] Error 2
make[2]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'Serialize.dir' failed
make[1]: *** [Serialize.dir] Error 2
make[1]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'src.dir' failed
make: *** [src.dir] Error 2
Loki-Astari commented 7 years ago

This seems to be a problem with your version of flex. Can you try installing the GNU flex and see if that works?

Can you also post a copy of the file: JsonLexer.lex.cpp that was generated by your flex.

Loki-Astari commented 7 years ago

The other two errors: cc1plus: error: unrecognized command line option ‘-Wno-unused-private-field’ [-Werror] cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’ [-Werror]

Seem to be caused by by using g++ (where I am using clang). As a temporary fix remove these from the make files "src/Serialize/Makefile" and build/tools/Makefile

I will look to making a permentant fix this weekend.

vlkv commented 7 years ago

Hi, Happy New year))

Can you also post a copy of the file: JsonLexer.lex.cpp that was generated by your flex.

File src/Serialize/JsonLexer.lex.cpp doesn't look like cpp source... It contains only one line:

flex -t JsonLexer.l

Regarding the flex, I've two packages on my system:

vitvlkv@sakura:~$ apt list --installed | grep flex

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

flex-old/xenial,now 2.5.4a-10ubuntu1 amd64 [installed,automatic]
flexc++/xenial,now 2.03.04-1 amd64 [installed]

I'll try to remove flex-old, and use flexc++ instead

vlkv commented 7 years ago

I've installed flex/xenial,now 2.6.0-11 amd64 [installed] and it has flag -+:

Generated code:
  -+,  --c++               generate C++ scanner class

File JsonLexer.lex.cpp seems to be ok now. It's about 1600 lines of c++ code which looks like a parser.

These errors have dissapeared:

cc1plus: error: unrecognized command line option ‘-Wno-unused-private-field’ [-Werror]
cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’ [-Werror]
vlkv commented 7 years ago

So, I've built your library. The problem was in wrong flex package on my system. But there is still some problem with the tests coverage. sudo make install also fails... Here is the output:

vitvlkv@sakura:~/src/ThorsSerializer$ make 
Buiding src Start
make -C src build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[1]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src'
Buiding Serialize Start
make -C Serialize build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[2]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Objects for Testing and Coverage
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
flex JsonLexer.l                                                     OK
g++ -c JsonLexer.lex.cpp -DCOVERAGE_Serialize                        OK
ar rv coverage/libobject.a                                           OK
Done
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Unit Tests
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize/test'
Building coverage
g++ -c YamlPrinterTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c YamlParserTest.cpp -DCOVERAGE_Serialize                       OK
g++ -c SerMemoryTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerVectorTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerSetTest.cpp -DCOVERAGE_Serialize                           OK
g++ -c SerializeTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerDequeTest.cpp -DCOVERAGE_Serialize                         OK
g++ -c SerUnorderedMultiSetTest.cpp -DCOVERAGE_Serialize             OK
g++ -c SerMapTest.cpp -DCOVERAGE_Serialize                           OK
g++ -c SerMultiMapTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c BinaryPrinterTest.cpp -DCOVERAGE_Serialize                    OK
g++ -c SerInitializerList.cpp -DCOVERAGE_Serialize                   OK
g++ -c StaticMemberTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c BinaryParserTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c SerTuppleTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c RoundTripTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerUnorderedSetTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c TemplateTypeTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c UnicodeIteratorTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c SerUnorderedMultiMap.cpp -DCOVERAGE_Serialize                 OK
g++ -c ParserInterfaceTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c SerListTest.cpp -DCOVERAGE_Serialize                          OK
g++ -c THashTest.cpp -DCOVERAGE_Serialize                            OK
g++ -c unittest.cpp -DCOVERAGE_Serialize                             OK
g++ -c SerUnorderedMapTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c JsonPrinterTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c SerializeEnum.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerMultiSetTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c JsonLexerTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerArrayTest.cpp -DCOVERAGE_Serialize                         OK
g++ -c JsonParserTest.cpp -DCOVERAGE_Serialize                       OK
g++ -o coverage/unittest.app -DCOVERAGE_Serialize                    OK
 Done Building coverage/unittest
Done
rm coverage/unittest.o
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize/test'
Running Unit Tests
LD_LIBRARY_PATH=/home/vitvlkv/src/ThorsSerializer/build/lib: test/coverage/unittest.app --gtest_filter=*
Running main() from gtest_main.cc
[==========] Running 119 tests from 27 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from SerSetTest
[ RUN      ] SerSetTest.serialize
[       OK ] SerSetTest.serialize (0 ms)
[ RUN      ] SerSetTest.deSerialize
*** Error in `test/coverage/unittest.app': double free or corruption (out): 0x00007ffc59371780 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f49622bf7e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f49622c7e0a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f49622cb98c]
test/coverage/unittest.app[0x40e9fe]
test/coverage/unittest.app[0x40e554]
test/coverage/unittest.app[0x40dad6]
test/coverage/unittest.app[0x40c7f3]
test/coverage/unittest.app[0x40bae5]
test/coverage/unittest.app[0x40aed0]
test/coverage/unittest.app[0x40b0be]
test/coverage/unittest.app[0x4072d4]
test/coverage/unittest.app[0x571d27]
test/coverage/unittest.app[0x56b4bf]
test/coverage/unittest.app[0x54f172]
test/coverage/unittest.app[0x54fb0a]
test/coverage/unittest.app[0x5501fd]
test/coverage/unittest.app[0x557344]
test/coverage/unittest.app[0x57320f]
test/coverage/unittest.app[0x56c1cb]
test/coverage/unittest.app[0x555de0]
test/coverage/unittest.app[0x57fc0d]
test/coverage/unittest.app[0x57fba7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f4962268830]
test/coverage/unittest.app[0x406969]
======= Memory map: ========
00400000-005ec000 r-xp 00000000 08:01 5111888                            /home/vitvlkv/src/ThorsSerializer/src/Serialize/test/coverage/unittest.app
007eb000-007f1000 r--p 001eb000 08:01 5111888                            /home/vitvlkv/src/ThorsSerializer/src/Serialize/test/coverage/unittest.app
007f1000-00887000 rw-p 001f1000 08:01 5111888                            /home/vitvlkv/src/ThorsSerializer/src/Serialize/test/coverage/unittest.app
00887000-008eb000 rw-p 00000000 00:00 0 
00954000-00986000 rw-p 00000000 00:00 0                                  [heap]
7f495c000000-7f495c021000 rw-p 00000000 00:00 0 
7f495c021000-7f4960000000 ---p 00000000 00:00 0 
7f4962248000-7f4962407000 r-xp 00000000 08:01 10879147                   /lib/x86_64-linux-gnu/libc-2.23.so
7f4962407000-7f4962607000 ---p 001bf000 08:01 10879147                   /lib/x86_64-linux-gnu/libc-2.23.so
7f4962607000-7f496260b000 r--p 001bf000 08:01 10879147                   /lib/x86_64-linux-gnu/libc-2.23.so
7f496260b000-7f496260d000 rw-p 001c3000 08:01 10879147                   /lib/x86_64-linux-gnu/libc-2.23.so
7f496260d000-7f4962611000 rw-p 00000000 00:00 0 
7f4962611000-7f4962627000 r-xp 00000000 08:01 10883302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4962627000-7f4962826000 ---p 00016000 08:01 10883302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4962826000-7f4962827000 rw-p 00015000 08:01 10883302                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4962827000-7f496292f000 r-xp 00000000 08:01 10879076                   /lib/x86_64-linux-gnu/libm-2.23.so
7f496292f000-7f4962b2e000 ---p 00108000 08:01 10879076                   /lib/x86_64-linux-gnu/libm-2.23.so
7f4962b2e000-7f4962b2f000 r--p 00107000 08:01 10879076                   /lib/x86_64-linux-gnu/libm-2.23.so
7f4962b2f000-7f4962b30000 rw-p 00108000 08:01 10879076                   /lib/x86_64-linux-gnu/libm-2.23.so
7f4962b30000-7f4962ca2000 r-xp 00000000 08:01 11147872                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4962ca2000-7f4962ea2000 ---p 00172000 08:01 11147872                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4962ea2000-7f4962eac000 r--p 00172000 08:01 11147872                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4962eac000-7f4962eae000 rw-p 0017c000 08:01 11147872                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f4962eae000-7f4962eb2000 rw-p 00000000 00:00 0 
7f4962eb2000-7f4962eca000 r-xp 00000000 08:01 10879146                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4962eca000-7f49630c9000 ---p 00018000 08:01 10879146                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f49630c9000-7f49630ca000 r--p 00017000 08:01 10879146                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f49630ca000-7f49630cb000 rw-p 00018000 08:01 10879146                   /lib/x86_64-linux-gnu/libpthread-2.23.so
7f49630cb000-7f49630cf000 rw-p 00000000 00:00 0 
7f49630cf000-7f49630f5000 r-xp 00000000 08:01 10879084                   /lib/x86_64-linux-gnu/ld-2.23.so
7f49632c8000-7f49632ce000 rw-p 00000000 00:00 0 
7f49632f1000-7f49632f4000 rw-p 00000000 00:00 0 
7f49632f4000-7f49632f5000 r--p 00025000 08:01 10879084                   /lib/x86_64-linux-gnu/ld-2.23.so
7f49632f5000-7f49632f6000 rw-p 00026000 08:01 10879084                   /lib/x86_64-linux-gnu/ld-2.23.so
7f49632f6000-7f49632f7000 rw-p 00000000 00:00 0 
7ffc59353000-7ffc59375000 rw-p 00000000 00:00 0                          [stack]
7ffc593fb000-7ffc593fd000 r--p 00000000 00:00 0                          [vvar]
7ffc593fd000-7ffc593ff000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)
LD_LIBRARY_PATH=/home/vitvlkv/src/ThorsSerializer/build/lib: lldb test/coverage/unittest.app
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:341: recipe for target 'run_test' failed
make[2]: *** [run_test] Error 1
make[2]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'Serialize.dir' failed
make[1]: *** [Serialize.dir] Error 2
make[1]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'src.dir' failed
make: *** [src.dir] Error 2
vitvlkv@sakura:~/src/ThorsSerializer$ 
Loki-Astari commented 7 years ago

There should be no dynamic allocation happening in my code. So that would be dynamic allocation in the standard library (which I am sure is not buggy (unless you are using a non standard version)).

This means my code has a memory corruption issue. I can't replicate the problem.

Can you run the following commands for me:

cd src/Serialize
./test/coverage/unittest.app --gtest_filter=SerSetTest.deSerialize

Do you still get the error?

Does this run (slightly different to the above).

./test/coverage/unittest.app --gtest_filter=-SerSetTest.deSerialize
vlkv commented 7 years ago

Hi! I've tried both commands (with unittest.app) and they produced similar Error in./test/coverage/unittest.app': double free or corruption (out)`. I've done make clean, configure once again before that.

Then I've decided to clone sources with git once again. And the problem dissapeared. Here is the output:

vitvlkv@sakura:~/src/ThorsSerializer$ make 
Buiding src Start
make -C src build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[1]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src'
Buiding Serialize Start
make -C Serialize build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[2]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Objects for Testing and Coverage
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
flex JsonLexer.l                                                     OK
g++ -c YamlParser.cpp -DCOVERAGE_Serialize                           OK
g++ -c BinaryParser.cpp -DCOVERAGE_Serialize                         OK
g++ -c YamlPrinter.cpp -DCOVERAGE_Serialize                          OK
g++ -c JsonPrinter.cpp -DCOVERAGE_Serialize                          OK
g++ -c JsonLexer.lex.cpp -DCOVERAGE_Serialize                        OK
g++ -c JsonParser.cpp -DCOVERAGE_Serialize                           OK
g++ -c BinaryTHash.cpp -DCOVERAGE_Serialize                          OK
g++ -c Serialize.cpp -DCOVERAGE_Serialize                            OK
ar rv coverage/libobject.a                                           OK
Done
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Unit Tests
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize/test'
Building coverage
g++ -c YamlPrinterTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c YamlParserTest.cpp -DCOVERAGE_Serialize                       OK
g++ -c SerMemoryTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerSetTest.cpp -DCOVERAGE_Serialize                           OK
g++ -c SerVectorTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerDequeTest.cpp -DCOVERAGE_Serialize                         OK
g++ -c SerializeTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerUnorderedMultiSetTest.cpp -DCOVERAGE_Serialize             OK
g++ -c SerMapTest.cpp -DCOVERAGE_Serialize                           OK
g++ -c SerMultiMapTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c BinaryPrinterTest.cpp -DCOVERAGE_Serialize                    OK
g++ -c SerInitializerList.cpp -DCOVERAGE_Serialize                   OK
g++ -c SerTuppleTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c BinaryParserTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c StaticMemberTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c SerUnorderedSetTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c RoundTripTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c UnicodeIteratorTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c TemplateTypeTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c SerUnorderedMultiMap.cpp -DCOVERAGE_Serialize                 OK
g++ -c ParserInterfaceTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c SerListTest.cpp -DCOVERAGE_Serialize                          OK
g++ -c THashTest.cpp -DCOVERAGE_Serialize                            OK
g++ -c unittest.cpp -DCOVERAGE_Serialize                             OK
g++ -c SerUnorderedMapTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c JsonPrinterTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c SerializeEnum.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerMultiSetTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c JsonLexerTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerArrayTest.cpp -DCOVERAGE_Serialize                         OK
g++ -c JsonParserTest.cpp -DCOVERAGE_Serialize                       OK
g++ -o coverage/unittest.app -DCOVERAGE_Serialize                    OK
 Done Building coverage/unittest
Done
rm coverage/unittest.o
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize/test'
Running Unit Tests
LD_LIBRARY_PATH=/home/vitvlkv/src/ThorsSerializer/build/lib: test/coverage/unittest.app --gtest_filter=*
Running main() from gtest_main.cc
[==========] Running 119 tests from 27 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from SerSetTest
[ RUN      ] SerSetTest.serialize
[       OK ] SerSetTest.serialize (0 ms)
[ RUN      ] SerSetTest.deSerialize
[       OK ] SerSetTest.deSerialize (0 ms)
[----------] 2 tests from SerSetTest (0 ms total)

[----------] 3 tests from TemplateTypeTest
[ RUN      ] TemplateTypeTest.templateTest
[       OK ] TemplateTypeTest.templateTest (0 ms)
[ RUN      ] TemplateTypeTest.normalInheritingFromtemplateTest
[       OK ] TemplateTypeTest.normalInheritingFromtemplateTest (0 ms)
[ RUN      ] TemplateTypeTest.templateInheritingFromtemplateTest
[       OK ] TemplateTypeTest.templateInheritingFromtemplateTest (0 ms)
[----------] 3 tests from TemplateTypeTest (0 ms total)

[----------] 3 tests from SerVectorTest
[ RUN      ] SerVectorTest.ArrayEmpty
[       OK ] SerVectorTest.ArrayEmpty (0 ms)
[ RUN      ] SerVectorTest.VectorOfIntSerialize
[       OK ] SerVectorTest.VectorOfIntSerialize (0 ms)
[ RUN      ] SerVectorTest.VectorOfIntDeSerialize
[       OK ] SerVectorTest.VectorOfIntDeSerialize (0 ms)
[----------] 3 tests from SerVectorTest (0 ms total)

[----------] 3 tests from SerDequeTest
[ RUN      ] SerDequeTest.ArrayEmpty
[       OK ] SerDequeTest.ArrayEmpty (1 ms)
[ RUN      ] SerDequeTest.DequeOfIntSerialize
[       OK ] SerDequeTest.DequeOfIntSerialize (0 ms)
[ RUN      ] SerDequeTest.DequeOfIntDeSerialize
[       OK ] SerDequeTest.DequeOfIntDeSerialize (0 ms)
[----------] 3 tests from SerDequeTest (1 ms total)

[----------] 2 tests from SerUnorderedSetTest
[ RUN      ] SerUnorderedSetTest.serialize
[       OK ] SerUnorderedSetTest.serialize (0 ms)
[ RUN      ] SerUnorderedSetTest.deSerialize
[       OK ] SerUnorderedSetTest.deSerialize (0 ms)
[----------] 2 tests from SerUnorderedSetTest (0 ms total)

[----------] 4 tests from SerMultiMapTest
[ RUN      ] SerMultiMapTest.serialize
[       OK ] SerMultiMapTest.serialize (0 ms)
[ RUN      ] SerMultiMapTest.deSerialize
[       OK ] SerMultiMapTest.deSerialize (0 ms)
[ RUN      ] SerMultiMapTest.serializeStringKey
[       OK ] SerMultiMapTest.serializeStringKey (0 ms)
[ RUN      ] SerMultiMapTest.deSerializeStringKey
[       OK ] SerMultiMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SerMultiMapTest (0 ms total)

[----------] 2 tests from SerUnorderedMultisetTest
[ RUN      ] SerUnorderedMultisetTest.serialize
[       OK ] SerUnorderedMultisetTest.serialize (0 ms)
[ RUN      ] SerUnorderedMultisetTest.deSerialize
[       OK ] SerUnorderedMultisetTest.deSerialize (0 ms)
[----------] 2 tests from SerUnorderedMultisetTest (0 ms total)

[----------] 2 tests from SerTuppleTest
[ RUN      ] SerTuppleTest.serialize
[       OK ] SerTuppleTest.serialize (1 ms)
[ RUN      ] SerTuppleTest.deSerialize
[       OK ] SerTuppleTest.deSerialize (0 ms)
[----------] 2 tests from SerTuppleTest (1 ms total)

[----------] 4 tests from SerUnorderedMultiMapTest
[ RUN      ] SerUnorderedMultiMapTest.serialize
[       OK ] SerUnorderedMultiMapTest.serialize (0 ms)
[ RUN      ] SerUnorderedMultiMapTest.deSerialize
[       OK ] SerUnorderedMultiMapTest.deSerialize (0 ms)
[ RUN      ] SerUnorderedMultiMapTest.serializeStringKey
[       OK ] SerUnorderedMultiMapTest.serializeStringKey (0 ms)
[ RUN      ] SerUnorderedMultiMapTest.deSerializeStringKey
[       OK ] SerUnorderedMultiMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SerUnorderedMultiMapTest (0 ms total)

[----------] 12 tests from UnicodeIteratorTest
[ RUN      ] UnicodeIteratorTest.NormalCharacters
[       OK ] UnicodeIteratorTest.NormalCharacters (0 ms)
[ RUN      ] UnicodeIteratorTest.StandardEscape
[       OK ] UnicodeIteratorTest.StandardEscape (0 ms)
[ RUN      ] UnicodeIteratorTest.Unicode1Byte
[       OK ] UnicodeIteratorTest.Unicode1Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.Unicode2Byte
[       OK ] UnicodeIteratorTest.Unicode2Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.Unicode3Byte
[       OK ] UnicodeIteratorTest.Unicode3Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.UnicodeSurrogatePairs
[       OK ] UnicodeIteratorTest.UnicodeSurrogatePairs (0 ms)
[ RUN      ] UnicodeIteratorTest.PushNormalCharacters
[       OK ] UnicodeIteratorTest.PushNormalCharacters (0 ms)
[ RUN      ] UnicodeIteratorTest.PushStandardEscape
[       OK ] UnicodeIteratorTest.PushStandardEscape (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicode1Byte
[       OK ] UnicodeIteratorTest.PushUnicode1Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicode2Byte
[       OK ] UnicodeIteratorTest.PushUnicode2Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicode3Byte
[       OK ] UnicodeIteratorTest.PushUnicode3Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicodeSurrogatePairs
[       OK ] UnicodeIteratorTest.PushUnicodeSurrogatePairs (0 ms)
[----------] 12 tests from UnicodeIteratorTest (0 ms total)

[----------] 2 tests from SerMultisetTest
[ RUN      ] SerMultisetTest.serialize
[       OK ] SerMultisetTest.serialize (1 ms)
[ RUN      ] SerMultisetTest.deSerialize
[       OK ] SerMultisetTest.deSerialize (0 ms)
[----------] 2 tests from SerMultisetTest (1 ms total)

[----------] 3 tests from SerArrayTest
[ RUN      ] SerArrayTest.ArrayEmpty
[       OK ] SerArrayTest.ArrayEmpty (0 ms)
[ RUN      ] SerArrayTest.ArrayOfIntSerialize
[       OK ] SerArrayTest.ArrayOfIntSerialize (0 ms)
[ RUN      ] SerArrayTest.ArrayOfIntDeSerialize
[       OK ] SerArrayTest.ArrayOfIntDeSerialize (0 ms)
[----------] 3 tests from SerArrayTest (0 ms total)

[----------] 12 tests from JsonPrinterTest
[ RUN      ] JsonPrinterTest.ArrayTokens
[       OK ] JsonPrinterTest.ArrayTokens (0 ms)
[ RUN      ] JsonPrinterTest.MapTokens
[       OK ] JsonPrinterTest.MapTokens (0 ms)
[ RUN      ] JsonPrinterTest.ArrayValues
[       OK ] JsonPrinterTest.ArrayValues (0 ms)
[ RUN      ] JsonPrinterTest.MapValues
[       OK ] JsonPrinterTest.MapValues (0 ms)
[ RUN      ] JsonPrinterTest.MapWithMapValues
[       OK ] JsonPrinterTest.MapWithMapValues (0 ms)
[ RUN      ] JsonPrinterTest.MapWithArrayValues
[       OK ] JsonPrinterTest.MapWithArrayValues (0 ms)
[ RUN      ] JsonPrinterTest.ArrayWithMapValues
[       OK ] JsonPrinterTest.ArrayWithMapValues (0 ms)
[ RUN      ] JsonPrinterTest.ArrayWithArrayValues
[       OK ] JsonPrinterTest.ArrayWithArrayValues (1 ms)
[ RUN      ] JsonPrinterTest.CheckStreeamIsCompressed
[       OK ] JsonPrinterTest.CheckStreeamIsCompressed (0 ms)
[ RUN      ] JsonPrinterTest.CloseMapWithArray
[       OK ] JsonPrinterTest.CloseMapWithArray (0 ms)
[ RUN      ] JsonPrinterTest.CloseArrayWithMap
[       OK ] JsonPrinterTest.CloseArrayWithMap (0 ms)
[ RUN      ] JsonPrinterTest.PuttingKeyInArray
[       OK ] JsonPrinterTest.PuttingKeyInArray (0 ms)
[----------] 12 tests from JsonPrinterTest (1 ms total)

[----------] 4 tests from SerMapTest
[ RUN      ] SerMapTest.serialize
[       OK ] SerMapTest.serialize (0 ms)
[ RUN      ] SerMapTest.deSerialize
[       OK ] SerMapTest.deSerialize (0 ms)
[ RUN      ] SerMapTest.serializeStringKey
[       OK ] SerMapTest.serializeStringKey (0 ms)
[ RUN      ] SerMapTest.deSerializeStringKey
[       OK ] SerMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SerMapTest (0 ms total)

[----------] 2 tests from THashTest
[ RUN      ] THashTest.hashFundamental
[       OK ] THashTest.hashFundamental (0 ms)
[ RUN      ] THashTest.hashCompound
[       OK ] THashTest.hashCompound (0 ms)
[----------] 2 tests from THashTest (0 ms total)

[----------] 2 tests from SerMemoryTest
[ RUN      ] SerMemoryTest.serialize
[       OK ] SerMemoryTest.serialize (0 ms)
[ RUN      ] SerMemoryTest.deSerialize
[       OK ] SerMemoryTest.deSerialize (0 ms)
[----------] 2 tests from SerMemoryTest (0 ms total)

[----------] 1 test from SerInitializerListTest
[ RUN      ] SerInitializerListTest.InitListOfIntSerialize
[       OK ] SerInitializerListTest.InitListOfIntSerialize (0 ms)
[----------] 1 test from SerInitializerListTest (0 ms total)

[----------] 1 test from StaticMemberTest
[ RUN      ] StaticMemberTest.serializeStaticMember
[       OK ] StaticMemberTest.serializeStaticMember (1 ms)
[----------] 1 test from StaticMemberTest (1 ms total)

[----------] 4 tests from SetUnorderedMapTest
[ RUN      ] SetUnorderedMapTest.serialize
[       OK ] SetUnorderedMapTest.serialize (0 ms)
[ RUN      ] SetUnorderedMapTest.deSerialize
[       OK ] SetUnorderedMapTest.deSerialize (0 ms)
[ RUN      ] SetUnorderedMapTest.serializeStringKey
[       OK ] SetUnorderedMapTest.serializeStringKey (0 ms)
[ RUN      ] SetUnorderedMapTest.deSerializeStringKey
[       OK ] SetUnorderedMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SetUnorderedMapTest (0 ms total)

[----------] 3 tests from SerListTest
[ RUN      ] SerListTest.ArrayEmpty
[       OK ] SerListTest.ArrayEmpty (0 ms)
[ RUN      ] SerListTest.ListOfIntSerialize
[       OK ] SerListTest.ListOfIntSerialize (0 ms)
[ RUN      ] SerListTest.ListOfIntDeSerialize
[       OK ] SerListTest.ListOfIntDeSerialize (0 ms)
[----------] 3 tests from SerListTest (0 ms total)

[----------] 6 tests from SerializeTest
[ RUN      ] SerializeTest.SerializeStructureOfValue
[       OK ] SerializeTest.SerializeStructureOfValue (0 ms)
[ RUN      ] SerializeTest.DeSerializeStructureOfValue
[       OK ] SerializeTest.DeSerializeStructureOfValue (0 ms)
[ RUN      ] SerializeTest.SerializeStructureOfValueAndParents
[       OK ] SerializeTest.SerializeStructureOfValueAndParents (0 ms)
[ RUN      ] SerializeTest.DeSerializeStructureOfValueAndParent
[       OK ] SerializeTest.DeSerializeStructureOfValueAndParent (0 ms)
[ RUN      ] SerializeTest.SerializeStructureMemberOfValue
[       OK ] SerializeTest.SerializeStructureMemberOfValue (0 ms)
[ RUN      ] SerializeTest.DeSerializeStructureMemberOfValue
[       OK ] SerializeTest.DeSerializeStructureMemberOfValue (1 ms)
[----------] 6 tests from SerializeTest (1 ms total)

[----------] 4 tests from ParserInterfaceTest
[ RUN      ] ParserInterfaceTest.NormalNoPushBack
[       OK ] ParserInterfaceTest.NormalNoPushBack (0 ms)
[ RUN      ] ParserInterfaceTest.PushBackValue
[       OK ] ParserInterfaceTest.PushBackValue (0 ms)
[ RUN      ] ParserInterfaceTest.PushBackTwoValue
[       OK ] ParserInterfaceTest.PushBackTwoValue (0 ms)
[ RUN      ] ParserInterfaceTest.PushBackTwoValueWithReads
[       OK ] ParserInterfaceTest.PushBackTwoValueWithReads (0 ms)
[----------] 4 tests from ParserInterfaceTest (0 ms total)

[----------] 5 tests from SerializeEnum
[ RUN      ] SerializeEnum.RedGreenBlueAtRed
[       OK ] SerializeEnum.RedGreenBlueAtRed (0 ms)
[ RUN      ] SerializeEnum.RedGreenBlueAtGreen
[       OK ] SerializeEnum.RedGreenBlueAtGreen (0 ms)
[ RUN      ] SerializeEnum.RedGreenBlueAtBlue
[       OK ] SerializeEnum.RedGreenBlueAtBlue (0 ms)
[ RUN      ] SerializeEnum.SerEnumInContainer
[       OK ] SerializeEnum.SerEnumInContainer (0 ms)
[ RUN      ] SerializeEnum.DeSerEnumInContainer
[       OK ] SerializeEnum.DeSerEnumInContainer (0 ms)
[----------] 5 tests from SerializeEnum (0 ms total)

[----------] 3 tests from DeSerializeEnum
[ RUN      ] DeSerializeEnum.RefGreenBlueFromRed
[       OK ] DeSerializeEnum.RefGreenBlueFromRed (0 ms)
[ RUN      ] DeSerializeEnum.RefGreenBlueFromGreen
[       OK ] DeSerializeEnum.RefGreenBlueFromGreen (0 ms)
[ RUN      ] DeSerializeEnum.RefGreenBlueFromBlue
[       OK ] DeSerializeEnum.RefGreenBlueFromBlue (0 ms)
[----------] 3 tests from DeSerializeEnum (0 ms total)

[----------] 4 tests from RoundTripTest
[ RUN      ] RoundTripTest.JsonMap
[       OK ] RoundTripTest.JsonMap (0 ms)
[ RUN      ] RoundTripTest.JsonParent
[       OK ] RoundTripTest.JsonParent (1 ms)
[ RUN      ] RoundTripTest.JsonArray
[       OK ] RoundTripTest.JsonArray (0 ms)
[ RUN      ] RoundTripTest.JsonValue
[       OK ] RoundTripTest.JsonValue (0 ms)
[----------] 4 tests from RoundTripTest (1 ms total)

[----------] 23 tests from JsonParserTest
[ RUN      ] JsonParserTest.ArrayEmpty
[       OK ] JsonParserTest.ArrayEmpty (0 ms)
[ RUN      ] JsonParserTest.ArrayOneValue
[       OK ] JsonParserTest.ArrayOneValue (0 ms)
[ RUN      ] JsonParserTest.ArrayTwoValue
[       OK ] JsonParserTest.ArrayTwoValue (0 ms)
[ RUN      ] JsonParserTest.ArrayThreeValue
[       OK ] JsonParserTest.ArrayThreeValue (0 ms)
[ RUN      ] JsonParserTest.ArrayWithArray
[       OK ] JsonParserTest.ArrayWithArray (0 ms)
[ RUN      ] JsonParserTest.ArrayWithTwoArray
[       OK ] JsonParserTest.ArrayWithTwoArray (0 ms)
[ RUN      ] JsonParserTest.ArrayWithMap
[       OK ] JsonParserTest.ArrayWithMap (0 ms)
[ RUN      ] JsonParserTest.ArrayWithTwoMap
[       OK ] JsonParserTest.ArrayWithTwoMap (0 ms)
[ RUN      ] JsonParserTest.MapEmpty
[       OK ] JsonParserTest.MapEmpty (0 ms)
[ RUN      ] JsonParserTest.MapOneValue
[       OK ] JsonParserTest.MapOneValue (0 ms)
[ RUN      ] JsonParserTest.MapTwoValue
[       OK ] JsonParserTest.MapTwoValue (0 ms)
[ RUN      ] JsonParserTest.MapThreeValue
[       OK ] JsonParserTest.MapThreeValue (0 ms)
[ RUN      ] JsonParserTest.MapWithArray
[       OK ] JsonParserTest.MapWithArray (0 ms)
[ RUN      ] JsonParserTest.MapWithTwoArray
[       OK ] JsonParserTest.MapWithTwoArray (0 ms)
[ RUN      ] JsonParserTest.MapWithMap
[       OK ] JsonParserTest.MapWithMap (0 ms)
[ RUN      ] JsonParserTest.MapWithTwoMap
[       OK ] JsonParserTest.MapWithTwoMap (0 ms)
[ RUN      ] JsonParserTest.GetKeyValue
[       OK ] JsonParserTest.GetKeyValue (0 ms)
[ RUN      ] JsonParserTest.GetArrayValues
[       OK ] JsonParserTest.GetArrayValues (0 ms)
[ RUN      ] JsonParserTest.CheckErrorDoesNotRead
[       OK ] JsonParserTest.CheckErrorDoesNotRead (0 ms)
[ RUN      ] JsonParserTest.getDataFromString
[       OK ] JsonParserTest.getDataFromString (1 ms)
[ RUN      ] JsonParserTest.getDataFromInt
[       OK ] JsonParserTest.getDataFromInt (0 ms)
[ RUN      ] JsonParserTest.getDataFromFloat
[       OK ] JsonParserTest.getDataFromFloat (0 ms)
[ RUN      ] JsonParserTest.getDataFromBool
[       OK ] JsonParserTest.getDataFromBool (0 ms)
[----------] 23 tests from JsonParserTest (1 ms total)

[----------] 3 tests from JsonLexerTest
[ RUN      ] JsonLexerTest.ArrayTokens
[       OK ] JsonLexerTest.ArrayTokens (0 ms)
[ RUN      ] JsonLexerTest.MapTokens
[       OK ] JsonLexerTest.MapTokens (0 ms)
[ RUN      ] JsonLexerTest.ValueTokens
[       OK ] JsonLexerTest.ValueTokens (0 ms)
[----------] 3 tests from JsonLexerTest (0 ms total)

[----------] Global test environment tear-down
[==========] 119 tests from 27 test cases ran. (9 ms total)
[  PASSED  ] 119 tests.

make VERBOSE=NONE PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17 TARGET_MODE=coverage INSTALL_ACTIVE= report_coverage COVERAGE=

make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'

Generating Coverage for YamlParser.cpp
gcov --long-file-names --object-directory coverage YamlParser.cpp
sed: can't read YamlParser.cpp.gcov: No such file or directory
gcov coverage YamlParser.cpp                                         OK
Done
Generating Coverage for BinaryTHash.cpp
gcov --long-file-names --object-directory coverage BinaryTHash.cpp
gcov coverage BinaryTHash.cpp                                        OK
Done
Generating Coverage for Serialize.cpp
gcov --long-file-names --object-directory coverage Serialize.cpp
gcov coverage Serialize.cpp                                          OK
Done
Generating Coverage for BinaryParser.cpp
gcov --long-file-names --object-directory coverage BinaryParser.cpp
sed: can't read BinaryParser.cpp.gcov: No such file or directory
gcov coverage BinaryParser.cpp                                       OK
Done
Generating Coverage for JsonPrinter.cpp
gcov --long-file-names --object-directory coverage JsonPrinter.cpp
gcov coverage JsonPrinter.cpp                                        OK
Done
Generating Coverage for JsonParser.cpp
gcov --long-file-names --object-directory coverage JsonParser.cpp
gcov coverage JsonParser.cpp                                         OK
Done
Generating Coverage for YamlPrinter.cpp
gcov --long-file-names --object-directory coverage YamlPrinter.cpp
sed: can't read YamlPrinter.cpp.gcov: No such file or directory
gcov coverage YamlPrinter.cpp                                        OK
Done
Do Nothing
Do Nothing
Do Nothing
YamlParser.cpp                                                                  0%
BinaryTHash.cpp                                                                 100%
Serialize.cpp                                                                   100%
BinaryParser.cpp                                                                0%
JsonPrinter.cpp                                                                 100%
JsonParser.cpp                                                                  94%
YamlPrinter.cpp                                                                 0%
BinaryTHash.tpp                                                                 90%
BinaryParser.tpp                                                                0%
Serialize.tpp                                                                   95%
OK Code Coverage Passed
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Static Analysis
vera++ YamlParser.cpp                                                /bin/sh: 1: vera++: not found
ERROR
vera++ --profile thor --show-rule --error --std-report vera/YamlParser.cpp.vera.report YamlParser.cpp
===================================================
cat: vera/YamlParser.cpp.vera.report: No such file or directory
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:490: recipe for target 'vera/YamlParser.cpp.vera' failed
make[2]: *** [vera/YamlParser.cpp.vera] Error 1
make[2]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'Serialize.dir' failed
make[1]: *** [Serialize.dir] Error 2
make[1]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'src.dir' failed
make: *** [src.dir] Error 2
vitvlkv@sakura:~/src/ThorsSerializer$ git rev-parse HEAD
8d10776c7f46caa7d043d11f0a498c8afc1358b4

All the tests pass! So, I thought there could be some problem with make clean, it doesn't clean everything it should?.. And I have some new problem with vera++. The executable is there, but not in the PATH.

vlkv commented 7 years ago

--disable-vera seems to be not working flag...

vitvlkv@sakura:~/src/ThorsSerializer$ ./configure --disable-yaml --disable-binary --disable-vera --prefix=/usr/local
checking for wget... wget
checking for unzip... unzip
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
Submodule 'build' (https://github.com/Loki-Astari/ThorMaker.git) registered for path 'build'
Cloning into 'build'...
remote: Counting objects: 745, done.
remote: Total 745 (delta 0), reused 0 (delta 0), pack-reused 745
Receiving objects: 100% (745/745), 384.89 KiB | 527.00 KiB/s, done.
Resolving deltas: 100% (465/465), done.
Checking connectivity... done.
Submodule path 'build': checked out '4b8ea1d12bf083651692086c631bf00175fb69f8'
Submodule 'googletest' (https://github.com/google/googletest.git) registered for path 'googletest'
Submodule 'vera-plusplus' (https://github.com/Loki-Astari/vera-plusplus.git) registered for path 'vera-plusplus'
Cloning into 'googletest'...
remote: Counting objects: 7439, done.
remote: Total 7439 (delta 0), reused 0 (delta 0), pack-reused 7439
Receiving objects: 100% (7439/7439), 2.50 MiB | 1.18 MiB/s, done.
Resolving deltas: 100% (5526/5526), done.
Checking connectivity... done.
Submodule path 'googletest': checked out 'ed9d1e1ff92ce199de5ca2667a667cd0a368482a'
Cloning into 'vera-plusplus'...
remote: Counting objects: 2715, done.
remote: Total 2715 (delta 0), reused 0 (delta 0), pack-reused 2715
Receiving objects: 100% (2715/2715), 702.82 KiB | 415.00 KiB/s, done.
Resolving deltas: 100% (1841/1841), done.
Checking connectivity... done.
Submodule path 'vera-plusplus': checked out '526e6fba9ed8d7f99b74188ee670c819bc4f895c'
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Tclsh: /usr/bin/tclsh (found version "8.6") 
-- Found TCL: /usr/lib/x86_64-linux-gnu/libtcl.so  
-- Could NOT find TCLTK (missing:  TK_INCLUDE_PATH) 
-- Could NOT find TK (missing:  TK_INCLUDE_PATH) 
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2.0") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.0") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   program_options
--   regex
--   wave
--   python
--   serialization
--   thread
--   chrono
--   date_time
--   atomic
CMake Warning at doc/CMakeLists.txt:5 (message):
  The documentation won't be built because pandoc was not found.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/vitvlkv/src/ThorsSerializer/build/vera-plusplus/build
Scanning dependencies of target vera
[  3%] Building CXX object src/CMakeFiles/vera.dir/main.cpp.o
[  6%] Building CXX object src/CMakeFiles/vera.dir/plugins/Rules.cpp.o
[ 10%] Building CXX object src/CMakeFiles/vera.dir/plugins/tcl/TclInterpreter.cpp.o
[ 13%] Building CXX object src/CMakeFiles/vera.dir/plugins/tcl/cpptcl-1.1.4/cpptcl.cpp.o
[ 17%] Building CXX object src/CMakeFiles/vera.dir/plugins/Exclusions.cpp.o
[ 20%] Building CXX object src/CMakeFiles/vera.dir/plugins/lua/LuaInterpreter.cpp.o
[ 24%] Building CXX object src/CMakeFiles/vera.dir/plugins/Reports.cpp.o
[ 27%] Building CXX object src/CMakeFiles/vera.dir/plugins/Interpreter.cpp.o
[ 31%] Building CXX object src/CMakeFiles/vera.dir/plugins/RootDirectory.cpp.o
[ 34%] Building CXX object src/CMakeFiles/vera.dir/plugins/python/PythonInterpreter.cpp.o
[ 37%] Building CXX object src/CMakeFiles/vera.dir/plugins/Parameters.cpp.o
[ 41%] Building CXX object src/CMakeFiles/vera.dir/plugins/Transformations.cpp.o
[ 44%] Building CXX object src/CMakeFiles/vera.dir/plugins/Profiles.cpp.o
[ 48%] Building CXX object src/CMakeFiles/vera.dir/legacy_main.cpp.o
[ 51%] Building CXX object src/CMakeFiles/vera.dir/get_vera_root_default.cpp.o
[ 55%] Building CXX object src/CMakeFiles/vera.dir/structures/Tokens.cpp.o
[ 58%] Building CXX object src/CMakeFiles/vera.dir/structures/SourceLines.cpp.o
[ 62%] Building CXX object src/CMakeFiles/vera.dir/structures/SourceFiles.cpp.o
[ 65%] Building CXX object src/CMakeFiles/vera.dir/executable_path.cpp.o
[ 68%] Building CXX object src/CMakeFiles/vera.dir/boost_main.cpp.o
[ 72%] Linking CXX executable vera++
[ 72%] Built target vera
Scanning dependencies of target style_reports
[ 75%] Checking style with vera++ in src
[ 79%] Checking style with vera++ in src/plugins
[ 82%] Checking style with vera++ in src/plugins/lua
[ 86%] Checking style with vera++ in src/plugins/python
[ 89%] Checking style with vera++ in src/plugins/tcl
[ 93%] Checking style with vera++ in src/plugins/tcl/cpptcl-1.1.4
[ 96%] Checking style with vera++ in src/plugins/tcl/cpptcl-1.1.4/details
[100%] Checking style with vera++ in src/structures
[100%] Built target style_reports
[ 72%] Built target vera
[100%] Built target style_reports
Install the project...
-- Install configuration: ""
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/bin/vera++
-- Set runtime path of "/home/vitvlkv/src/ThorsSerializer/build/bin/vera++" to ""
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T011.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T009.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T018.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T015.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L006.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/M002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T010.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T008B.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T005.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/DUMP.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/M003.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T008.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T012.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L003.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T008A.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T019.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T009A.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T003.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T016.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L004.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/Doc
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T006.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T007.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T004.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/M001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/L005.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/F001.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T014.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T013.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/F002.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/rules/T017.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/move_macros.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/to_xml.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/move_includes.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/to_lower.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/trim_right.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/to_xml2.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/move_namespace.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/transformations/fullblock.tcl
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/full
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/thor
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/moz
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/default
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/profiles/boost
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/vera++-config-version.cmake
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/vera++-config.cmake
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/use_vera++.cmake
-- Installing: /home/vitvlkv/src/ThorsSerializer/build/lib/vera++/test_wrapper.cmake.in
~/src/ThorsSerializer/build/third ~/src/ThorsSerializer
~/src/ThorsSerializer/build/googletest/googletest ~/src/ThorsSerializer/build/third
ar: creating libgtest.a
a - gtest-all.o
a - gtest_main.o
~/src/ThorsSerializer/build/third
Installing google test
~/src/ThorsSerializer/build ~/src/ThorsSerializer/build/third
~/src/ThorsSerializer/build/third
~/src/ThorsSerializer
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether C compiler accepts -ansi... yes
checking whether C++ compiler accepts -std=c++11... yes
checking whether C++ compiler accepts -std=c++14... yes
checking whether C++ compiler accepts -std=c++17... yes
checking whether C++ compiler accepts -std=c++1x... no
checking whether C++ compiler accepts -std=c++1y... yes
checking whether C++ compiler accepts -std=c++1z... yes
checking Checking Compiler Compatibility g++ -std=c++17... good
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile.extra
config.status: creating Makefile.config
config.status: creating src/Serialize/SerializeConfig.h
config.status: creating src/BinaryRep/BinaryRepConfig.h
config.status: executing libtool commands
config.status: executing depfiles commands
vitvlkv@sakura:~/src/ThorsSerializer$ make 
Buiding src Start
make -C src build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[1]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src'
Buiding Serialize Start
make -C Serialize build PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17
make[2]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Objects for Testing and Coverage
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
flex JsonLexer.l                                                     OK
g++ -c YamlParser.cpp -DCOVERAGE_Serialize                           OK
g++ -c BinaryParser.cpp -DCOVERAGE_Serialize                         OK
g++ -c YamlPrinter.cpp -DCOVERAGE_Serialize                          OK
g++ -c JsonPrinter.cpp -DCOVERAGE_Serialize                          OK
g++ -c JsonLexer.lex.cpp -DCOVERAGE_Serialize                        OK
g++ -c JsonParser.cpp -DCOVERAGE_Serialize                           OK
g++ -c BinaryTHash.cpp -DCOVERAGE_Serialize                          OK
g++ -c Serialize.cpp -DCOVERAGE_Serialize                            OK
ar rv coverage/libobject.a                                           OK
Done
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Building Unit Tests
make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize/test'
Building coverage
g++ -c YamlPrinterTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c YamlParserTest.cpp -DCOVERAGE_Serialize                       OK
g++ -c SerMemoryTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerSetTest.cpp -DCOVERAGE_Serialize                           OK
g++ -c SerVectorTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerDequeTest.cpp -DCOVERAGE_Serialize                         OK
g++ -c SerializeTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerUnorderedMultiSetTest.cpp -DCOVERAGE_Serialize             OK
g++ -c SerMapTest.cpp -DCOVERAGE_Serialize                           OK
g++ -c SerMultiMapTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c BinaryPrinterTest.cpp -DCOVERAGE_Serialize                    OK
g++ -c SerInitializerList.cpp -DCOVERAGE_Serialize                   OK
g++ -c SerTuppleTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c BinaryParserTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c StaticMemberTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c SerUnorderedSetTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c RoundTripTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c UnicodeIteratorTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c TemplateTypeTest.cpp -DCOVERAGE_Serialize                     OK
g++ -c SerUnorderedMultiMap.cpp -DCOVERAGE_Serialize                 OK
g++ -c ParserInterfaceTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c SerListTest.cpp -DCOVERAGE_Serialize                          OK
g++ -c THashTest.cpp -DCOVERAGE_Serialize                            OK
g++ -c unittest.cpp -DCOVERAGE_Serialize                             OK
g++ -c SerUnorderedMapTest.cpp -DCOVERAGE_Serialize                  OK
g++ -c JsonPrinterTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c SerializeEnum.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerMultiSetTest.cpp -DCOVERAGE_Serialize                      OK
g++ -c JsonLexerTest.cpp -DCOVERAGE_Serialize                        OK
g++ -c SerArrayTest.cpp -DCOVERAGE_Serialize                         OK
g++ -c JsonParserTest.cpp -DCOVERAGE_Serialize                       OK
g++ -o coverage/unittest.app -DCOVERAGE_Serialize                    OK
 Done Building coverage/unittest
Done
rm coverage/unittest.o
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize/test'
Running Unit Tests
LD_LIBRARY_PATH=/home/vitvlkv/src/ThorsSerializer/build/lib: test/coverage/unittest.app --gtest_filter=*
Running main() from gtest_main.cc
[==========] Running 119 tests from 27 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from SerSetTest
[ RUN      ] SerSetTest.serialize
[       OK ] SerSetTest.serialize (0 ms)
[ RUN      ] SerSetTest.deSerialize
[       OK ] SerSetTest.deSerialize (0 ms)
[----------] 2 tests from SerSetTest (0 ms total)

[----------] 3 tests from TemplateTypeTest
[ RUN      ] TemplateTypeTest.templateTest
[       OK ] TemplateTypeTest.templateTest (0 ms)
[ RUN      ] TemplateTypeTest.normalInheritingFromtemplateTest
[       OK ] TemplateTypeTest.normalInheritingFromtemplateTest (0 ms)
[ RUN      ] TemplateTypeTest.templateInheritingFromtemplateTest
[       OK ] TemplateTypeTest.templateInheritingFromtemplateTest (1 ms)
[----------] 3 tests from TemplateTypeTest (1 ms total)

[----------] 3 tests from SerVectorTest
[ RUN      ] SerVectorTest.ArrayEmpty
[       OK ] SerVectorTest.ArrayEmpty (0 ms)
[ RUN      ] SerVectorTest.VectorOfIntSerialize
[       OK ] SerVectorTest.VectorOfIntSerialize (0 ms)
[ RUN      ] SerVectorTest.VectorOfIntDeSerialize
[       OK ] SerVectorTest.VectorOfIntDeSerialize (0 ms)
[----------] 3 tests from SerVectorTest (0 ms total)

[----------] 3 tests from SerDequeTest
[ RUN      ] SerDequeTest.ArrayEmpty
[       OK ] SerDequeTest.ArrayEmpty (0 ms)
[ RUN      ] SerDequeTest.DequeOfIntSerialize
[       OK ] SerDequeTest.DequeOfIntSerialize (0 ms)
[ RUN      ] SerDequeTest.DequeOfIntDeSerialize
[       OK ] SerDequeTest.DequeOfIntDeSerialize (0 ms)
[----------] 3 tests from SerDequeTest (0 ms total)

[----------] 2 tests from SerUnorderedSetTest
[ RUN      ] SerUnorderedSetTest.serialize
[       OK ] SerUnorderedSetTest.serialize (0 ms)
[ RUN      ] SerUnorderedSetTest.deSerialize
[       OK ] SerUnorderedSetTest.deSerialize (0 ms)
[----------] 2 tests from SerUnorderedSetTest (0 ms total)

[----------] 4 tests from SerMultiMapTest
[ RUN      ] SerMultiMapTest.serialize
[       OK ] SerMultiMapTest.serialize (0 ms)
[ RUN      ] SerMultiMapTest.deSerialize
[       OK ] SerMultiMapTest.deSerialize (1 ms)
[ RUN      ] SerMultiMapTest.serializeStringKey
[       OK ] SerMultiMapTest.serializeStringKey (0 ms)
[ RUN      ] SerMultiMapTest.deSerializeStringKey
[       OK ] SerMultiMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SerMultiMapTest (1 ms total)

[----------] 2 tests from SerUnorderedMultisetTest
[ RUN      ] SerUnorderedMultisetTest.serialize
[       OK ] SerUnorderedMultisetTest.serialize (0 ms)
[ RUN      ] SerUnorderedMultisetTest.deSerialize
[       OK ] SerUnorderedMultisetTest.deSerialize (0 ms)
[----------] 2 tests from SerUnorderedMultisetTest (0 ms total)

[----------] 2 tests from SerTuppleTest
[ RUN      ] SerTuppleTest.serialize
[       OK ] SerTuppleTest.serialize (0 ms)
[ RUN      ] SerTuppleTest.deSerialize
[       OK ] SerTuppleTest.deSerialize (0 ms)
[----------] 2 tests from SerTuppleTest (0 ms total)

[----------] 4 tests from SerUnorderedMultiMapTest
[ RUN      ] SerUnorderedMultiMapTest.serialize
[       OK ] SerUnorderedMultiMapTest.serialize (0 ms)
[ RUN      ] SerUnorderedMultiMapTest.deSerialize
[       OK ] SerUnorderedMultiMapTest.deSerialize (1 ms)
[ RUN      ] SerUnorderedMultiMapTest.serializeStringKey
[       OK ] SerUnorderedMultiMapTest.serializeStringKey (0 ms)
[ RUN      ] SerUnorderedMultiMapTest.deSerializeStringKey
[       OK ] SerUnorderedMultiMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SerUnorderedMultiMapTest (1 ms total)

[----------] 12 tests from UnicodeIteratorTest
[ RUN      ] UnicodeIteratorTest.NormalCharacters
[       OK ] UnicodeIteratorTest.NormalCharacters (0 ms)
[ RUN      ] UnicodeIteratorTest.StandardEscape
[       OK ] UnicodeIteratorTest.StandardEscape (0 ms)
[ RUN      ] UnicodeIteratorTest.Unicode1Byte
[       OK ] UnicodeIteratorTest.Unicode1Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.Unicode2Byte
[       OK ] UnicodeIteratorTest.Unicode2Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.Unicode3Byte
[       OK ] UnicodeIteratorTest.Unicode3Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.UnicodeSurrogatePairs
[       OK ] UnicodeIteratorTest.UnicodeSurrogatePairs (0 ms)
[ RUN      ] UnicodeIteratorTest.PushNormalCharacters
[       OK ] UnicodeIteratorTest.PushNormalCharacters (0 ms)
[ RUN      ] UnicodeIteratorTest.PushStandardEscape
[       OK ] UnicodeIteratorTest.PushStandardEscape (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicode1Byte
[       OK ] UnicodeIteratorTest.PushUnicode1Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicode2Byte
[       OK ] UnicodeIteratorTest.PushUnicode2Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicode3Byte
[       OK ] UnicodeIteratorTest.PushUnicode3Byte (0 ms)
[ RUN      ] UnicodeIteratorTest.PushUnicodeSurrogatePairs
[       OK ] UnicodeIteratorTest.PushUnicodeSurrogatePairs (0 ms)
[----------] 12 tests from UnicodeIteratorTest (0 ms total)

[----------] 2 tests from SerMultisetTest
[ RUN      ] SerMultisetTest.serialize
[       OK ] SerMultisetTest.serialize (0 ms)
[ RUN      ] SerMultisetTest.deSerialize
[       OK ] SerMultisetTest.deSerialize (0 ms)
[----------] 2 tests from SerMultisetTest (1 ms total)

[----------] 3 tests from SerArrayTest
[ RUN      ] SerArrayTest.ArrayEmpty
[       OK ] SerArrayTest.ArrayEmpty (0 ms)
[ RUN      ] SerArrayTest.ArrayOfIntSerialize
[       OK ] SerArrayTest.ArrayOfIntSerialize (0 ms)
[ RUN      ] SerArrayTest.ArrayOfIntDeSerialize
[       OK ] SerArrayTest.ArrayOfIntDeSerialize (0 ms)
[----------] 3 tests from SerArrayTest (0 ms total)

[----------] 12 tests from JsonPrinterTest
[ RUN      ] JsonPrinterTest.ArrayTokens
[       OK ] JsonPrinterTest.ArrayTokens (0 ms)
[ RUN      ] JsonPrinterTest.MapTokens
[       OK ] JsonPrinterTest.MapTokens (0 ms)
[ RUN      ] JsonPrinterTest.ArrayValues
[       OK ] JsonPrinterTest.ArrayValues (0 ms)
[ RUN      ] JsonPrinterTest.MapValues
[       OK ] JsonPrinterTest.MapValues (0 ms)
[ RUN      ] JsonPrinterTest.MapWithMapValues
[       OK ] JsonPrinterTest.MapWithMapValues (0 ms)
[ RUN      ] JsonPrinterTest.MapWithArrayValues
[       OK ] JsonPrinterTest.MapWithArrayValues (0 ms)
[ RUN      ] JsonPrinterTest.ArrayWithMapValues
[       OK ] JsonPrinterTest.ArrayWithMapValues (0 ms)
[ RUN      ] JsonPrinterTest.ArrayWithArrayValues
[       OK ] JsonPrinterTest.ArrayWithArrayValues (0 ms)
[ RUN      ] JsonPrinterTest.CheckStreeamIsCompressed
[       OK ] JsonPrinterTest.CheckStreeamIsCompressed (0 ms)
[ RUN      ] JsonPrinterTest.CloseMapWithArray
[       OK ] JsonPrinterTest.CloseMapWithArray (0 ms)
[ RUN      ] JsonPrinterTest.CloseArrayWithMap
[       OK ] JsonPrinterTest.CloseArrayWithMap (0 ms)
[ RUN      ] JsonPrinterTest.PuttingKeyInArray
[       OK ] JsonPrinterTest.PuttingKeyInArray (0 ms)
[----------] 12 tests from JsonPrinterTest (0 ms total)

[----------] 4 tests from SerMapTest
[ RUN      ] SerMapTest.serialize
[       OK ] SerMapTest.serialize (0 ms)
[ RUN      ] SerMapTest.deSerialize
[       OK ] SerMapTest.deSerialize (0 ms)
[ RUN      ] SerMapTest.serializeStringKey
[       OK ] SerMapTest.serializeStringKey (0 ms)
[ RUN      ] SerMapTest.deSerializeStringKey
[       OK ] SerMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SerMapTest (1 ms total)

[----------] 2 tests from THashTest
[ RUN      ] THashTest.hashFundamental
[       OK ] THashTest.hashFundamental (0 ms)
[ RUN      ] THashTest.hashCompound
[       OK ] THashTest.hashCompound (0 ms)
[----------] 2 tests from THashTest (0 ms total)

[----------] 2 tests from SerMemoryTest
[ RUN      ] SerMemoryTest.serialize
[       OK ] SerMemoryTest.serialize (0 ms)
[ RUN      ] SerMemoryTest.deSerialize
[       OK ] SerMemoryTest.deSerialize (0 ms)
[----------] 2 tests from SerMemoryTest (0 ms total)

[----------] 1 test from SerInitializerListTest
[ RUN      ] SerInitializerListTest.InitListOfIntSerialize
[       OK ] SerInitializerListTest.InitListOfIntSerialize (0 ms)
[----------] 1 test from SerInitializerListTest (0 ms total)

[----------] 1 test from StaticMemberTest
[ RUN      ] StaticMemberTest.serializeStaticMember
[       OK ] StaticMemberTest.serializeStaticMember (0 ms)
[----------] 1 test from StaticMemberTest (0 ms total)

[----------] 4 tests from SetUnorderedMapTest
[ RUN      ] SetUnorderedMapTest.serialize
[       OK ] SetUnorderedMapTest.serialize (1 ms)
[ RUN      ] SetUnorderedMapTest.deSerialize
[       OK ] SetUnorderedMapTest.deSerialize (0 ms)
[ RUN      ] SetUnorderedMapTest.serializeStringKey
[       OK ] SetUnorderedMapTest.serializeStringKey (0 ms)
[ RUN      ] SetUnorderedMapTest.deSerializeStringKey
[       OK ] SetUnorderedMapTest.deSerializeStringKey (0 ms)
[----------] 4 tests from SetUnorderedMapTest (1 ms total)

[----------] 3 tests from SerListTest
[ RUN      ] SerListTest.ArrayEmpty
[       OK ] SerListTest.ArrayEmpty (0 ms)
[ RUN      ] SerListTest.ListOfIntSerialize
[       OK ] SerListTest.ListOfIntSerialize (0 ms)
[ RUN      ] SerListTest.ListOfIntDeSerialize
[       OK ] SerListTest.ListOfIntDeSerialize (0 ms)
[----------] 3 tests from SerListTest (0 ms total)

[----------] 6 tests from SerializeTest
[ RUN      ] SerializeTest.SerializeStructureOfValue
[       OK ] SerializeTest.SerializeStructureOfValue (0 ms)
[ RUN      ] SerializeTest.DeSerializeStructureOfValue
[       OK ] SerializeTest.DeSerializeStructureOfValue (0 ms)
[ RUN      ] SerializeTest.SerializeStructureOfValueAndParents
[       OK ] SerializeTest.SerializeStructureOfValueAndParents (0 ms)
[ RUN      ] SerializeTest.DeSerializeStructureOfValueAndParent
[       OK ] SerializeTest.DeSerializeStructureOfValueAndParent (0 ms)
[ RUN      ] SerializeTest.SerializeStructureMemberOfValue
[       OK ] SerializeTest.SerializeStructureMemberOfValue (1 ms)
[ RUN      ] SerializeTest.DeSerializeStructureMemberOfValue
[       OK ] SerializeTest.DeSerializeStructureMemberOfValue (0 ms)
[----------] 6 tests from SerializeTest (1 ms total)

[----------] 4 tests from ParserInterfaceTest
[ RUN      ] ParserInterfaceTest.NormalNoPushBack
[       OK ] ParserInterfaceTest.NormalNoPushBack (0 ms)
[ RUN      ] ParserInterfaceTest.PushBackValue
[       OK ] ParserInterfaceTest.PushBackValue (0 ms)
[ RUN      ] ParserInterfaceTest.PushBackTwoValue
[       OK ] ParserInterfaceTest.PushBackTwoValue (0 ms)
[ RUN      ] ParserInterfaceTest.PushBackTwoValueWithReads
[       OK ] ParserInterfaceTest.PushBackTwoValueWithReads (0 ms)
[----------] 4 tests from ParserInterfaceTest (0 ms total)

[----------] 5 tests from SerializeEnum
[ RUN      ] SerializeEnum.RedGreenBlueAtRed
[       OK ] SerializeEnum.RedGreenBlueAtRed (0 ms)
[ RUN      ] SerializeEnum.RedGreenBlueAtGreen
[       OK ] SerializeEnum.RedGreenBlueAtGreen (0 ms)
[ RUN      ] SerializeEnum.RedGreenBlueAtBlue
[       OK ] SerializeEnum.RedGreenBlueAtBlue (0 ms)
[ RUN      ] SerializeEnum.SerEnumInContainer
[       OK ] SerializeEnum.SerEnumInContainer (0 ms)
[ RUN      ] SerializeEnum.DeSerEnumInContainer
[       OK ] SerializeEnum.DeSerEnumInContainer (0 ms)
[----------] 5 tests from SerializeEnum (0 ms total)

[----------] 3 tests from DeSerializeEnum
[ RUN      ] DeSerializeEnum.RefGreenBlueFromRed
[       OK ] DeSerializeEnum.RefGreenBlueFromRed (0 ms)
[ RUN      ] DeSerializeEnum.RefGreenBlueFromGreen
[       OK ] DeSerializeEnum.RefGreenBlueFromGreen (0 ms)
[ RUN      ] DeSerializeEnum.RefGreenBlueFromBlue
[       OK ] DeSerializeEnum.RefGreenBlueFromBlue (0 ms)
[----------] 3 tests from DeSerializeEnum (0 ms total)

[----------] 4 tests from RoundTripTest
[ RUN      ] RoundTripTest.JsonMap
[       OK ] RoundTripTest.JsonMap (0 ms)
[ RUN      ] RoundTripTest.JsonParent
[       OK ] RoundTripTest.JsonParent (0 ms)
[ RUN      ] RoundTripTest.JsonArray
[       OK ] RoundTripTest.JsonArray (1 ms)
[ RUN      ] RoundTripTest.JsonValue
[       OK ] RoundTripTest.JsonValue (0 ms)
[----------] 4 tests from RoundTripTest (1 ms total)

[----------] 23 tests from JsonParserTest
[ RUN      ] JsonParserTest.ArrayEmpty
[       OK ] JsonParserTest.ArrayEmpty (0 ms)
[ RUN      ] JsonParserTest.ArrayOneValue
[       OK ] JsonParserTest.ArrayOneValue (0 ms)
[ RUN      ] JsonParserTest.ArrayTwoValue
[       OK ] JsonParserTest.ArrayTwoValue (0 ms)
[ RUN      ] JsonParserTest.ArrayThreeValue
[       OK ] JsonParserTest.ArrayThreeValue (0 ms)
[ RUN      ] JsonParserTest.ArrayWithArray
[       OK ] JsonParserTest.ArrayWithArray (0 ms)
[ RUN      ] JsonParserTest.ArrayWithTwoArray
[       OK ] JsonParserTest.ArrayWithTwoArray (0 ms)
[ RUN      ] JsonParserTest.ArrayWithMap
[       OK ] JsonParserTest.ArrayWithMap (0 ms)
[ RUN      ] JsonParserTest.ArrayWithTwoMap
[       OK ] JsonParserTest.ArrayWithTwoMap (0 ms)
[ RUN      ] JsonParserTest.MapEmpty
[       OK ] JsonParserTest.MapEmpty (0 ms)
[ RUN      ] JsonParserTest.MapOneValue
[       OK ] JsonParserTest.MapOneValue (0 ms)
[ RUN      ] JsonParserTest.MapTwoValue
[       OK ] JsonParserTest.MapTwoValue (0 ms)
[ RUN      ] JsonParserTest.MapThreeValue
[       OK ] JsonParserTest.MapThreeValue (0 ms)
[ RUN      ] JsonParserTest.MapWithArray
[       OK ] JsonParserTest.MapWithArray (0 ms)
[ RUN      ] JsonParserTest.MapWithTwoArray
[       OK ] JsonParserTest.MapWithTwoArray (0 ms)
[ RUN      ] JsonParserTest.MapWithMap
[       OK ] JsonParserTest.MapWithMap (0 ms)
[ RUN      ] JsonParserTest.MapWithTwoMap
[       OK ] JsonParserTest.MapWithTwoMap (0 ms)
[ RUN      ] JsonParserTest.GetKeyValue
[       OK ] JsonParserTest.GetKeyValue (0 ms)
[ RUN      ] JsonParserTest.GetArrayValues
[       OK ] JsonParserTest.GetArrayValues (0 ms)
[ RUN      ] JsonParserTest.CheckErrorDoesNotRead
[       OK ] JsonParserTest.CheckErrorDoesNotRead (0 ms)
[ RUN      ] JsonParserTest.getDataFromString
[       OK ] JsonParserTest.getDataFromString (0 ms)
[ RUN      ] JsonParserTest.getDataFromInt
[       OK ] JsonParserTest.getDataFromInt (1 ms)
[ RUN      ] JsonParserTest.getDataFromFloat
[       OK ] JsonParserTest.getDataFromFloat (0 ms)
[ RUN      ] JsonParserTest.getDataFromBool
[       OK ] JsonParserTest.getDataFromBool (0 ms)
[----------] 23 tests from JsonParserTest (1 ms total)

[----------] 3 tests from JsonLexerTest
[ RUN      ] JsonLexerTest.ArrayTokens
[       OK ] JsonLexerTest.ArrayTokens (0 ms)
[ RUN      ] JsonLexerTest.MapTokens
[       OK ] JsonLexerTest.MapTokens (0 ms)
[ RUN      ] JsonLexerTest.ValueTokens
[       OK ] JsonLexerTest.ValueTokens (0 ms)
[----------] 3 tests from JsonLexerTest (0 ms total)

[----------] Global test environment tear-down
[==========] 119 tests from 27 test cases ran. (9 ms total)
[  PASSED  ] 119 tests.

make VERBOSE=NONE PREFIX=/home/vitvlkv/src/ThorsSerializer/build CXXSTDVER=17 TARGET_MODE=coverage INSTALL_ACTIVE= report_coverage COVERAGE=

make[3]: Entering directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'

Generating Coverage for YamlParser.cpp
gcov --long-file-names --object-directory coverage YamlParser.cpp
sed: can't read YamlParser.cpp.gcov: No such file or directory
gcov coverage YamlParser.cpp                                         OK
Done
Generating Coverage for BinaryTHash.cpp
gcov --long-file-names --object-directory coverage BinaryTHash.cpp
gcov coverage BinaryTHash.cpp                                        OK
Done
Generating Coverage for Serialize.cpp
gcov --long-file-names --object-directory coverage Serialize.cpp
gcov coverage Serialize.cpp                                          OK
Done
Generating Coverage for BinaryParser.cpp
gcov --long-file-names --object-directory coverage BinaryParser.cpp
sed: can't read BinaryParser.cpp.gcov: No such file or directory
gcov coverage BinaryParser.cpp                                       OK
Done
Generating Coverage for JsonPrinter.cpp
gcov --long-file-names --object-directory coverage JsonPrinter.cpp
gcov coverage JsonPrinter.cpp                                        OK
Done
Generating Coverage for JsonParser.cpp
gcov --long-file-names --object-directory coverage JsonParser.cpp
gcov coverage JsonParser.cpp                                         OK
Done
Generating Coverage for YamlPrinter.cpp
gcov --long-file-names --object-directory coverage YamlPrinter.cpp
sed: can't read YamlPrinter.cpp.gcov: No such file or directory
gcov coverage YamlPrinter.cpp                                        OK
Done
Do Nothing
Do Nothing
Do Nothing
YamlParser.cpp                                                                  0%
BinaryTHash.cpp                                                                 100%
Serialize.cpp                                                                   100%
BinaryParser.cpp                                                                0%
JsonPrinter.cpp                                                                 100%
JsonParser.cpp                                                                  94%
YamlPrinter.cpp                                                                 0%
BinaryTHash.tpp                                                                 90%
BinaryParser.tpp                                                                0%
Serialize.tpp                                                                   95%
OK Code Coverage Passed
make[3]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
Static Analysis
vera++ YamlParser.cpp                                                /bin/sh: 1: vera++: not found
ERROR
vera++ --profile thor --show-rule --error --std-report vera/YamlParser.cpp.vera.report YamlParser.cpp
===================================================
cat: vera/YamlParser.cpp.vera.report: No such file or directory
/home/vitvlkv/src/ThorsSerializer/build/tools/Makefile:490: recipe for target 'vera/YamlParser.cpp.vera' failed
make[2]: *** [vera/YamlParser.cpp.vera] Error 1
make[2]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src/Serialize'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'Serialize.dir' failed
make[1]: *** [Serialize.dir] Error 2
make[1]: Leaving directory '/home/vitvlkv/src/ThorsSerializer/src'
/home/vitvlkv/src/ThorsSerializer/build/tools/Project.Makefile:33: recipe for target 'src.dir' failed
make: *** [src.dir] Error 2
vlkv commented 7 years ago

Hi! Can you suggest something about the most recent problem with vera++ ?.. For me as library user, I'd like to have an ability to disable it. Because library is built and all tests passed. But this error makes make to exit and installation is not performed.

Loki-Astari commented 7 years ago

You can override the vera++ command.

Try:

VERA=echo make

I will try and get some time to make the --disable-vera work and make sure that the path is set correctly. So that vera++ runs automatically. Sorry for the inconvenience.

Loki-Astari commented 7 years ago

The latest build should now pick up vera++ correctly. Also the --disable-vera flag on configuration will disable the use of vera++

vlkv commented 7 years ago

Thanks a lot for your work, and support! )))

Loki-Astari commented 7 years ago

No problem. Thanks for looking at the code and finding the bugs. Sorry about taking so long to fix.

Loki.