chronoxor / FastBinaryEncoding

Fast Binary Encoding is ultra fast and universal serialization solution for C++, C#, Go, Java, JavaScript, Kotlin, Python, Ruby, Swift
https://chronoxor.github.io/FastBinaryEncoding
MIT License
827 stars 84 forks source link

Broken Build on Mac OS #27

Open rezahussain opened 4 years ago

rezahussain commented 4 years ago

(base) adminmbp:FastBinaryEncoding admin$ gil update Working path: /Users/admin/Desktop/FastBinaryEncoding Discover git links: /Users/admin/Desktop/FastBinaryEncoding/.gitlinks Discover git links: /Users/admin/Desktop/FastBinaryEncoding/modules/CppBenchmark/.gitlinks Discover git links: /Users/admin/Desktop/FastBinaryEncoding/modules/CppCommon/.gitlinks (base) adminmbp:FastBinaryEncoding admin$ ls CMakeLists.txt _config.yml documents modules source LICENSE bin examples performance tests README.md build images projects TODO.md cmake include proto (base) adminmbp:FastBinaryEncoding admin$ ls -a . .gitlinks _config.yml images source .. .travis.yml bin include tests .appveyor.yml CMakeLists.txt build modules .git LICENSE cmake performance .gitattributes README.md documents projects .gitignore TODO.md examples proto (base) adminmbp:FastBinaryEncoding admin$ cd build (base) adminmbp:build admin$ ./unix.sh -- The C compiler identification is AppleClang 11.0.3.11030032 -- The CXX compiler identification is AppleClang 11.0.3.11030032 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- The System identification is Darwin-19.4.0 Darwin 19.4.0 Platform/Darwin -- Found BISON: /usr/bin/bison (found version "2.3") -- Found FLEX: /usr/bin/flex (found version "2.5.35") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- The System identification is Darwin-19.4.0 Darwin 19.4.0 Platform/Darwin -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of off64_t -- Check size of off64_t - failed -- Looking for fseeko -- Looking for fseeko - found -- Looking for unistd.h -- Looking for unistd.h - found -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- The System identification is Darwin-19.4.0 Darwin 19.4.0 Platform/Darwin -- Could NOT find LIBBFD (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR) -- Found LIBDL: /usr/lib/libdl.dylib
-- Could NOT find LIBRT (missing: LIBRT_LIBRARY) -- Could NOT find LIBUUID (missing: LIBUUID_LIBRARY) -- Could NOT find LIBVLD (missing: LIBVLD_LIBRARY) -- Configuring done -- Generating done -- Build files have been written to: /Users/admin/Desktop/FastBinaryEncoding/temp Scanning dependencies of target fmt Scanning dependencies of target cpp-optparse Scanning dependencies of target zlib [ 1%] Building CXX object modules/CMakeFiles/cpp-optparse.dir/cpp-optparse/OptionParser.cpp.o [ 2%] Building CXX object modules/CppCommon/modules/CMakeFiles/fmt.dir/fmt/src/format.cc.o [ 2%] Building CXX object modules/CppCommon/modules/CMakeFiles/fmt.dir/fmt/src/os.cc.o [ 3%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/compress.c.o [ 3%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/adler32.c.o [ 3%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/crc32.c.o [ 4%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/deflate.c.o [ 4%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/gzclose.c.o [ 5%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/gzlib.c.o [ 5%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/gzread.c.o [ 6%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/gzwrite.c.o [ 6%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/infback.c.o [ 7%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/inffast.c.o [ 7%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/inflate.c.o [ 8%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/inftrees.c.o [ 8%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/trees.c.o [ 9%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/uncompr.c.o [ 9%] Building C object modules/CppBenchmark/modules/CMakeFiles/zlib.dir/zlib/zutil.c.o [ 10%] Linking C static library libzlib.a [ 10%] Built target zlib Scanning dependencies of target HdrHistogram [ 10%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_encoding.c.o [ 10%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_histogram.c.o [ 11%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_histogram_log.c.o [ 11%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_interval_recorder.c.o [ 11%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_time.c.o [ 12%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_thread.c.o [ 13%] Building C object modules/CppBenchmark/modules/CMakeFiles/HdrHistogram.dir/HdrHistogram/src/hdr_writer_reader_phaser.c.o [ 13%] Linking C static library libHdrHistogram.a [ 13%] Built target HdrHistogram [ 13%] Linking CXX static library libcpp-optparse.a [ 13%] Built target cpp-optparse Scanning dependencies of target cppbenchmark [ 14%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/barrier.cpp.o [ 15%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/benchmark_pc.cpp.o [ 15%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/benchmark_base.cpp.o [ 15%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/benchmark.cpp.o [ 16%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/benchmark_threads.cpp.o [ 16%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/console.cpp.o [ 17%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/context.cpp.o [ 17%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/context_pc.cpp.o [ 18%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/context_threads.cpp.o [ 18%] Linking CXX static library libfmt.a [ 18%] Built target fmt [ 18%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/environment.cpp.o Scanning dependencies of target cppcommon [ 19%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/algorithms/token_bucket.cpp.o [ 19%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/cache/filecache.cpp.o [ 20%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/common/reader.cpp.o [ 20%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/common/uint128.cpp.o [ 21%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/common/uint256.cpp.o [ 21%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/common/writer.cpp.o [ 22%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/executor.cpp.o [ 23%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/errors/exceptions.cpp.o [ 23%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/errors/exceptions_handler.cpp.o [ 23%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/launcher.cpp.o [ 24%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/launcher_console.cpp.o [ 24%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/phase_core.cpp.o [ 25%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/phase_metrics.cpp.o [ 25%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/phase_scope.cpp.o [ 26%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/errors/fatal.cpp.o [ 26%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/errors/system_error.cpp.o [ 27%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/reporter_console.cpp.o [ 28%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/filesystem/directory.cpp.o [ 28%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/reporter_csv.cpp.o [ 29%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/reporter_json.cpp.o [ 29%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/settings.cpp.o [ 29%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/filesystem/directory_iterator.cpp.o [ 30%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/filesystem/exceptions.cpp.o [ 30%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/filesystem/file.cpp.o [ 31%] Building CXX object modules/CppBenchmark/CMakeFiles/cppbenchmark.dir/source/benchmark/system.cpp.o [ 32%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/filesystem/path.cpp.o [ 32%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/filesystem/symlink.cpp.o [ 33%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/math/math.cpp.o [ 33%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/memory/memory.cpp.o [ 34%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/string/encoding.cpp.o [ 34%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/string/string_utils.cpp.o [ 35%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/console.cpp.o [ 35%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/cpu.cpp.o [ 36%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/dll.cpp.o [ 36%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/environment.cpp.o [ 37%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/pipe.cpp.o [ 37%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/process.cpp.o [ 38%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/shared_memory.cpp.o [ 38%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o [ 39%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace_manager.cpp.o [ 39%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stream.cpp.o [ 40%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/uuid.cpp.o [ 40%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/barrier.cpp.o [ 40%] Linking CXX static library libcppbenchmark.a [ 41%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/condition_variable.cpp.o [ 41%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/critical_section.cpp.o [ 41%] Built target cppbenchmark [ 42%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/event_auto_reset.cpp.o [ 42%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/event_manual_reset.cpp.o [ 43%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/file_lock.cpp.o [ 43%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/latch.cpp.o [ 44%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/mutex.cpp.o [ 44%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_condition_variable.cpp.o [ 45%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_critical_section.cpp.o [ 45%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_event_auto_reset.cpp.o [ 46%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_event_manual_reset.cpp.o [ 46%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_mutex.cpp.o [ 47%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_rw_lock.cpp.o [ 47%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/named_semaphore.cpp.o [ 48%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/rw_lock.cpp.o [ 48%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/semaphore.cpp.o [ 49%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/thread.cpp.o [ 49%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/time/time.cpp.o [ 50%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/time/timestamp.cpp.o [ 50%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/time/timezone.cpp.o [ 51%] Linking CXX static library libcppcommon.a [ 51%] Built target cppcommon [ 52%] [BISON][parser] Building parser with bison 2.3 [ 52%] [FLEX][lexer] Building scanner with flex 2.5.35 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison: invalid option -- W Try `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison --help' for more information. make[2]: [../source/fbe-parser.cpp] Error 1 make[2]: Waiting for unfinished jobs.... flex version 2.5.35 Apple(flex-32) usage statistics: scanner options: -vI8 -Cem -o/Users/admin/Desktop/FastBinaryEncoding/source/fbe-lexer.cpp 590/2000 NFA states 250/1000 DFA states (1350 words) 76 rules Compressed tables always back-up 1/40 start conditions 273 epsilon states, 113 double epsilon states 36/100 character classes needed 274/500 words of storage, 0 reused 6822 state/nextstate pairs created 649/6173 unique/duplicate transitions 265/1000 base-def entries created 496/2000 (peak 1128) nxt-chk entries created 165/2500 (peak 945) template nxt-chk entries created 0 empty table entries 18 protos created 15 templates created, 184 uses 63/256 equivalence classes created 11/256 meta-equivalence classes created 1 (1 saved) hash collisions, 402 DFAs equal 0 sets of reallocations needed 1841 total table entries needed make[1]: [CMakeFiles/fbec.dir/all] Error 2 make: [all] Error 2 (base) adminmbp:build admin$

Is there something I am doing wrong?

bdeneux commented 3 years ago

I encountered the same problem, updating bison fixes this problem. You can update with Homebrew (https://stackoverflow.com/questions/10778905/why-does-my-mac-os-x-10-7-3-have-an-old-version-2-3-of-gnu-bison/30844621#30844621)