#community-help

Issues with ARM 32bit Typesense Compilation

TLDR sane had issues running Typesense on a 32bit ARM. Kishore Nallan proposed using the 'v0.23' branch with ARM modifications. sane agreed to try the solution.

Powered by Struct AI
Jan 26, 2022 (24 months ago)
sane
Photo of md5-e690dd6df4555b42c0bb7ea2c3e5ac16
sane
05:53 AM
what is the status on ARM 32bit?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:05 AM
We plan to publish 64 bit arm for the next release. No plans to support 32 bit arm yet.
sane
Photo of md5-e690dd6df4555b42c0bb7ea2c3e5ac16
sane
06:23 AM
okay
06:23
sane
06:23 AM
I compiled typesense for arm 32 bit
06:23
sane
06:23 AM
but I am unable to get search results
06:25
sane
06:25 AM
I am getting document by id
curl "http://localhost:8108/collections/books/documents/0" -H "X-TYPESENSE-API-KEY: xyz" -v
* Trying 127.0.0.1:8108...
* Connected to localhost (127.0.0.1) port 8108 (#0)
> GET /collections/books/documents/0 HTTP/1.1
> Host: localhost:8108
> User-Agent: curl/7.81.1-DEV
> Accept: /
> X-TYPESENSE-API-KEY: xyz
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Connection: keep-alive
< content-type: application/json; charset=utf-8
< transfer-encoding: chunked
<
* Connection #0 to host localhost left intact
{"author":"Author1","id":"0","ratings":24,"title":"Book 1"}
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:26 AM
Maybe try running the binary via valgrind to see if any errors are flagged for searching.
sane
Photo of md5-e690dd6df4555b42c0bb7ea2c3e5ac16
sane
06:26 AM
but search is getting blocked after collection->search in do_search
06:28
sane
06:28 AM
I placed a log right at the start of Collection::search function....but that log is not printing...
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:28 AM
What branch are using?
sane
Photo of md5-e690dd6df4555b42c0bb7ea2c3e5ac16
sane
06:28 AM
default
06:28
sane
06:28 AM
master
06:30
sane
06:30 AM
also I had to modify main.cpp to get it compiled
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 34381be..91a6c98 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -19,10 +19,11 @@ int main(int argc, char* argv[]) {
system("rm -rf /tmp/typesense-data && mkdir -p /tmp/typesense-data");

Store *store = new Store(state_dir_path);
+ std::atomic<bool> quit;

CollectionManager & collectionManager = CollectionManager::get_instance();
- collectionManager.init(store, 4, "abcd");
- collectionManager.load();
+ collectionManager.init(store, 4, "abcd", quit);
+ //collectionManager.load();

std::vector<field> fields_to_index = {
field("lang", field_types::STRING, true),
06:30
sane
06:30 AM
any comment on this? ๐Ÿ‘€
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:30 AM
Try using v0.23 branch. That's where I added a bunch of ARM related changes to get it compile for ARM 64.
sane
Photo of md5-e690dd6df4555b42c0bb7ea2c3e5ac16
sane
06:31 AM
okay...I'll try
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
06:31 AM
I think it should work from that branch. I was able to compile on AWS Graviton instance and run it fine.
sane
Photo of md5-e690dd6df4555b42c0bb7ea2c3e5ac16
sane
06:33 AM
ohk...I'll try

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3015 threads (79% resolved)

Join Our Community

Similar Threads

Troubleshooting Typesense Connection Issue and Data Retrieval

Felix encountered issues connecting to a server-created typesense and retrieving data collections. Kishore Nallan and Jason provided guidance, highlighting errors in the original code and suggesting changes to the URL and curl command.

63
24mo

Issue Resolution and Upgrade Problems in Typesense Version 0.26rc16

Ankit reported an issue with Typesense, which was addressed by Kishore Nallan and Jason. However, Ankit experienced difficulties while trying to upgrade, with the server status showing as "Not ready or lagging" 503. The resolution remains incomplete.

1

19
2mo

Trouble with DocSearch Scraper and Pipenv Across Multiple OSs

James ran into errors when trying to build Typesense DocSearch Scraper from scratch, and believes itโ€™s because of a bad Pipfile.lock. Jason attempted to replicate the error, and spent hours trying to isolate the issue but ultimately fixed the problem and copied his bash history for future reference. The conversation touches briefly on the subject of using a virtual machine for testing.

7

161
10mo

Troubleshooting 400 Error When Upgrading Typesense Firestore Extension

Orion experienced a `400` error after updating the Typesense Firestore extension, causing issues with cloud functions. They traced the issue back to a data type conflict in their Typesense collection schema after updating. With help from Jason and Kishore Nallan, they resolved the issue by recreating the collection.

5

96
14mo

ARM Support for Typesense on AWS Graviton Servers

Tatu inquires on ARM support for Typesense. Kishore Nallan informs it's on the roadmap with end of year completion. After some troubleshooting, they successfully test an ARM build, preparing it for the 0.23 release.

1

20
26mo