Apple Silicon Binary & Compiling Typesense Issue
TLDR Bruno seeks to compile a native Apple Silicon binary of Typesense but encounters issues with RocksDB. Jason and Kishore Nallan assist, but the issue remains unresolved.
2
1
Jun 14, 2023 (6 months ago)
Bruno
09:43 PMJason
09:44 PMBruno
09:45 PMJason
09:45 PMv0.25-join
branch and using bazel build, which is much easierBruno
09:46 PMJason
09:46 PMBruno
09:47 PM1
Bruno
09:47 PMJason
09:47 PMJason
09:47 PMBruno
09:48 PM1
Bruno
10:31 PMmake check
runs fine.Bruno
10:33 PM-- Build files have been written to: /private/var/tmp/_bazel_bruno/4892beb866cdff20896715721c7b2cc5/sandbox/darwin-sandbox/519/execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/external/rocksdb/rocksdb.build_tmpdir
+ /private/var/tmp/_bazel_bruno/4892beb866cdff20896715721c7b2cc5/sandbox/darwin-sandbox/519/execroot/__main__/external/cmake-3.25.0-macos-universal/bin/cmake --build . --config Release --target rocksdb -j8
[ 0%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_key.cc.o
[ 1%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o
[ 1%] Building CXX object CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:132: CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o] Error 127
make[3]: *** Waiting for unfinished jobs....
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:118: CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o] Error 127
[ 1%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:104: CMakeFiles/rocksdb.dir/cache/cache_key.cc.o] Error 127
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:90: CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o] Error 127
[ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache.cc.o
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:76: CMakeFiles/rocksdb.dir/cache/cache.cc.o] Error 127
[ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:160: CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o] Error 127
[ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:146: CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o] Error 127
[ 3%] Building CXX object CMakeFiles/rocksdb.dir/cache/fast_lru_cache.cc.o
make[3]: ccache: No such file or directory
make[3]: *** [CMakeFiles/rocksdb.dir/build.make:174: CMakeFiles/rocksdb.dir/cache/fast_lru_cache.cc.o] Error 127
make[2]: *** [CMakeFiles/Makefile2:141: CMakeFiles/rocksdb.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:148: CMakeFiles/rocksdb.dir/rule] Error 2
make: *** [Makefile:169: rocksdb] Error 2
_____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/darwin_arm64-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/darwin_arm64-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/darwin_arm64-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/CMake.log
Target //:typesense-server failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 59.159s, Critical Path: 58.60s
INFO: 6 processes: 6 internal.
FAILED: Build did NOT complete successfully
Bruno
10:33 PMBruno
10:34 PM.o
to .cc
or replace it?Jason
10:39 PMxcode-select --install
to install all the tools required for building?Bruno
11:18 PMJason
11:19 PMBruno
11:48 PMJason
11:49 PMBruno
11:56 PMJun 15, 2023 (6 months ago)
Kishore Nallan
10:48 AMFor now, you will have to use the ARM docker image.
Bruno
02:56 PM/private/.../CMakeFiles/rocksdb.dir/cache/]
is indeed empty even after running bazel with --sandbox_debug
Bruno
03:02 PM.cc.o
still looks weird to me, but assume the build script is just missing a line or two as the dir is completely empty.Bruno
03:10 PMBruno
03:10 PMJason
04:33 PM1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Trouble Running Typesense Docker Image on AMD Phenom II X4 955 Processor
Ian struggles to run Typesense on an AMD Phenom II X4 955 Processor, experiencing the docker image to shut down immediately upon startup. Jason and Kishore Nallan suggest multiple troubleshooting steps, identifying the potential issue as the processor's lack of support for MSSE4 flags.
ARM Support for Typesense on AWS Graviton Servers
Tatu inquires on ARM support for Typesense. Kishore Nallan informs it's on the roadmap with end of year completion. After some troubleshooting, they successfully test an ARM build, preparing it for the 0.23 release.
Discussing Search API Limitations and Solutions
Sidharth had problems with search API response limitations and sorting issues. Kishore Nallan suggested multi_search query and provided links for an updated version. After installation, some timeout and performance issues were encountered, partially resolved by adjusting client timeout values.
Troubleshooting Typesense Binary Segmentation Fault on a Mac
Daniel sought help for a segmentation fault while using Typesense on a MacBook Air. Kishore Nallan guided them through the debugging process and suggested that it might be a compatibility issue with the Mac OS version. Daniel plans to try building Typesense on their own.
Slow, High CPU Write Operations After Collection Drop in Typesense
Himank discussed an issue in Typesense where deleting and recreating a collection led to slow write operations and high CPU usage. Kishore Nallan suggested using an alias to avoid this issue. Numerous tests and debugging was conducted as pboros contributed with local testing. Kishore Nallan aimed to start implementing a range delete and full db compaction after deletion to potentially solve the issue.