-
Notifications
You must be signed in to change notification settings - Fork 317
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
Failed to link librandomx.a in monero mobile wallet for ios #153
Comments
Can you try #154 ? |
Of course, I'll let you know it hepled |
I built
I'll check later (after all libraries are built) if it links ok |
We've got the next linking error:
I think the problem is in RandomX/src/jit_compiler_a64.cpp Lines 166 to 168 in 7567cef
|
Oh, I really don't know how to solve this one. Had the same issue in xmrig and couldn't find Apple's equivalent of __clear_cache(). Tried |
No, I need to make monero wallet libraries to link and work :) |
Is it possible to not call |
Then you can just declare this function in one of your cpp files and just leave empty - linker will be happy, but I don't guarantee RandomX correctness. |
I'm not sure if the wallet don't need it to be correct. A year ago or so I've got an |
You can still calculate RandomX hashes, but don't use JIT mode ( |
AFAIK iOS doesn't support JIT compilation at all (unless it's a jailbroken device). RandomX should default to interpreted mode on iOS. |
@SChernykh I followed your advice to create empty |
Can you run the benchmark to see if it works and gives the correct hashes? I think iOS will kill the application as soon as the JIT compiler tries to set the JIT pages to be executable. |
oh... that wouldn't be easy... |
Hi! I'm sorry for duplicating the issue from monero repo monero-project/monero#6122, but I think this is more relevant place for this.
We are trying to build ios exawallet with new release libraries. For x86-64 simulator it builds fine, but the linking problem occurs for arm64:
Some debug info:
For x86-64 library:
The same output for android arm64 library (which works):
The problem is in the underscore clang adds to mangle the symbols, I believe
Would be very thankful for your help.
The text was updated successfully, but these errors were encountered: