Re: Compile error while building postgresql 10.3

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Compile error while building postgresql 10.3
Date: 2018-03-20 06:50:43
Message-ID: fc973885-23eb-09f1-b9bc-142bcbb4f336@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael.Dietrich 2018-03-20 08:29:43 AW: Connect to db denied for superuser inherited by group
Previous Message Terry Phelps 2018-03-19 20:50:04 Re: Compile error while building postgresql 10.3

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2018-03-20 06:52:09 XID-assigned idle transactions affect vacuum's job.
Previous Message Dilip Kumar 2018-03-20 06:30:47 Re: Problem while setting the fpw with SIGHUP