Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2018 12:21:10 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Palle Girgensohn <girgen@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: clang, i386 and SSE2
Message-ID:  <h8gn-zwpl-wny@FreeBSD.org>
In-Reply-To: <17F4B2D0-0E52-4672-BFB7-AA4CDDE5399B@FreeBSD.org> (Palle Girgensohn's message of "Sun, 11 Nov 2018 00:38:28 %2B0100")
References:  <201811100112.wAA1CMUr010998@beefy10.nyi.freebsd.org> <17F4B2D0-0E52-4672-BFB7-AA4CDDE5399B@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Palle Girgensohn <girgen@FreeBSD.org> writes:


>> Log URL:        http://beefy10.nyi.freebsd.org/data/112i386-default/484565/logs/postgresql95-client-9.5.15_1.log
[...]
>> checking whether the C compiler still works... yes
>> configure: error: Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc.
>> ===>  Script "configure" failed unexpectedly.
>
> Can someone shed some light on this error. It can't be reproduced when
> cross compiling using poudriere on an amd64 hardware. "It just works"
> for me.

Can you share a poudriere build log for successful build? Maybe you have
CPUTYPE defined in make.conf e.g., CPUTYPE >= pentium4 implies SSE2.

11.2 i386 jail on 13.0 amd64 host fails here as well: https://ptpb.pw/n8lF

> How do I fix this without breaking for CPU's that don't support sse2

By researching upstream rationale: in code comment, upstream commit and
associated bug(s). If Clang on FreeBSD is not affected comment out the
configure error, otherwise switch to USES=compiler:gcc-c++11-lib.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h8gn-zwpl-wny>