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 1ey0tu-0003Zt-Ha for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Mar 2018 19:56:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ey0tt-0003XY-7P for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Mar 2018 19:56:57 +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 1ey0s2-0008IH-Rn for pgsql-hackers@lists.postgresql.org; Mon, 19 Mar 2018 19:55:02 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ey0rv-0007TO-Mz for pgsql-hackers@lists.postgresql.org; Mon, 19 Mar 2018 19:55:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D612020BCC; Mon, 19 Mar 2018 15:54:53 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 19 Mar 2018 15:54:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=h9EWDsKhETiQhWxv1XXp+pr3llrb65AHCSGAymlOEzY=; b=ksx6J009 KsUokzQVSbj8aP7dAEZSwCUUnqvIF+HoPL6vBVi1vzijQeSHWwBIrN3dkpCI8b2x 2BjBeQ+Big2YdChZjU48+qVBt89bXBYrJ+amcIquj/+cp8C5X39uI82z/ihjlLJ0 1AE+1E09zOk8XM549hhGLwhc/O6NVi+0St6HAlFADoffypx8w9/G/klHCdkKGaI9 bdQtptBvisXB87hEwPnF0h4b/DXIqtKpemgtxogZtWDLUBqiGXVXPNGJE8Kqkogw FNgnhGffiiARC3bmQYt4fGD4hsogxkWPOi3r2gKaNvdtU6TQcxasoSNX9UqBa0EE Ox749ndJskGvJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=h9EWDsKhETiQhWxv1XXp+pr3llrb6 5AHCSGAymlOEzY=; b=kCxR2LB9WUoJ/J10hEVqjp7wh50gJTprBFKBGsoNPfDkr 3VksMeqRN9DXnHaI8l1lqLj6Wp8LnpOGFpYIzdpc70nFJTtv/p3u2EbE4duwHrS4 n7zgD0Ub4cVmHvhX7nxapRSz0AZB8qaFjbwTo0QD/Mhp1w6kXQO13RXr0ztQslWI ZT4HrvXvU4rAp1SUVA8GDTUXzrGTRZXAdBotAl2QeWBPara2arLAImhnDkO1uVFc ZwJjupFGt6kjrHDPUHsnUJH2dw9IuvDlH35rLCFGO+ddmmKMJp2c8k5JqJDoFYoK F8+zeCclEcLP7RQHAB3yz6CM/FJKs1sBN3nc8C8rg== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 5FBFC7E0DF; Mon, 19 Mar 2018 15:54:53 -0400 (EDT) Date: Mon, 19 Mar 2018 12:54:51 -0700 From: Andres Freund To: Tom Lane Cc: Terry Phelps , pgsql-hackers@lists.postgresql.org Subject: Re: Compile error while building postgresql 10.3 Message-ID: <20180319195451.vxymrucrnxwpbzw3@alap3.anarazel.de> References: <13506.1521487746@sss.pgh.pa.us> <28853.1521489010@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28853.1521489010@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-03-19 15:50:10 -0400, Tom Lane wrote: > [ 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? There seems to be something sketchy afoot here, even outside of CFLAGS_SSE42 itself. From the original email: cc -I/usr/local/include -I../../src/port -DFRONTEND -I../../src/include -c -o pg_crc32c_sse42.o pg_crc32c_sse42.c isn't this missing a number of important flags? Like at least -fno-strict-aliasing -fwrapv -fexcess-precision=standard? Greetings, Andres Freund