Re:about cross-compiling issue

From: "Long Song" <songlong88(at)126(dot)com>
To: 陈亚杰 <1441147871(at)qq(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re:about cross-compiling issue
Date: 2024-05-24 06:02:52
Message-ID: 674f668b.5430.18fa931ee97.Coremail.songlong88@126.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Chen Yajie,

Your provided information is fuzzy, so I can only give some simple suggestions:
1. Use `file dict_snowball.so` to see the detail info of dict_snowball.so, maybe you can get some useful hint.
2. Use gdb to debug the initdb processing, then you can get more detail error info. That will help you figuring out the reason that initdb not working.

At 2024-05-23 16:08:05, "陈亚杰" <1441147871(at)qq(dot)com> wrote:

Hello, I have a question about cross-compiling. I get an error when doing initdb for postgresql for arm64 architecture devices.
The error information is Error relocating /data/postgresql/postgresql-16.3-arm64-v8a-build/tmp_install/usr/postgresql/arm64-v8a/lib/dict_snowball.so: palloc0: symbol not found.
In fact, the library exists in this directory, and the palloc symbol exists but is not defined.
Any tips to go around this issue?
Thanks!

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2024-05-24 06:28:51 Re: Avoid possible dereference null pointer (src/backend/catalog/pg_depend.c)
Previous Message Michael Paquier 2024-05-24 05:33:21 Re: Avoid possible dereference null pointer (src/backend/catalog/pg_depend.c)