Summary: | multimedia/ffmpeg: Fails to build with gcc | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Randy Westlund <rwestlun> | ||||
Component: | Individual Port(s) | Assignee: | Thomas Zander <riggs> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | riggs | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(multimedia) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Randy Westlund
2015-06-08 19:22:36 UTC
(In reply to Randy Westlund from comment #0) You could remove the lines in the port Makefile: .if ${ARCH} == "armv6" CONFIGURE_ENV+= ASFLAGS=-no-integrated-as .endif to get rid of this compiler option. What are you trying to accomplish by compiling it with gcc instead clang? (In reply to Thomas Zander from comment #1) I can test that out this week. I'm trying GCC because ffmpeg crashes with SIGBUS when built with Clang for arm: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200609 Removing those lines lets it successfully compile with GCC 4.9, although I get the same SIGBUS crash as with Clang. I suppose the fix for this PR would be to make that option conditional on both armv6 and clang. Is this SIGBUS crash still occurring? If not, can this issue be closed? (In reply to Thomas Zander from comment #4) The patch from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200609 is still needed to make ffmpeg build with GCC. That patch also fixes the SIGBUS. (In reply to Randy Westlund from comment #5) But now there is the illegal instruction crash when using fmuls that you mention in bug 200609, correct? If so, let's deal with and discuss the issue there. This bug report is about the build failure when using gcc which is still fixed when adding --disable-fast-unaligned, correct? (In reply to Thomas Zander from comment #6) Yes and no. --disable-fast-unaligned fixes the SIGBUS from bug 200609 that occurs regardless of the compiler. That same patch adds -no-integrated-as, which fixes the build with GCC (and would resolve this PR). A commit references this bug: Author: riggs Date: Sun Jul 12 16:35:59 UTC 2015 New revision: 391821 URL: https://svnweb.freebsd.org/changeset/ports/391821 Log: Fix build break when compiling with gcc PR: 200714 Submitted by: rwestlun@gmail.com Changes: head/multimedia/ffmpeg/Makefile Committed the build fix. Let's address the illegal instruction issue via the other PR once you get back to testing. |