zettadb / cloudnative

Apache License 2.0
0 stars 1 forks source link

port to loongarch64 #77

Open jd-zhang opened 2 years ago

jd-zhang commented 2 years ago

Issue migrated from trac ticket # 539 www.kunlunbase.com

component: Testing | priority: major

2022-04-01 12:17:29: zhangjindong@zettadb.com created the issue


This record the process for port kunlun to loongarch64

jd-zhang commented 2 years ago

2022-04-01 14:19:30: zhangjindong@zettadb.com commented


For open-source storage node, it can build on loongarch64 directly.

For enterprise version, one change needs to be performed for icu4c, which to adds loongarch or __loongarch64 to double-conversion-utils.h

for both open-source and enterprise server node, the following things need to be done:

  • rebuild mariadb, since the mariadb library in the source package is for x86_64
  • change config.guess to support loongarch64, manually added or copied from latest postgres code.
  • Change s_lock.h to support loongarch64, applying the patch from https://github.com/postgres/postgres/pull/75

All changes are done.

jd-zhang commented 2 years ago

2022-04-25 17:48:10: zhangjindong@zettadb.com commented


The rest is build cluster_manager on longarch64