From owner-freebsd-ports-bugs@freebsd.org Thu Oct 26 00:27:15 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 174A8E57A01 for ; Thu, 26 Oct 2017 00:27:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 041DC33E9 for ; Thu, 26 Oct 2017 00:27:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9Q0RE8e080971 for ; Thu, 26 Oct 2017 00:27:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222118] multimedia/handbrake handbrake dumps core when navigating to select source Date: Thu, 26 Oct 2017 00:27:15 +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: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: heathn@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 00:27:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222118 --- Comment #22 from heathn@gmail.com --- (In reply to naito.yuichiro from comment #17) Handbrake works just fine with the clang compiler. I've been using my clang-built Handbrake for some time without issue. However, I don't use the i386 arch which is why I wasn't aware of the compiler issue until Vladimir pointed it out. I personally prefer to not have to install a 2nd compiler if it isn't absolutely required but it is not my decision. You are correct that additional patching of the source would be required to= get it to work on i386 but it seems that additional patching will still be requ= ired to use a more recent version of gcc. I installed a i386 instance to see what the issue is and it appears that the build just needs to disable use of the EBX register. Similar to what can be found here: https://trac.ffmpeg.org/ticket/4599. I just haven't found the = time to figure out how best to patch handbrake since its build system is differe= nt from what I'm used to.... Since much of the Handbrake source comes from the ffmpeg project, I looked = at how the multimedia/ffmpeg port works around this issue. In the file multimedia/ffmpeg/files/patch-libavutil-x86-asm.h you can see: -#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILAB= LE)) +#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILAB= LE && !defined(__clang__))) It seems like such a solution would solve the same compiler problem identif= ied by Vladimir...(at least if you want to try to use clang as the compiler) --=20 You are receiving this mail because: You are the assignee for the bug.=