Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: Undefined symbols for architecture arm64: "snappy::RawCompress" #17031

Open
jjolma opened this issue May 17, 2024 · 0 comments
Open
Labels
type/bug Type: Issue - Confirmed a bug

Comments

@jjolma
Copy link

jjolma commented May 17, 2024

Bug Report

What version of TiKV are you using?

From head: a1a8672

What operating system and CPU are you using?

MacBook Pro
16-inch, Nov 2023
Apple M3 Max

Steps to reproduce

make build

Detailed steps:

  • git clone [email protected]:tikv/kitv.git
  • source "$HOME/.cargo/env"
  • rustup self update && rustup set profile minimal && rustup default $(cat "rust-toolchain")\n
  • rustup component add rustfmt
  • rustup component add clippy
  • cd tikv
  • rustup
  • rustup component add rustfmt
  • rustup component add clippy
  • make build

What did you expect?

Build succeeds

What did happened?

Build fails with error:

  = note: ld: warning: ignoring duplicate libraries: '-lc++'
          ld: warning: search path '/Users/jeff_jolma/public_repos/tikv/target/aarch64-apple-darwin/debug/build/libz-sys-6edfb38afa7c13bc/out/build' not found
          Undefined symbols for architecture arm64:
            "snappy::RawCompress(char const*, unsigned long, char*, unsigned long*, snappy::CompressionOptions)", referenced from:
                rocksdb::CompressData(rocksdb::Slice const&, rocksdb::CompressionInfo const&, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*) in liblibrocksdb_sys-79e2de192cd9caa6.rlib[14](blob_file_builder.cc.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `tikv-ctl` (bin "tikv-ctl") due to 1 previous error

Other information of my system in case it helps:

% git --version
git version 2.45.0

% rustup --version
rustup 1.27.1 (2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.67.0-nightly (96ddd32c4 2022-11-14)

% make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

% cmake --version
cmake version 3.29.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

% awk --version
awk version 20200816

% protoc --version
libprotoc 26.1

@jjolma jjolma added the type/bug Type: Issue - Confirmed a bug label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: Issue - Confirmed a bug
Projects
None yet
Development

No branches or pull requests

1 participant