Re:about cross-compiling issue - Mailing list pgsql-hackers

From Long Song
Subject Re:about cross-compiling issue
Date
Msg-id 674f668b.5430.18fa931ee97.Coremail.songlong88@126.com
Whole thread Raw
In response to about cross-compiling issue  ("陈亚杰" <1441147871@qq.com>)
List 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@qq.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!

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Avoid possible dereference null pointer (src/backend/catalog/pg_depend.c)
Next
From: Ashutosh Bapat
Date:
Subject: Re: Avoid possible dereference null pointer (src/backend/catalog/pg_depend.c)