pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Terry Phelps <tgphelps50@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Compile error while building postgresql 10.3
Date: Mon, 19 Mar 2018 15:50:10 -0400
Message-ID: <28853.1521489010@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMUfR_t8h7ZUmMu2bHvkgwG1F6JLdnMjHkrjMnuA4jevKTWpQw@mail.gmail.com>
References: <CAMUfR_vJKnd6oCA28petJ5NFTVyt99xxAEz1PS1zKErhtMc-fw@mail.gmail.com>
	<13506.1521487746@sss.pgh.pa.us>
	<CAMUfR_t8h7ZUmMu2bHvkgwG1F6JLdnMjHkrjMnuA4jevKTWpQw@mail.gmail.com>

[ 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




view thread (19+ messages)  latest in thread

Message-ID: <28853.1521489010@sss.pgh.pa.us>
Permalink:  ../28853.1521489010@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28853.1521489010@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tgphelps50@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Compile error while building postgresql 10.3
  In-Reply-To: <28853.1521489010@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox