Re: Building PosgresSQL with LLVM fails on Solaris 11.4 - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Building PosgresSQL with LLVM fails on Solaris 11.4
Date
Msg-id 20231221122738.lp44zedlhsol5qxb@alap3.anarazel.de
Whole thread Raw
In response to AW: Building PosgresSQL with LLVM fails on Solaris 11.4  (Sacha Hottinger <itdo@cndag.onmicrosoft.com>)
List pgsql-hackers
Hi,

On 2023-12-13 15:18:02 +0000, Sacha Hottinger wrote:
> Thanks for your reply.
> The reason I was suspicious with the warnings of the gcc build was, because gmake check reported 138 out of 202 tests
tohave failed. I have attached the output of gmake check.
 

That'll likely be due to assertion / segmentation failures.

You'd need to enable core dumps and show a backtrace.

I assume that if you run tests without JIT support (e.g. by export
PGOPTIONS='-c jit=0'; gmake check), no such problem occurs?


> After you mentioned that gcc did not report any errors, just warnings, we installed the build.
> First, it seeemed to work and SELECT pg_jit_available(); showed "pg_jit_available" as "t" but the DB showed strange
behaviour.I.e. not always, but sometimes running "show parallel_tuple_cost" caused postmaster to restart a server
process.
> We had to back to the previous installation.
> 
> It seems there is definitievly something wrong with the result gcc created.

I suspect that the LLVM version you used does something wrong on sparc. Which
version of LLVM is it?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: Detecting some cases of missing backup_label
Next
From: Tomas Vondra
Date:
Subject: Re: index prefetching