Re: Compile error while building postgresql 10.3 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Compile error while building postgresql 10.3
Date
Msg-id 28853.1521489010@sss.pgh.pa.us
Whole thread Raw
In response to Re: Compile error while building postgresql 10.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Compile error while building postgresql 10.3  (Andres Freund <andres@anarazel.de>)
Re: Compile error while building postgresql 10.3  (Terry Phelps <tgphelps50@gmail.com>)
List pgsql-hackers
[ please keep the list cc'd ]

Terry Phelps <tgphelps50@gmail.com> writes:
> I can barely read a configure.in file, but here's what I think you're
> asking for. If not, I'll try again:

> configure:15453: checking for _mm_crc32_u8 and _mm_crc32_u32 with
> CFLAGS=-msse4.2
> configure:15475: cc -o conftest -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
> -Wformat-security -fno-strict-aliasing -fwrapv
> -Wno-unused-command-line-argument -I/usr/local/include -msse4.2
> -L/usr/local/lib  conftest.c -lz -lreadline -lcrypt -lm  >&5
> configure:15475: $? = 0
> configure:15484: result: yes

Interesting.  So it looks like configure *did* decide that -msse4.2
is needed.  What do you get from "grep sse4 src/Makefile.global" ?
What I'd expect is

CFLAGS_SSE42 = -msse4.2
PG_CRC32C_OBJS = pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o

If you see that, then the next question is why CFLAGS_SSE42 isn't
getting propagated into the build of pg_crc32c_sse42.o, which would
seem to suggest a problem with gmake.  What make version are you
using?

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Compile error while building postgresql 10.3
Next
From: Tomas Vondra
Date:
Subject: Re: [PROPOSAL] Shared Ispell dictionaries