Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey0nV-0003Gp-IX for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Mar 2018 19:50:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ey0nT-0003LG-RO for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Mar 2018 19:50:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey0nT-0003Kz-Kg for pgsql-hackers@lists.postgresql.org; Mon, 19 Mar 2018 19:50:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey0nN-0007IE-Bw for pgsql-hackers@lists.postgresql.org; Mon, 19 Mar 2018 19:50:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2JJoA7e028854; Mon, 19 Mar 2018 15:50:10 -0400 From: Tom Lane To: Terry Phelps cc: pgsql-hackers@lists.postgresql.org Subject: Re: Compile error while building postgresql 10.3 In-reply-to: References: <13506.1521487746@sss.pgh.pa.us> Comments: In-reply-to Terry Phelps message dated "Mon, 19 Mar 2018 15:36:06 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28852.1521489010.1@sss.pgh.pa.us> Date: Mon, 19 Mar 2018 15:50:10 -0400 Message-ID: <28853.1521489010@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk [ please keep the list cc'd ] Terry Phelps 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