| From: | Aditya Kamath <Aditya(dot)Kamath1(at)ibm(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Srirama Kucherlapati <sriram(dot)rk(at)in(dot)ibm(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Noah Misch <noah(at)leadboat(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, "peter(at)eisentraut(dot)org" <peter(at)eisentraut(dot)org>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "hlinnaka(at)iki(dot)fi" <hlinnaka(at)iki(dot)fi>, "tristan(at)partin(dot)io" <tristan(at)partin(dot)io>, "postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com" <postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com> |
| Subject: | RE: AIX support |
| Date: | 2026-02-17 17:03:00 |
| Message-ID: | LV8PR15MB64882BB0FEFB9E09320D5CD5D66DA@LV8PR15MB6488.namprd15.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Tom and community members,
Please find attached the patch which applied after Tom’s series of 7 patches adds fixes the last bit of test cases running issue discussed in this thread. (See: v6-0008-Add-opt-freeware-lib-path-to-Makefile.aix.patch)
>Aditya Kamath <Aditya(dot)Kamath1(at)ibm(dot)com> writes:
>> Just that if someone runs test cases without disabling rpath then the test cases won’t run.(Only while using the GNU build system in AIX)
>Hmm, I'm not sure why that should be. All the cases I've tried work
fine, and I'm not disabling rpath.
exec(): 0509-036 Cannot load program /home/post_guy/postgres_latest/postgres/tmp_install/usr/local/pgsql/bin/postgres because of the following errors:
0509-150 Dependent module libicuuc73.a(libicuuc73.so) could not be loaded.
0509-022 Cannot load module libicuuc73.a(libicuuc73.so).
0509-026 System error: A file or directory in the path name does not exist.
We get the error above in the test log if we do not have /opt/freeware/lib in the blibpath calculated by rpath where the open source libraries (Ex: libicu in this case) exist in AIX.
dump -Hov -X64 ./src/bin/initdb/initdb
***Import File Strings***
INDEX PATH BASE MEMBER
0 /usr/local/pgsql/lib:/usr/lib:/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/13/
We do not have /opt/freeware/lib/ here which causes test cases to fail.
>> How about adding "/opt/freeware/lib" to the calculation like the above lines. This is the standard path where all AIX open-source freeware libraries will exist, and system libraries will be in /usr/lib. We have this differentiation in AIX.
>Okay. In my testing that's already gotten into LDFLAGS at this point,
but I can't see any harm in hard-wiring it into the list given that
we're already hard-wiring /usr/lib and /lib.
Sure Tom. I have added this in the patch attached.
Thank you everyone in this thread for all your help and support. Thank you Tom once again for your guidance.
Kindly let me know what you think.
Have a great day ahead.
Thanks and regards,
Aditya.
| Attachment | Content-Type | Size |
|---|---|---|
| v6-0008-Add-opt-freeware-lib-path-to-Makefile.aix.patch | application/octet-stream | 1.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Corey Huinker | 2026-02-17 17:04:21 | Re: generating function default settings from pg_proc.dat |
| Previous Message | Timur Magomedov | 2026-02-17 16:59:28 | Re: [WIP]Vertical Clustered Index (columnar store extension) - take2 |