Opened 11 years ago
Last modified 6 years ago
#42955 closed defect
x264 @20140124_1 Build failure vs Xcode v5.1 (5B130a) — at Version 1
Reported by: | scdeimos+macports.org@… | Owned by: | devans@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | xcode51 | Cc: | |
Port: | x264 |
Description (last modified by dbevans (David B. Evans))
x264 @20140124_1 OS X v10.9.2 Xcode v5.1 (5B130a) Apple LLVM version 5.1 (clang-503.0.38)
Install x264 fails with the following error in config.log:
clang: error: unknown argument: '-falign-loops=16' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
It appears that the x264/Portfile:post-path method is not correctly detecting clang, so it is failing to remove the "-falgin-loops=16" configure option.
The following workaround is not currently usable (downloading llvm-3.3-3.3_1.darwin_13.x86_64.tbz2 times out):
sudo port clean x264 sudo port install apple-gcc42 sudo port install x264 configure.compiler=apple-gcc-4.2
The following hack allows install to complete:
mkdir ~/ports/multimedia/x264 cd ~/ports/multimedia/x264 cp /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/x264/Portfile . echo "#Fix error:" >> Portfile echo "#clang: error: unknown argument: '-falign-loops=16' [-Wunused-command-line-argument-hard-error-in-future]" >> Portfile echo "#clang: note: this will be a hard error (cannot be downgraded to a warning) in the future" >> Portfile echo "configure.cflags-append -Qunused-arguments" >> Portfile echo "configure.cppflags-append -Qunused-arguments" >> Portfile cd ~/ports portindex sudo port install x264
HTH, Anthony.
Change History (1)
comment:1 Changed 11 years ago by dbevans (David B. Evans)
Description: | modified (diff) |
---|---|
Keywords: | xcode51 added; mavericks removed |
Owner: | changed from macports-tickets@… to devans@… |
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
Will take a look.
In the future, please make sure to Cc: the maintainer of the port and to use WikiFormatting to improve the readability of plain text such as terminal output and quotations from logs.