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 1eyB6n-0001XU-Ec for pgsql-admin@arkaria.postgresql.org; Tue, 20 Mar 2018 06:50:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyB6l-0006oZ-UC for pgsql-admin@arkaria.postgresql.org; Tue, 20 Mar 2018 06:50:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyB6l-0006oQ-JX for pgsql-admin@lists.postgresql.org; Tue, 20 Mar 2018 06:50:55 +0000 Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=smadev.internal.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyB6h-0006Gz-8a for pgsql-admin@lists.postgresql.org; Tue, 20 Mar 2018 06:50:54 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id w2K6ohp9081070 for ; Tue, 20 Mar 2018 08:50:43 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Compile error while building postgresql 10.3 To: pgsql-admin@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: Date: Tue, 20 Mar 2018 08:50:43 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 19/03/2018 21:10, Terry Phelps wrote: > I'm new to PostgreSQL but not to Unix or databases, and am reading the (wonderful) docs and learning. I tried to determine which mailing list to send this to, and this one seems to fit best. > > Just for fun, I am trying to build postgres from source on FreeBSD 11. Yes, I know I don't need to, and I have already installed the 10.3 server and client packages, and they run fine. I did a 'git > clone' today, and have hours-old source code. > > So, I install the prereqs, and did a 'configure' and 'make', and expected it to 'just work'. However, I get this compile error: > > cc -I/usr/local/include -I../../src/port -DFRONTEND -I../../src/include    -c -o pg_crc32c_sse42.o pg_crc32c_sse42.c > pg_crc32c_sse42.c:37:18: error: always_inline function '_mm_crc32_u64' requires >       target feature 'ssse3', but would be inlined into function >       'pg_comp_crc32c_sse42' that is compiled without support for 'ssse3' >                 crc = (uint32) _mm_crc32_u64(crc, *((const uint64 *) p)); >                                ^ > pg_crc32c_sse42.c:44:9: error: always_inline function '_mm_crc32_u32' requires >       target feature 'ssse3', but would be inlined into function >       'pg_comp_crc32c_sse42' that is compiled without support for 'ssse3' >                 crc = _mm_crc32_u32(crc, *((const unsigned int *) p)); >                       ^ > pg_crc32c_sse42.c:63:9: error: always_inline function '_mm_crc32_u8' requires >       target feature 'ssse3', but would be inlined into function >       'pg_comp_crc32c_sse42' that is compiled without support for 'ssse3' >                 crc = _mm_crc32_u8(crc, *p); >                       ^ > 3 errors generated. > > I googled, and search the archives, and don't see anything applicable. My C compiler is: > > $ cc --version > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) > Target: x86_64-unknown-freebsd11.1 > Thread model: posix What I do is just install gcc : pkg install gcc-6 (you may search for other gcc related pkgs as well) > > I don't know what else you might want to know, but I'll supply it, if you ask. > > Any ideas what's wrong? -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt