Bug 196591 - multimedia/libx264: fails to build on armv6 with clang3.5.0
Summary: multimedia/libx264: fails to build on armv6 with clang3.5.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Kubilay Kocak
Depends on:
Reported: 2015-01-07 13:49 UTC by mikael.urankar
Modified: 2015-01-12 21:07 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (koobs)

import upstream patches for clang350 (36.38 KB, patch)
2015-01-07 13:49 UTC, mikael.urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mikael.urankar 2015-01-07 13:49:23 UTC
Created attachment 151457 [details]
import upstream patches for clang350


Clang enabled the integrated assembler by default and it breaks the libx264 build:
/nxb-bin/usr/bin/cc -O -pipe  -fno-strict-aliasing -mcpu=arm1136jf-s -Wall -I. -I. -I/usr/local/include -std=gnu99 -c -DSTACK_ALIGNMENT=16 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/arm/cpu-a.o common/arm/cpu-a.S
<instantiation>:6:9: error: unknown directive
        .func x264_cpu_neon_test
common/arm/cpu-a.S:33:1: note: while in macro instantiation
function x264_cpu_neon_test

The problem is fixed upstream:

To apply the patch:
cd /usr/ports/multimedia/libx264 ; patch < /path/to/patch
find /usr/ports/multimedia/libx264/files -name "*.orig" -delete

failure log:

with patch log:
Comment 1 Bugzilla Automation freebsd_committer 2015-01-07 13:49:23 UTC
Auto-assigned to maintainer koobs@FreeBSD.org
Comment 2 Sean Bruno freebsd_committer 2015-01-07 16:34:18 UTC
I'll take this as koobs is on vacation.
Comment 3 mikael.urankar 2015-01-12 21:07:06 UTC
fixed in 376488: https://svnweb.freebsd.org/changeset/ports/376488