Opened 11 years ago

Last modified 6 years ago

#42955 closed defect

x264 @20140124_1 Build failure vs Xcode v5.1 (5B130a) — at Initial Version

Reported by: scdeimos+macports.org@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: xcode51 Cc:
Port: x264

Description

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 (0)

Note: See TracTickets for help on using tickets.