clang, i386 and SSE2

Jan Beich jbeich at FreeBSD.org
Sun Nov 11 11:21:16 UTC 2018


Palle Girgensohn <girgen at 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.


More information about the freebsd-ports mailing list