svn commit: r484685 - head/multimedia/mswebrtc/files

Jan Beich jbeich at FreeBSD.org
Sun Nov 11 11:45:13 UTC 2018


Author: jbeich
Date: Sun Nov 11 11:45:11 2018
New Revision: 484685
URL: https://svnweb.freebsd.org/changeset/ports/484685

Log:
  multimedia/mswebrtc: unbreak build on i386
  
  webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:46:31: error: always_inline function '_mm_loadu_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx'
        const __m128 xfBuf_re = _mm_loadu_ps(&aec->xfBuf[0][xPos + j]);
                                ^
  webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:52:24: error: always_inline function '_mm_mul_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx'
        const __m128 a = _mm_mul_ps(xfBuf_re, wfBuf_re);
                         ^
  webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:56:24: error: always_inline function '_mm_sub_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx'
        const __m128 e = _mm_sub_ps(a, b);
                         ^
  webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:57:24: error: always_inline function '_mm_add_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx'
        const __m128 f = _mm_add_ps(c, d);
                         ^
  webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:60:7: error: always_inline function '_mm_storeu_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx'
        _mm_storeu_ps(&yf[0][j], g);
        ^
  webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:78:26: error: always_inline function '_mm_set1_ps' requires target feature 'mmx', but would be inlined into function 'ScaleErrorSignalSSE2' that is compiled without support for 'mmx'
    const __m128 k1e_10f = _mm_set1_ps(1e-10f);
                           ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  
  Reported by:	pkg-fallout

Added:
  head/multimedia/mswebrtc/files/
  head/multimedia/mswebrtc/files/patch-CMakeLists.txt   (contents, props changed)

Added: head/multimedia/mswebrtc/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/mswebrtc/files/patch-CMakeLists.txt	Sun Nov 11 11:45:11 2018	(r484685)
@@ -0,0 +1,16 @@
+i386 target on BSDs doesn't include SSE2 by default
+
+--- CMakeLists.txt.orig	2017-07-20 13:56:58 UTC
++++ CMakeLists.txt
+@@ -204,6 +204,11 @@ if(ENABLE_AEC)
+ 			${AEC_SRC_DIR}/aec_core_sse2.c
+ 			${AEC_SRC_DIR}/aec_rdft_sse2.c
+ 		)
++		set_source_files_properties(
++			${AEC_SRC_DIR}/aec_core_sse2.c
++			${AEC_SRC_DIR}/aec_rdft_sse2.c
++			PROPERTIES COMPILE_FLAGS "-msse2"
++		)
+ 	endif()
+ 	include_directories(
+ 		${AEC_SRC_DIR}/include


More information about the svn-ports-all mailing list