-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
libvpx 1.1.0 failing to install #12567
Comments
OSX 10.8, XCode-4.4. |
I noticed a lot of these messages in your gist -
to force darwin11 and see if that work, like this
The problem is most likely upstream, but I'm trying to help us figure out what is causing it. I can't find any configure option that produces verbose output. So that's a drag. |
brew install yasm --HEAD did not fix the error. |
Hmm. I guess this will have to be reported to the libvpx developers then. If you did a |
When building libvpx with brew install -vd, a folder named /vp8/ is mentioned in the output, where all the .asm.d files should be. |
When you use
In addition to the files that I listed, you should see some other files created during the install including the one we seem to be missing. You can then inspect the file in question similar to this way (but use the right name and path):
At that point, you would probably copy the file into your home directory so that you can attach it to a libvpx bug report if the file exists. After you are done with everything, you type |
it compiles cleanly when the regexp in build/make/gen_asm_deps.sh:45 is fixed, there's a stray repetition operator immediately before the brackets: ?+ definitely needs to be reported upstream |
I filed a bug against libvpx |
@frobbnik Thanks for finding that. I'll work up a patch and ask @alexzautke to try it. |
@frobbnik Because I don't know REs, let me double check that I have this right: Original build/make/gen_asm_deps.sh:45 Proposed fix for that line |
I have the exact same error with similar configurations on OSX 10.8 and Xcode 4.5. No luck here yet, but I hope there is a solution soon. |
As a workaround just run |
@alexzautke Could you post a follow message to your bug report and mention what @frobbnik found? You can include this url to help them see what he said: #12567 (comment) |
@2bits only one of the operators needs to be removed, either the question mark or the plus. I ended up just patching it in the libvpx formula, thusly: require 'formula'
class Libvpx < Formula
homepage 'http://www.webmproject.org/code/'
url 'http://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2'
sha1 '356af5f770c50cd021c60863203d8f30164f6021'
depends_on 'yasm' => :build
def patches; DATA; end
def options
[
['--gcov', 'Enable code coverage'],
['--mem-tracker', 'Enable tracking memory usage'],
['--visualizer', 'Enable post processing visualizer']
]
end
def install
args = ["--prefix=#{prefix}",
"--enable-pic",
"--enable-vp8",
"--disable-debug",
"--disable-examples",
"--disable-runtime-cpu-detect"]
args << "--enable-gcov" if ARGV.include? "--gcov" and not ENV.compiler == :clang
args << "--enable-mem-tracker" if ARGV.include? "--mem-tracker"
args << "--enable-postproc-visualizer" if ARGV.include? "--visualizer"
# see http://code.google.com/p/webm/issues/detail?id=401
# Configure misdetects 32-bit 10.6.
# Determine if the computer runs Darwin 9, 10, or 11 using uname -r.
osver = %x[uname -r | cut -d. -f1].chomp
if MacOS.prefer_64_bit? then
args << "--target=x86_64-darwin#{osver}-gcc"
else
args << "--target=x86-darwin#{osver}-gcc"
end
mkdir 'macbuild' do
system "../configure", *args
system "make install"
end
end
end
__END__
--- a/build/make/gen_asm_deps.sh 2012-05-08 18:14:00.000000000 -0500
+++ b/build/make/gen_asm_deps.sh 2012-06-09 17:51:45.000000000 -0500
@@ -42,7 +42,7 @@
[ -n "$srcfile" ] || show_help
sfx=${sfx:-asm}
-includes=$(LC_ALL=C egrep -i "include +\"?+[a-z0-9_/]+\.${sfx}" $srcfile |
+includes=$(LC_ALL=C egrep -i "include +\"+[a-z0-9_/]+\.${sfx}" $srcfile |
perl -p -e "s;.*?([a-z0-9_/]+.${sfx}).*;\1;")
#" restore editor state
for inc in ${includes}; do |
Awesome, thanks for posting that. I tested yourt fix on Lion and Snow Leopard and got no problems using it. I will make a pull request and see what they say. Is there anyone with a google account who can post this fix to the libvpx bug report please? |
libvpx-1.1.0 has a problem on Mt. Lion where an asm file is not created due to an extra operator in a regular expression, where the file `asm_enc_offsets.asm` goes missing. Add a patch to fix the regular expression. See the issue and formula comments for links to the analysis. Remove the unneeded `--disable-debug` and `--enable-vp8` flags because they are the default. Tested on Snow Leopard, Lion, and Mt. Lion using XCode-4.0.2, 4.3.3, and 4.5. Fixes Homebrew#12567
I posted the fix to the bug report. |
libvpx-1.1.0 has a problem on Mt. Lion where an asm file is not created due to an extra operator in a regular expression, where the file `asm_enc_offsets.asm` goes missing. Add a patch to fix the regular expression. See the issue and formula comments for links to the analysis. Remove the unneeded `--disable-debug` and `--enable-vp8` flags because they are the default. Tested on Snow Leopard, Lion, and Mt. Lion using XCode-4.0.2, 4.3.3, and 4.5. Fixes Homebrew#12567 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
libvpx-1.1.0 has a problem on Mt. Lion where an asm file is not created due to an extra operator in a regular expression, where the file `asm_enc_offsets.asm` goes missing. Add a patch to fix the regular expression. See the issue and formula comments for links to the analysis. Remove the unneeded `--disable-debug` and `--enable-vp8` flags because they are the default. Tested on Snow Leopard, Lion, and Mt. Lion using XCode-4.0.2, 4.3.3, and 4.5. Fixes Homebrew#12567 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
libvpx-1.1.0 has a problem on Mt. Lion where an asm file is not created due to an extra operator in a regular expression, where the file `asm_enc_offsets.asm` goes missing. Add a patch to fix the regular expression. See the issue and formula comments for links to the analysis. Remove the unneeded `--disable-debug` and `--enable-vp8` flags because they are the default. Tested on Snow Leopard, Lion, and Mt. Lion using XCode-4.0.2, 4.3.3, and 4.5. Fixes Homebrew#12567 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Fixed the quantifier that optionally matches a quote before the filename. This was originally reported in the homebrew project[1]. Note that this fix is different than patch posted there, as there are some platforms that don't have the quote, so it needs to be included in the expression optionally. [1]: Homebrew/legacy-homebrew#12567 (comment) Change-Id: Ibf2ed93ce169d80932e877f942dc4eeb03867f8b
Fixed the quantifier that optionally matches a quote before the filename. This was originally reported in the homebrew project[1]. Note that this fix is different than patch posted there, as there are some platforms that don't have the quote, so it needs to be included in the expression optionally. [1]: Homebrew/legacy-homebrew#12567 (comment) Change-Id: Ibf2ed93ce169d80932e877f942dc4eeb03867f8b
I'm trying to install ffmpeg, but its dependency libvpx keeps failing to install.
It looks like libvpx is compiled successfully, but trying to install it via make install results in an error.
brew install: https://gist.github.com/2859662
brew --config: https://gist.github.com/2859669
brew doctor: https://gist.github.com/2859683
The text was updated successfully, but these errors were encountered: