From owner-freebsd-multimedia@freebsd.org Mon Nov 25 23:57:21 2019 Return-Path: Delivered-To: freebsd-multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D44691BE7EE for ; Mon, 25 Nov 2019 23:57:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47MP8x5JGfz45gY for ; Mon, 25 Nov 2019 23:57:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B5E5F1BE7ED; Mon, 25 Nov 2019 23:57:21 +0000 (UTC) Delivered-To: multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B41441BE7EB for ; Mon, 25 Nov 2019 23:57:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47MP8x4NNCz45gX for ; Mon, 25 Nov 2019 23:57:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 76E881C811 for ; Mon, 25 Nov 2019 23:57:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xAPNvLlB015951 for ; Mon, 25 Nov 2019 23:57:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xAPNvL6t015950 for multimedia@FreeBSD.org; Mon, 25 Nov 2019 23:57:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 242147] multimedia/ffmpeg: Illegal instruction on i586 Date: Mon, 25 Nov 2019 23:57:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: blocked keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2019 23:57:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242147 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |210505 Keywords| |regression --- Comment #4 from Jan Beich --- Likely a regression from options refactor in graphics/opencv which makes i3= 86 use -msse -msse2 -mfpmath=3Dsse on all files. For runtime detection to work= only functions (or files) that use SSE2 instructions should be built with -msse2, letting the caller check CPU features and decide whether to use optimized functions. If the caller is built with -msse2 you get a crash on pre-SSE2 hardware. Unfortunately, upstream checks SSE2 support at compile time. https://github.com/opencv/opencv/search?q=3DcheckHardwareSupport https://github.com/opencv/opencv/blob/3.4.1/cmake/OpenCVCompilerOptimizatio= ns.cmake#L71 While the following may help # OpenCV minimum SIMD without runtime detection CMAKE_ARGS+=3D ${CMAKE_ARGS_${ARCH}} CMAKE_ARGS_amd64=3D-DCPU_BASELINE_DISABLE:STRING=3DSSE3 CMAKE_ARGS_i386=3D-DCPU_BASELINE_DISABLE:STRING=3DSSE it breaks building SIMD-optimized code FAILED: modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o= =20 /usr/bin/c++ -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=3D1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCV_CPU_COMPILE_AVX=3D1 -DCV_CPU_COMPILE_POPCNT=3D1 -DCV_CPU_COMPILE_SSE2= =3D1 -DCV_CPU_COMPILE_SSE3=3D1 -DCV_CPU_COMPILE_SSE4_1=3D1 -DCV_CPU_COMPILE_SSE4= _2=3D1 -DCV_CPU_COMPILE_SSE=3D1 -DCV_CPU_COMPILE_SSSE3=3D1 -DCV_CPU_DISPATCH_MODE= =3DAVX -I/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-3.4.1/modules/core/in= clude -I/wrkdirs/usr/ports/graphics/opencv-core/work/opencv-3.4.1/modules/core/src -Imodules/core -isystem . -isystem /usr/local/include/eigen3 -O2 -pipe=20 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing= =20=20 -isystem /usr/local/include -std=3Dc++11 -fsigned-char -W -Wall -Werror=3Dreturn-type -Werror=3Dnon-virtual-dtor -Werror=3Daddress -Werror=3Dsequence-point -Wformat -Werror=3Dformat-security -Wmissing-decla= rations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-implicit-fallthrough -fdiagnostics-show-option -pthread -Qunused-argum= ents -fomit-frame-pointer -ffunction-sections -fdata-sections -mfpmath=3D387 -fvisibility=3Dhidden -fvisibility-inlines-hidden -O2 -pipe=20 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing= =20=20 -isystem /usr/local/include -std=3Dc++11 -DNDEBUG -fPIC -std=3Dc++11 -m= sse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -MD -MT modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o -MF modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o.d -o modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o -c modules/core/mathfuncs_core.avx.cpp error: the '387' unit is not supported with this instruction set Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210505 [Bug 210505] [exp-run] graphics/opencv: Update to 3.4.1 --=20 You are receiving this mail because: You are the assignee for the bug.=