fileio Debian g++

Build 598c1618fd0ca4e534dcf78cc21388ab935fd6bf on Debian using g++ at 2022-03-03 17:28
gem install edicta specificjson
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.2.0") 
-- TIFF supported.
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37") 
-- PNG supported.
-- Configuring done
-- Generating done
-- Build files have been written to: /workspace/build
Scanning dependencies of target split2planes_io
Scanning dependencies of target writegltf_io
[  4%] Generating split2planes_io.pspec
[  4%] Generating writegltf_io.pspec
[  6%] Generating writegltf_io.cpp, writegltf_io.hpp
[  8%] Generating split2planes_io.cpp, split2planes_io.hpp
writegltf_io: WriteglTFIn Exception ParseInteger ValueParser Float String UInt32 ParserPool ParseArrayContainer ParseObject ContainerStdVector ContainerStdVectorEqSize StdVector writeBool writeScalarType writeInt16 writeInt32 writeInt64 writeInt8 writeString writeUInt16 writeUInt32 writeUInt64 writeUInt8 writeDouble writeFloat writePointer writeForwardIterator writeStdVector
  Header: writegltf_io.hpp, source: writegltf_io.cpp
split2planes_io: Split2PlanesIn Exception ValueParser Float String ParserPool ParseArrayContainer ParseObject ContainerStdVector ContainerStdVectorEqSize StdVector writeBool writeScalarType writeInt16 writeInt32 writeInt64 writeInt8 writeString writeUInt16 writeUInt32 writeUInt64 writeUInt8 writeDouble writeFloat writePointer writeForwardIterator writeStdVector
  Header: split2planes_io.hpp, source: split2planes_io.cpp
[  8%] Built target writegltf_io
[  8%] Built target split2planes_io
Scanning dependencies of target writecollada_io
Scanning dependencies of target writeglb_io
[ 10%] Generating writecollada_io.pspec
[ 12%] Generating writeglb_io.pspec
[ 14%] Generating writecollada_io.cpp, writecollada_io.hpp
[ 16%] Generating writeglb_io.cpp, writeglb_io.hpp
writecollada_io: WriteColladaIn Exception ParseInteger ValueParser Float String UInt32 ParserPool ParseArrayContainer ParseObject ContainerStdVector ContainerStdVectorEqSize StdVector writeBool writeScalarType writeInt16 writeInt32 writeInt64 writeInt8 writeString writeUInt16 writeUInt32 writeUInt64 writeUInt8 writeDouble writeFloat writePointer writeForwardIterator writeStdVector
  Header: writecollada_io.hpp, source: writecollada_io.cpp
[ 16%] Built target writecollada_io
writeglb_io: WriteGLBIn Exception ParseInteger ValueParser Float String UInt32 ParserPool ParseArrayContainer ParseObject ContainerStdVector ContainerStdVectorEqSize StdVector writeBool writeScalarType writeInt16 writeInt32 writeInt64 writeInt8 writeString writeUInt16 writeUInt32 writeUInt64 writeUInt8 writeDouble writeFloat writePointer writeForwardIterator writeStdVector
  Header: writeglb_io.hpp, source: writeglb_io.cpp
Scanning dependencies of target writeimage_io
[ 18%] Generating writeimage_io.pspec
[ 18%] Built target writeglb_io
Scanning dependencies of target readimage_io
[ 20%] Generating readimage_io.pspec
[ 22%] Generating writeimage_io.cpp, writeimage_io.hpp
[ 24%] Generating readimage_io.cpp, readimage_io.hpp
writeimage_io: WriteImageIn Exception ParseInteger ValueParser Float String Int32 ParserPool ParseArrayContainer ParseObject ContainerStdVectorEqSize StdVector writeBool writeScalarType writeInt16 writeInt32 writeInt64 writeInt8 writeString writeUInt16 writeUInt32 writeUInt64 writeUInt8 writeDouble writeFloat writePointer writeForwardIterator writeStdVector
  Header: writeimage_io.hpp, source: writeimage_io.cpp
readimage_io: ReadImageIn ReadImageOut Exception ParseInteger ValueParser Float String Int32 ParserPool ParseObject writeBool writeScalarType writeInt16 writeInt32 writeInt64 writeInt8 writeString writeUInt16 writeUInt32 writeUInt64 writeUInt8 writeDouble writeFloat writePointer writeForwardIterator writeStdVector
  Header: readimage_io.hpp, source: readimage_io.cpp
[ 24%] Built target writeimage_io
Scanning dependencies of target unittest-split2planes
[ 24%] Built target readimage_io
[ 26%] Building CXX object CMakeFiles/unittest-split2planes.dir/src/split2planes.cpp.o
Scanning dependencies of target writegltf
[ 28%] Building CXX object CMakeFiles/writegltf.dir/src/writegltf.cpp.o
[ 30%] Building CXX object CMakeFiles/writegltf.dir/writegltf_io.cpp.o
/workspace/build/writegltf_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/writegltf_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/writegltf_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
[ 32%] Linking CXX executable writegltf
[ 36%] Built target writegltf
Scanning dependencies of target writecollada
[ 38%] Building CXX object CMakeFiles/writecollada.dir/src/writecollada.cpp.o
[ 40%] Building CXX object CMakeFiles/unittest-split2planes.dir/split2planes_io.cpp.o
/workspace/build/split2planes_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/split2planes_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/split2planes_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
[ 42%] Building CXX object CMakeFiles/writecollada.dir/writecollada_io.cpp.o
[ 44%] Linking CXX executable unittest-split2planes
[ 48%] Built target unittest-split2planes
Scanning dependencies of target split2planes
[ 51%] Building CXX object CMakeFiles/split2planes.dir/src/split2planes.cpp.o
/workspace/build/writecollada_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/writecollada_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/writecollada_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
[ 53%] Linking CXX executable writecollada
[ 57%] Built target writecollada
Scanning dependencies of target writeglb
[ 59%] Building CXX object CMakeFiles/writeglb.dir/src/writeglb.cpp.o
In file included from /usr/include/c++/10/backward/strstream:50,
                 from /workspace/src/writeglb.cpp:25:
/usr/include/c++/10/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
[ 61%] Building CXX object CMakeFiles/split2planes.dir/split2planes_io.cpp.o
/workspace/build/split2planes_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/split2planes_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/split2planes_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
[ 63%] Linking CXX executable split2planes
[ 67%] Built target split2planes
Scanning dependencies of target writeimage
[ 69%] Building CXX object CMakeFiles/writeimage.dir/src/writeimage.cpp.o
[ 71%] Building CXX object CMakeFiles/writeglb.dir/writeglb_io.cpp.o
/workspace/build/writeglb_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/writeglb_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/writeglb_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
/workspace/src/writeimage.cpp: In function 'int write_image(io::WriteImageIn&)':
/workspace/src/writeimage.cpp:352:35: warning: catching polymorphic type 'class std::ios_base::failure' by value [-Wcatch-value=]
  352 |     catch (std::ofstream::failure f) {
      |                                   ^
[ 73%] Building CXX object CMakeFiles/writeglb.dir/src/memimage.cpp.o
[ 75%] Linking CXX executable writeglb
[ 77%] Building CXX object CMakeFiles/writeimage.dir/writeimage_io.cpp.o
[ 81%] Built target writeglb
Scanning dependencies of target readimage
[ 83%] Building CXX object CMakeFiles/readimage.dir/src/readimage.cpp.o
/workspace/build/writeimage_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/writeimage_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/writeimage_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
In file included from /workspace/build/writeimage_io.cpp:30:
/workspace/build/writeimage_io.hpp: In instantiation of 'T io::convert_to_integer(const char*, char**) [with T = int; long int Minimum = -2147483648; long unsigned int Maximum = 2147483647]':
/workspace/build/writeimage_io.hpp:167:52:   required from 'const char* io::parse_integer(T&, const char*, const char*, std::vector<char>&, bool) [with T = int; long int Minimum = -2147483648; long unsigned int Maximum = 2147483647]'
/workspace/build/writeimage_io.cpp:232:46:   required from here
/workspace/build/writeimage_io.hpp:145:50: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'intmax_t' {aka 'long int'} [-Wsign-compare]
  145 |         if (out < Minimum || (0 < out && Maximum < out))
      |                                          ~~~~~~~~^~~~~
[ 85%] Building CXX object CMakeFiles/writeimage.dir/src/memimage.cpp.o
[ 87%] Linking CXX executable writeimage
[ 91%] Built target writeimage
[ 93%] Building CXX object CMakeFiles/readimage.dir/readimage_io.cpp.o
/workspace/build/readimage_io.cpp: In constructor 'io::ContextException::ContextException(const io::Exception&, const char*, const char*, const char*)':
/workspace/build/readimage_io.cpp:48:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   48 |     size_t before = (space < Current - Begin) ? space : (Current - Begin);
      |                      ~~~~~~^~~~~~~~~~~~~~~~~
/workspace/build/readimage_io.cpp:49:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare]
   49 |     size_t after = (space < End - Current) ? space : (End - Current);
      |                     ~~~~~~^~~~~~~~~~~~~~~
In file included from /workspace/build/readimage_io.cpp:30:
/workspace/build/readimage_io.hpp: In instantiation of 'T io::convert_to_integer(const char*, char**) [with T = int; long int Minimum = -2147483648; long unsigned int Maximum = 2147483647]':
/workspace/build/readimage_io.hpp:168:52:   required from 'const char* io::parse_integer(T&, const char*, const char*, std::vector<char>&, bool) [with T = int; long int Minimum = -2147483648; long unsigned int Maximum = 2147483647]'
/workspace/build/readimage_io.cpp:232:46:   required from here
/workspace/build/readimage_io.hpp:146:50: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'intmax_t' {aka 'long int'} [-Wsign-compare]
  146 |         if (out < Minimum || (0 < out && Maximum < out))
      |                                          ~~~~~~~~^~~~~
[ 95%] Linking CXX executable readimage
[100%] Built target readimage
Running tests...
Test project /workspace/build
      Start  1: unittest-split2planes
 1/26 Test  #1: unittest-split2planes ............   Passed    0.00 sec
      Start  2: p3ppm8
 2/26 Test  #2: p3ppm8 ...........................***Failed    0.30 sec
      Start  3: p3ppm16
 3/26 Test  #3: p3ppm16 ..........................***Failed    0.43 sec
      Start  4: p3ppm4
 4/26 Test  #4: p3ppm4 ...........................***Failed    0.29 sec
      Start  5: p3ppm10
 5/26 Test  #5: p3ppm10 ..........................***Failed    0.30 sec
      Start  6: ppm8
 6/26 Test  #6: ppm8 .............................***Failed    0.42 sec
      Start  7: ppm16
 7/26 Test  #7: ppm16 ............................***Failed    0.29 sec
      Start  8: tiff1.8
 8/26 Test  #8: tiff1.8 ..........................***Failed    0.43 sec
      Start  9: tiff2.8
 9/26 Test  #9: tiff2.8 ..........................***Failed    0.30 sec
      Start 10: tiff3.8
10/26 Test #10: tiff3.8 ..........................***Failed    0.29 sec
      Start 11: tiff3.16
11/26 Test #11: tiff3.16 .........................***Failed    0.42 sec
      Start 12: tiff4.8
12/26 Test #12: tiff4.8 ..........................***Failed    0.29 sec
      Start 13: tiff4.16
13/26 Test #13: tiff4.16 .........................***Failed    0.30 sec
      Start 14: tiff5.8
14/26 Test #14: tiff5.8 ..........................***Failed    0.44 sec
      Start 15: tiff5.16
15/26 Test #15: tiff5.16 .........................***Failed    0.29 sec
      Start 16: png1.8
16/26 Test #16: png1.8 ...........................***Failed    0.42 sec
      Start 17: png1.16
17/26 Test #17: png1.16 ..........................***Failed    0.29 sec
      Start 18: png2.8
18/26 Test #18: png2.8 ...........................***Failed    0.29 sec
      Start 19: png2.16
19/26 Test #19: png2.16 ..........................***Failed    0.42 sec
      Start 20: png3.8
20/26 Test #20: png3.8 ...........................***Failed    0.30 sec
      Start 21: png3.16
21/26 Test #21: png3.16 ..........................***Failed    0.29 sec
      Start 22: png4.8
22/26 Test #22: png4.8 ...........................***Failed    0.42 sec
      Start 23: png4.16
23/26 Test #23: png4.16 ..........................***Failed    0.29 sec
      Start 24: plane0
24/26 Test #24: plane0 ...........................***Failed    0.30 sec
      Start 25: plane1
25/26 Test #25: plane1 ...........................***Failed    0.43 sec
      Start 26: plane2
26/26 Test #26: plane2 ...........................***Failed    0.30 sec

4% tests passed, 25 tests failed out of 26

Total Test time (real) =   8.56 sec

The following tests FAILED:
	  2 - p3ppm8 (Failed)
	  3 - p3ppm16 (Failed)
	  4 - p3ppm4 (Failed)
	  5 - p3ppm10 (Failed)
	  6 - ppm8 (Failed)
	  7 - ppm16 (Failed)
	  8 - tiff1.8 (Failed)
	  9 - tiff2.8 (Failed)
	 10 - tiff3.8 (Failed)
	 11 - tiff3.16 (Failed)
	 12 - tiff4.8 (Failed)
	 13 - tiff4.16 (Failed)
	 14 - tiff5.8 (Failed)
	 15 - tiff5.16 (Failed)
	 16 - png1.8 (Failed)
	 17 - png1.16 (Failed)
	 18 - png2.8 (Failed)
	 19 - png2.16 (Failed)
	 20 - png3.8 (Failed)
	 21 - png3.16 (Failed)
	 22 - png4.8 (Failed)
	 23 - png4.16 (Failed)
	 24 - plane0 (Failed)
	 25 - plane1 (Failed)
	 26 - plane2 (Failed)
Errors while running CTest
make: *** [Makefile:149: test] Error 8
Build and test exit code: 2