ludocode / msgpack-tools

Command-line tools for converting between MessagePack and JSON / msgpack.org[UNIX Shell]
Other
258 stars 18 forks source link

Build fails under cygwin #15

Open dalbert2 opened 1 year ago

dalbert2 commented 1 year ago

I downloaded a fresh tarball of the v6 release and make fails as below. I'm using gcc 11.3.0 under cygwin 64 on windows 11:

~/msgpack-tools-0.6
$ make
/usr/bin/cmake.exe -S/home/david/msgpack-tools-0.6 -B/home/david/msgpack-tools-0.6 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake.exe -E cmake_progress_start /home/david/msgpack-tools-0.6/CMakeFiles /home/david/msgpack-tools-0.6//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/david/msgpack-tools-0.6'
make  -f CMakeFiles/msgpack2json.dir/build.make CMakeFiles/msgpack2json.dir/depend
make[2]: Entering directory '/home/david/msgpack-tools-0.6'
cd /home/david/msgpack-tools-0.6 && /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles" /home/david/msgpack-tools-0.6 /home/david/msgpack-tools-0.6 /home/david/msgpack-tools-0.6 /home/david/msgpack-tools-0.6 /home/david/msgpack-tools-0.6/CMakeFiles/msgpack2json.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/david/msgpack-tools-0.6'
make  -f CMakeFiles/msgpack2json.dir/build.make CMakeFiles/msgpack2json.dir/build
make[2]: Entering directory '/home/david/msgpack-tools-0.6'
[  5%] Building CXX object CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o
/usr/bin/c++.exe  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c++11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o -MF CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o.d -o CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o -c /home/david/msgpack-tools-0.6/src/msgpack2json.cpp
[ 10%] Building C object CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-common.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-common.c.o -MF CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-common.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-common.c.o -c /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-common.c
[ 15%] Building C object CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-expect.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-expect.c.o -MF CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-expect.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-expect.c.o -c /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-expect.c
[ 20%] Building C object CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-node.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-node.c.o -MF CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-node.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-node.c.o -c /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-node.c
[ 25%] Building C object CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o -MF CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o -c /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c
[ 30%] Building C object CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.c.o -MF CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.c.o -c /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.c
[ 35%] Building C object CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-writer.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-writer.c.o -MF CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-writer.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-writer.c.o -c /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-writer.c
[ 40%] Building C object CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cdecode.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cdecode.c.o -MF CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cdecode.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cdecode.c.o -c /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c: In function ‘base64_decode_block’:
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c:47:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
   47 |                         *plainchar    = (fragment & 0x03f) << 2;
      |                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c:48:9: note: here
   48 |         case step_b:
      |         ^~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c:59:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
   59 |                         *plainchar    = (fragment & 0x00f) << 4;
      |                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c:60:9: note: here
   60 |         case step_c:
      |         ^~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c:71:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
   71 |                         *plainchar    = (fragment & 0x003) << 6;
      |                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cdecode.c:72:9: note: here
   72 |         case step_d:
      |         ^~~~
[ 45%] Building C object CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cencode.c.o
/usr/bin/cc  -isystem /home/david/msgpack-tools-0.6 -isystem /home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src -isystem /home/david/msgpack-tools-0.6/contrib/rapidjson-99ba17bd66a85ec64a2f322b68c2b9c3b77a4391/include -isystem /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/include -std=c11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -MD -MT CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cencode.c.o -MF CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cencode.c.o.d -o CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cencode.c.o -c /home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cencode.c
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cencode.c: In function ‘base64_encode_block’:
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cencode.c:50:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
   50 |                         result = (fragment & 0x003) << 4;
      |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cencode.c:51:9: note: here
   51 |         case step_B:
      |         ^~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cencode.c:61:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
   61 |                         result = (fragment & 0x00f) << 2;
      |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/msgpack-tools-0.6/contrib/libb64-1.2.1/src/cencode.c:62:9: note: here
   62 |         case step_C:
      |         ^~~~
[ 50%] Linking CXX executable msgpack2json.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/msgpack2json.dir/link.txt --verbose=1
/usr/bin/c++.exe -std=c++11 -Wall -Wextra -DVERSION=\"0.6\" -DLIBB64_VERSION=\"1.2.1\" -g -O0 -DDEBUG -Wl,--enable-auto-import CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o "CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-common.c.o" "CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-expect.c.o" "CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-node.c.o" "CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o" "CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.c.o" "CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-writer.c.o" "CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cdecode.c.o" "CMakeFiles/msgpack2json.dir/contrib/libb64-1.2.1/src/cencode.c.o" -o msgpack2json.exe -Wl,--out-implib,libmsgpack2json.dll.a -Wl,--major-image-version,0,--minor-image-version,0
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_reader_error':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:356: multiple definition of `mpack_reader_error'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:356: first defined here
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_should_read_bytes_inplace':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:673: multiple definition of `mpack_should_read_bytes_inplace'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:673: first defined here
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_done_array':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:706: multiple definition of `mpack_done_array'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:706: first defined here
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_done_map':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:717: multiple definition of `mpack_done_map'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:717: first defined here
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_done_str':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:728: multiple definition of `mpack_done_str'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:728: first defined here
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_done_bin':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:739: multiple definition of `mpack_done_bin'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:739: first defined here
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/msgpack2json.dir/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-platform.c.o: in function `mpack_done_ext':
/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:750: multiple definition of `mpack_done_ext'; CMakeFiles/msgpack2json.dir/src/msgpack2json.cpp.o:/home/david/msgpack-tools-0.6/contrib/mpack-df17e83f0fa8571b9cd0d8ccf38144fa90e244d1/src/mpack/mpack-reader.h:750: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/msgpack2json.dir/build.make:228: msgpack2json.exe] Error 1
make[2]: Leaving directory '/home/david/msgpack-tools-0.6'
make[1]: *** [CMakeFiles/Makefile2:88: CMakeFiles/msgpack2json.dir/all] Error 2
make[1]: Leaving directory '/home/david/msgpack-tools-0.6'
make: *** [Makefile:149: all] Error 2
ludocode commented 1 year ago

Sorry about this. It looks like a bug in the CMake build where it is building a dependency twice.

Can you try the latest development snapshot? I removed CMake entirely in favour of a simple (non-autotools) configure script and Makefile some time ago. I just haven't made a release of it yet (or updated the README) so the latest release still uses CMake.

You can build the latest development snapshot with the usual:

./configure && make && sudo make install
dalbert2 commented 1 year ago

Thank you Nicholas, the develop snapshot builds and runs perfectly under cygwin!

~/msgpack_develop/msgpack-tools-develop

$ make
c++ -Icontrib/mpack/src -Icontrib/rapidjson/include -Icontrib/libb64/include -Icontrib/libb64/src -Wall -Wextra -Wpedantic -Wno-unused-parameter -DVERSION=\"1.0\" -DLIBB64_VERSION=\"1.2.1\" -g -fPIC -DPIC -DNDEBUG -Os   -MMD -MF .build/msgpack2json.d -o msgpack2json src/msgpack2json.cpp
c++ -Icontrib/mpack/src -Icontrib/rapidjson/include -Icontrib/libb64/include -Icontrib/libb64/src -Wall -Wextra -Wpedantic -Wno-unused-parameter -DVERSION=\"1.0\" -DLIBB64_VERSION=\"1.2.1\" -g -fPIC -DPIC -DNDEBUG -Os   -MMD -MF .build/json2msgpack.d -o json2msgpack src/json2msgpack.cpp