typesense / typesense

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
https://typesense.org
GNU General Public License v3.0
20.56k stars 633 forks source link

bazel build failure #1655

Open eerbing opened 5 months ago

eerbing commented 5 months ago

Description

Does typesense support centos7 source build? I tried branch 0.25, v0.23, v27, but all got failed. Thanks.

Steps to reproduce

bazelisk build //:typesense-server --verbose_failures --sandbox_debug

Expected Behavior

build success

Actual Behaviorb

INFO: Analyzed target //:typesense-server (119 packages loaded, 58899 targets configured). ERROR: /home/admin/.cache/bazel/_bazel_admin/c511bda85242a16b1a1b67557d0f0868/external/s2geometry/BUILD.bazel:24:6: output 'external/s2geometry/s2geometry/lib/libs2.a' was not created ERROR: /home/admin/.cache/bazel/_bazel_admin/c511bda85242a16b1a1b67557d0f0868/external/s2geometry/BUILD.bazel:24:6: Foreign Cc - CMake: Building s2geometry failed: not all outputs were created or valid Target //:typesense-server failed to build

Metadata

Typesense Version: branch 0.25, v0.23, v27

OS: centos7 bazel 7.1.1, gcc 7.3

kishorenc commented 5 months ago

Our build happens on Debian machines so I'm not sure if there is a problem on Centos. There should be more details in the logs on why s2geometry failed to build.

eerbing commented 5 months ago

Our build happens on Debian machines so I'm not sure if there is a problem on Centos. There should be more details in the logs on why s2geometry failed to build.

upgrade gcc to 10.2 still got failed. couldn't see any reason from the log.

====================================== INFO: Analyzed target //:typesense-server (0 packages loaded, 0 targets configured). INFO: Found 1 target... INFO: Writing explanation of rebuilds to 'explain.txt' SUBCOMMAND: # @openssl//:openssl [action 'Foreign Cc - Configure: Building openssl', configuration: 91de250c65545cfec72c0d1c152fe01b8d876f131193a757a04a810e4db68118, execution platform: @local_config_platform//:host] (cd /home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/execroot/main && \ exec env - \ BAZEL_CXXOPTS='-std=c++17' \ BAZEL_LINKLIBS='-l%:libstdc++.a -l%:libgcc.a' \ PATH=/bin:/usr/bin:/usr/local/bin \ /bin/bash -c bazel-out/k8-fastbuild/bin/external/openssl/openssl_foreign_cc/wrapper_build_script.sh)

Configuration: 91de250c65545cfec72c0d1c152fe01b8d876f131193a757a04a810e4db68118

Execution platform: @local_config_platform//:host

SUBCOMMAND: # @rocksdb//:rocksdb [action 'Foreign Cc - CMake: Building rocksdb', configuration: 91de250c65545cfec72c0d1c152fe01b8d876f131193a757a04a810e4db68118, execution platform: @local_config_platform//:host] (cd /home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/execroot/main && \ exec env - \ BAZEL_CXXOPTS='-std=c++17' \ BAZEL_LINKLIBS='-l%:libstdc++.a -l%:libgcc.a' \ PATH=/bin:/usr/bin:/usr/local/bin \ /bin/bash -c bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/wrapper_build_script.sh)

Configuration: 91de250c65545cfec72c0d1c152fe01b8d876f131193a757a04a810e4db68118

Execution platform: @local_config_platform//:host

ERROR: /home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/external/rocksdb/BUILD.bazel:22:6: output 'external/rocksdb/rocksdb/lib/librocksdb.a' was not created ERROR: /home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/external/rocksdb/BUILD.bazel:22:6: Foreign Cc - CMake: Building rocksdb failed: not all outputs were created or valid Target //:typesense-server failed to build INFO: Elapsed time: 298.374s, Critical Path: 297.88s INFO: 3 processes: 2 internal, 1 processwrapper-sandbox. FAILED: Build did NOT complete successfully

========================================= cat /home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/execroot/main/bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/CMake.log

Bazel external C/C++ Rules. Building library rocksdb

Environment:__ BAZEL_CXXOPTS=-std=c++17 TMPDIR=/tmp BUILD_WRAPPER_SCRIPT=bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/wrapper_build_script.sh EXT_BUILD_ROOT=/home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/sandbox/processwrapper-sandbox/485/execroot/main INSTALLDIR=/home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/sandbox/processwrapper-sandbox/485/execroot/main/bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb BAZEL_LINKLIBS=-l%:libstdc++.a -l%:libgcc.a PATH=/home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/sandbox/processwrapper-sandbox/485/execroot/main:/bin:/usr/bin:/usr/local/bin BUILD_TMPDIR=/home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/sandbox/processwrapper-sandbox/485/execroot/main/bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb.build_tmpdir PWD=/home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/sandbox/processwrapper-sandbox/485/execroot/main EXT_BUILD_DEPS=/home/admin/.cache/bazel/_bazel_admin/0b608cd3e6af65dbc0850844c05ab631/sandbox/processwrapper-sandbox/485/execroot/main/bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb.ext_build_deps SHLVL=3 BUILD_LOG=bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/CMake.log BUILD_SCRIPT=bazel-out/k8-fastbuild/bin/external/rocksdb/rocksdb_foreign_cc/buildscript.sh =/bin/env