You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: RocksDB for Java works normally running in Rosetta mode, but as soon as environment is started in non Rosetta mode the program fails.
Reacted by Lena Schönburg, Andras Hatvani, Toby, Mikaël Vaivre, Dongjoon Hyun, YangJie, Robert Metzger, Konstantin Wirz, Mikhail Golubev, MicWalter and 6 more
@jurmous I am waiting for #7714 to get merged before I add the update for RocksJava. If you want to test #7714 and give us some feedback that would be great...
@adamretter Thanks for all the work on the Apple Silicon compilation issues! Do you have any update on the RocksJava Apple Silicon support? Or do you need help?
@jurmous okay so there is no problem with building RocksDB and RocksJava from source and running it on Apple Silicon now.
I will shortly send a PR to differentiate between Mac binaries for x64 and aarch64. We can then package both into the next release of RocksJava that is published on Maven central.
@jurmous Sorry for the delay, I do have some preliminary work here for building Universal Binaries. I had to pause whilst other priorities took over, but I hope to get back to it ASAP.
I have checked out your branch and tried to run make static_lib_ub on root.
I get however an error about an unknown CPU target:
(Big Sur 11.1 & Xcode 12.4 on an M1 machine)
$DEBUG_LEVEL is 1
Makefile:203: Warning: Compiling in debug mode. Don't use the resulting binary in production
GEN util/build_version.cc
$DEBUG_LEVEL is 1
Makefile:203: Warning: Compiling in debug mode. Don't use the resulting binary in production
GEN util/build_version.cc
TARGET_ARCHITECTURE=x86_64 STATIC_LIBRARY=librocksdb_debug-x86_64.a /Applications/Xcode.app/Contents/Developer/usr/bin/make static_lib
$DEBUG_LEVEL is 0
GEN util/build_version.cc
CC db/column_family.o
error: unknown target CPU 'armv8-a+crc+crypto'
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere,
sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake,
icelake-client, icelake-server, tigerlake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1,
btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, x86-64
make[1]: *** [db/column_family.o] Error 1
make: *** [static_lib_ub] Error 2
make static_lib runs fine btw.
This work is for the generic static library if I am correct? If this works correctly further work has to be done to build a universal librocksdbjni-osx.jnilib?
Hey folks - thanks for the work here. I just ran into this issue when trying to run a Kafka Streams app on my M1 machine. The Kafka Stream library is using RocksDB v5.18.4 under the hood.
@jurmous you mentioned you were able to run RocksDB when running in Rosetta mode? Could you please let me know how you did that? I'm just (very) simply trying to run my app from IntelliJ, so curious as to how to modify it to run in Rosetta mode.
RocksDB 6.29.4.1 has been released to Maven Central which should now work on M1 macs.
Reacted by 玛卡巴卡, Marshall Jones, Torsten Schlieder, Martin, 우지혜(Jihye), douglasapolinario, nurassanali and Jin Shuai
Reacted by Alec Theriault, Sebastian Bathke, 西纪年, Henrik Eneroth, Greg Case, Francis De Brabandere, Vincent Cantin, Jongwon Youn, Mathias Stang, 玛卡巴卡 and 8 more
Reacted by Constantin Mihalache, Alec Theriault, Sebastian Bathke, Florian Dreier, Oskar Boëthius Lissheim, Jeremy Taylor, Devin Bost, Benoît Mériaux DD, Vincent Cantin, Jongwon Youn and 8 more
Activity
adamretter commentedon Nov 28, 2020
@jurmous I am waiting for #7714 to get merged before I add the update for RocksJava. If you want to test #7714 and give us some feedback that would be great...
jurmous commentedon Nov 29, 2020
I posted my feedback in #7714.
jurmous commentedon Dec 10, 2020
@adamretter Thanks for all the work on the Apple Silicon compilation issues! Do you have any update on the RocksJava Apple Silicon support? Or do you need help?
adamretter commentedon Dec 10, 2020
@jurmous I can likely send a PR tomorrow if that works for you?
adamretter commentedon Dec 11, 2020
@jurmous okay so there is no problem with building RocksDB and RocksJava from source and running it on Apple Silicon now.
I will shortly send a PR to differentiate between Mac binaries for x64 and aarch64. We can then package both into the next release of RocksJava that is published on Maven central.
As well as separate libraries for each architecture (x64 and aarch64) it seems we could combine them into a single "Universal Binary" (see: https://developer.apple.com/documentation/xcode/building_a_universal_macos_binary), I will give some thought as to the best approach.
jurmous commentedon Dec 11, 2020
@adamretter Thanks for checking it out!
Cool that there is no problem building the libraries!
Yes both directions would be valid. Universal makes some things easier I guess and the Mac binary is not that large compared to linux64.
jurmous commentedon Jan 13, 2021
@adamretter Were you already able to give some thought on the best approach? And were you able to create a PR? Thanks! 😊
adamretter commentedon Jan 13, 2021
@jurmous Sorry for the delay, I do have some preliminary work here for building Universal Binaries. I had to pause whilst other priorities took over, but I hope to get back to it ASAP.
jurmous commentedon Jan 14, 2021
Ok, I understand. Good luck with the other priorities! Let me know if I can help when you are able to get back to it!
Yrp commentedon Jan 29, 2021
Hi, guys. Any progress?
adamretter commentedon Jan 29, 2021
@jurmous @Yrp you can find the start of my work on Universal Binaries for RocksDB here -
https://github.com/adamretter/rocksdb/tree/macos-multi-arch
Running
make static_lib_ubwill give you a Universal Binary for bothx86_64 arm64.
Building the universal binaries can be done in macOS on either Intel
or Apple Silicon as long as you have macOS bigSur and the latest
XCode.
jurmous commentedon Jan 30, 2021
@adamretter Thanks for all the work already! ❤️
I have checked out your branch and tried to run
make static_lib_ubon root.I get however an error about an unknown CPU target:
(Big Sur 11.1 & Xcode 12.4 on an M1 machine)
make static_libruns fine btw.This work is for the generic static library if I am correct? If this works correctly further work has to be done to build a universal
librocksdbjni-osx.jnilib?tobiade commentedon Apr 4, 2021
Hey folks - thanks for the work here. I just ran into this issue when trying to run a Kafka Streams app on my M1 machine. The Kafka Stream library is using RocksDB v5.18.4 under the hood.
@jurmous you mentioned you were able to run RocksDB when running in Rosetta mode? Could you please let me know how you did that? I'm just (very) simply trying to run my app from IntelliJ, so curious as to how to modify it to run in Rosetta mode.
38 remaining items
jurmous commentedon Mar 26, 2022
RocksDB 6.29.4.1 has been released to Maven Central which should now work on M1 macs.
adamretter commentedon Mar 26, 2022
Additionally now so has version 7.0.3
Upgrade RocksDB from 6.27.3 to 6.29.4.1 (#11967)
Upgrade RocksDB from 6.27.3 to 6.29.4.1 (#11967)
Upgrade RocksDB from 6.27.3 to 6.29.4.1 (apache#11967)
[LI-CHERRY-PICK] KAFKA-13776: Upgrade RocksDB from 6.27.3 to 6.29.4.1 (…
Add support for Apple Silicon to RocksJava (meta#9254)
Add support for Apple Silicon to RocksJava (#9254)
Add support for Apple Silicon to RocksJava (#9254)
Add support for Apple Silicon to RocksJava (#9254)
Add support for Apple Silicon to RocksJava (#9254)
Add support for Apple Silicon to RocksJava (meta#9254)
Upgrade RocksDB from 6.27.3 to 6.29.4.1 (#11967)