[Pkg-postgresql-public] Bug#756368: postgresql-9.4 FTBFS on alpha: incorrect pg_read_barrier definition

Michael Cree mcree at orcon.net.nz
Tue Jul 29 09:59:53 UTC 2014

Source: postgresql-9.4
Version: 9.4~beta2-1
Severity: wishlist
Tags: patch
User: debian-alpha at lists.debian.org
Usertags: alpha

postgresql-9.4 FTBFS on alpha.  From the build log [1]:

cc -g -O2 -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -DLINUX_OOM_SCORE_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -I../../../src/include -I/«PKGBUILDDIR»/build/../src/include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.6  -c -o bgworker.o /«PKGBUILDDIR»/build/../src/backend/postmaster/bgworker.c
/tmp/ccNKo8Fb.s: Assembler messages:
/tmp/ccNKo8Fb.s:764: Error: unknown opcode `rmb'
as: BFD (GNU Binutils for Debian) internal error, aborting at ../../gas/write.c line 603 in size_seg

This occurs because in src/include/storage/barrier.h the definition of
pg_read_barrier() for Alpha maps to the CPU instruction "rmb" but there
is no such CPU instruction on Alpha!

I attach a patch that fixes the pg_read_barrier() definition to use the
correct CPU instruction for a read memory barrier on Alpha.  With that
postgresql-9.4 builds to completion on Alpha.


[1] http://buildd.debian-ports.org/status/fetch.php?pkg=postgresql-9.4&arch=alpha&ver=9.4~beta2-1&stamp=1406489832
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alpha-fix-read-memory-barrier.patch
Type: text/x-diff
Size: 733 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20140729/0adf6b2a/attachment.patch>

More information about the Pkg-postgresql-public mailing list