Building postgresql armv7 on emulated x86_64 - Mailing list pgsql-hackers

From Marek Kulik
Subject Building postgresql armv7 on emulated x86_64
Date
Msg-id CAKXfsEccmH5O4PrGn8B-HC8EGGGrZtsDxRdEPVQ2r3xJLny6eg@mail.gmail.com
Whole thread Raw
Responses Re: Building postgresql armv7 on emulated x86_64
List pgsql-hackers
Hi,

I cannot compile postgresql for armv7. I tested a bunch of versions of gcc and all have the same issue. Sometimes disabling optimization allows me to compile failed files but it is not a rule. The same error will happen in another file and changing optimization parameters or lto options does not make a difference.

Problem is related to dtrace probes code. Compiling without them is successful.

Maybe someone encountered something similar. I'm using Fedora Rawhide. Here is the error:

<mock-chroot> sh-5.1# gcc -I../../../../src/include  -I/usr/include/libxml2   -c -o tuplesort.o tuplesort.c
during RTL pass: mach
tuplesort.c: In function ‘tuplesort_begin_heap’:
tuplesort.c:949:1: internal compiler error: in create_fix_barrier, at config/arm/arm.c:17845
  949 | }
      | ^

...

<mock-chroot> sh-5.1# gcc -I../../../../src/include  -I/usr/include/libxml2   -c -o md.o md.c
during RTL pass: mach
md.c: In function ‘mdwrite’:
md.c:731:1: internal compiler error: in create_fix_barrier, at config/arm/arm.c:17845
  731 | }
      | ^

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Windows build warnings
Next
From: Dilip Kumar
Date:
Subject: Re: row filtering for logical replication