From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Compile error while building postgresql 10.3
Date: Tue, 20 Mar 2018 08:50:43 +0200
Message-ID: <fc973885-23eb-09f1-b9bc-142bcbb4f336@matrix.gatewaynet.com> (raw)
In-Reply-To: <CAMUfR_vJKnd6oCA28petJ5NFTVyt99xxAEz1PS1zKErhtMc-fw@mail.gmail.com>
References: <CAMUfR_vJKnd6oCA28petJ5NFTVyt99xxAEz1PS1zKErhtMc-fw@mail.gmail.com>
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
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: achill@matrix.gatewaynet.com, pgsql-admin@lists.postgresql.org
Subject: Re: Compile error while building postgresql 10.3
In-Reply-To: <fc973885-23eb-09f1-b9bc-142bcbb4f336@matrix.gatewaynet.com>
* 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