Open rajivshah3 opened 2 years ago
It seems like it compiles successfully if I remove -arch i686
and -arch armv6 -arch armv7 -arch armv7s
from the Makefile
CC several people who has contributed to PRs related to building on ARM: @siddontang @etherond @adamretter
@siying I'm afraid I don't have any knowledge of IOS or the equipment to test for it. Regards the comment about 32 bit support, if I recall we support Linux on Intel and ARM currently for this
I'm having trouble building for iOS. I think I was able to get one of the recent 6.x releases to build a while ago, but it seems like something may have changed in 7.x that's causing problems for iOS.
Following the instructions in
INSTALL.md
, I first runTARGET_OS=IOS make static_lib -j8
: https://github.com/facebook/rocksdb/blob/9454e744ed0ca4bb27ebcd8d4f79c59ef723adcf/INSTALL.md?plain=1#L180-L181I get two groups of errors:
(the second one looks similar to #4064)
I noticed that in the generated
make_config.mk
,-DHAVE_UINT128_EXTENSION
is inPLATFORM_CCFLAGS
andPLATFORM_CXXFLAGS
:Confused as to why I got the error when it seems like the
__uint128
test inbuild_tools/build_detect_platform
must have passed, I tried compiling that test by itself in a separate file:The following command works:
But I noticed that the Makefile will run this when targeting iOS: https://github.com/facebook/rocksdb/blob/4f9c0fd083d00bacd86b723f7789658ccfd3f108/Makefile#L2423 So I tried something similar:
It seems like targeting i686 causes this to fail, because it succeeds if I only pass
-arch x86_64
:The same error is shown when targeting armv7 for iOS (
xcrun -sdk iphoneos g++ -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch armv7 test.cc -o test.o
), but targeting arm64 alone succeeds.I don't personally don't need support for any of the 32-bit architectures, but it seems like the Makefile tries to target them: https://github.com/facebook/rocksdb/blob/4f9c0fd083d00bacd86b723f7789658ccfd3f108/Makefile#L2421-L2433
Expected behavior
RocksDB compiles successfully for iOS
Actual behavior
Errors are shown
Steps to reproduce the behavior
Here's my output of
clang -v
(I have Xcode 13.4 installed) :I'm on macOS Monterey 12.4 with an Intel-based Mac, using the macOS 12.3 SDK and iOS 15.5 SDK