| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | Sacha Hottinger <itdo(at)cndag(dot)onmicrosoft(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Building PosgresSQL with LLVM fails on Solaris 11.4 |
| Date: | 2023-12-06 18:01:33 |
| Message-ID: | 20231206180133.2gwzreuflfs6tten@awork3.anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On 2023-12-01 23:06:59 +0000, Sacha Hottinger wrote:
> // I used the patch command to patch the src/backend/port/Makefile with your attached file and tried again with the Sun Studio compiler. There is now a different error at this stage:
> …
> /opt/developerstudio12.6/bin/cc -m64 -xarch=native -Xa -v -O -I../../../src/include -c -o pg_shmem.o pg_shmem.c
> echo | /usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I../../../src/include -flto=thin -emit-llvm -c -xc -o tas.bc tas.s
> tas.s:1:1: error: expected identifier or '('
> !-------------------------------------------------------------------------
> ^
> 1 error generated.
That's me making a silly mistake... I've attached at an updated, but still
blindly written, diff.
> // Have attached the config.log, gmake all full log, and patched Makefile.
Could you attach config.log and gmake for the gcc based build? Because so far
I have no idea what causes the linker issue there.
Greetings,
Andres Freund
| Attachment | Content-Type | Size |
|---|---|---|
| v2-hack-sun-studio-llvm.diff | text/x-diff | 633 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2023-12-06 18:52:59 | Re: generic plans and "initial" pruning |
| Previous Message | Peter Geoghegan | 2023-12-06 17:31:56 | Re: Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans) |