Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2024 19:18:06 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 4c63f3f61aff - 2024Q1 - audio/kaldi: Unbreak on i386
Message-ID:  <202401211918.40LJI6a1055168@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2024Q1 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c63f3f61aff6abad981b89f7ab276831b9733c7

commit 4c63f3f61aff6abad981b89f7ab276831b9733c7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-21 19:16:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-21 19:18:02 +0000

    audio/kaldi: Unbreak on i386
    
    The build looks for the __SSE2_MATH__ macro that clang doesn't define.
    
    (cherry picked from commit c5001da196d78e21aae31258b54b7216add17a7f)
---
 audio/kaldi/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/kaldi/Makefile b/audio/kaldi/Makefile
index 1de88fcfcb79..2397362e7254 100644
--- a/audio/kaldi/Makefile
+++ b/audio/kaldi/Makefile
@@ -26,7 +26,7 @@ CMAKE_OFF=	KALDI_BUILD_TEST
 CMAKE_ARGS=	-DPython_EXECUTABLE=${PYTHON_CMD} \
 		-DKALDI_VERSION=${PORTVERSION}
 
-CXXFLAGS_i386=	-msse -mfpmath=sse # SSE is off by default on i386 and compilation fails: /usr/local/include/fst/float-weight.h:99:2: error: "Please compile with -msse -mfpmath=sse, or equivalent."
+CXXFLAGS_i386=	-msse -mfpmath=sse -D__SSE2_MATH__ # __SSE2_MATH__ is a gcc-specific macro that the code looks for: https://gcc.gnu.org/legacy-ml/gcc-patches/2002-08/msg01345.html
 
 post-extract:
 	@${FIND} ${WRKSRC} -name "*.orig" -delete



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