KeyDB
KeyDB copied to clipboard
[BUG] Building on MacOS Fails (Apple Silicon) (v6.3.4)
UPDATE: See my comment. The issue seems to be solved on the latest commit, but building with FLASH support is still broken.
Describe the bug
I am trying to build KeyDB from source as the binary available through homebrew was not built with Flash support enabled. The build fails with the following error:
... (lines removed for brevity)
...
...
MAKE hdr_histogram
...
...
... (lines removed for brevity)
replication.cpp:2112:31: error: variable has incomplete type 'struct stat64'
struct redis_stat buf;
^
replication.cpp:2112:20: note: forward declaration of 'stat64'
struct redis_stat buf;
^
./config.h:47:20: note: expanded from macro 'redis_stat'
#define redis_stat stat64
^
1 error generated.
make[1]: *** [replication.o] Error 1
make: *** [all] Error 2
To reproduce Doesn't matter whether I build with ENABLE_FLASH or not the issue is the same, so it is probably not connected to FLASH support at all.
- Clone the repository:
git clone [email protected]:Snapchat/KeyDB.git
- Checkout the latest tag:
git checkout v6.3.4
- Install submodules:
git submodule init && git submodule update
- Run make:
make
Expected behavior
KeyDB should be built on MacOS
Additional information
MacOS Sonoma Version 14.4.1 - M1 Apple Silicon (ARM)