Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

qemu 1.2.0 fails to compile #14936

Closed
guillaumekh opened this issue Sep 14, 2012 · 18 comments
Closed

qemu 1.2.0 fails to compile #14936

guillaumekh opened this issue Sep 14, 2012 · 18 comments

Comments

@guillaumekh
Copy link
Contributor

Hey,

Qemu is behaving again :)

1.2.0 fails to compile.

I'm running Homebrew on 10.8.1 with Xcode 4.4.1 (with matching command line tools).
My brew doctor reports nothing wrong.

You can find attached the error log attached :

https://gist.github.com/3721988

Can you reproduce this ?

@oarmstrong
Copy link

I'm having same issue. My config.log: https://gist.github.com/3740114

Homebrew 0.9.3 on 10.8.1 Mountain Lion. Have Xcode 4.5 GM with matching CLT.

Brew doctor did have loads of issues but after fixing and rebooting its showing no errors now.

@Sharpie
Copy link
Contributor

Sharpie commented Sep 17, 2012

Could either of you try a brew install qemu --env=std and confirm if it fails in the same way?

@Sharpie Sharpie mentioned this issue Sep 17, 2012
@guillaumekh
Copy link
Contributor Author

It fails too. Here the new fail log https://gist.github.com/3741917.

Here is the result of a diff <(sort log1) <(sort log2) on it : https://gist.github.com/3741996

@Sharpie
Copy link
Contributor

Sharpie commented Sep 18, 2012

If you do:

 cd `brew --prefix`
 git checkout -b qemu-fix
 brew pull 13345
 brew install qemu

Does it work?

@guillaumekh
Copy link
Contributor Author

No. brew pull 13345fails :

brew pull 13345
######################################################################## 100,0%
==> Applying patch
Applying: QEMU: Add HEAD; Fix for clang
error: patch failed: Library/Formula/qemu.rb:5
error: Library/Formula/qemu.rb: patch does not apply
Patch failed at 0001 QEMU: Add HEAD; Fix for clang
The copy of the patch that failed is found in:
   /usr/local/.git/rebase-apply/patch
When you have resolved this problem, run "git am --resolved".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: Failure while executing: git am --signoff --whitespace=fix /Library/Caches/Homebrew/13345.patch

My formulas are 100% up-to-date.

@oarmstrong
Copy link

Same fails for me.

@Sharpie
Copy link
Contributor

Sharpie commented Sep 18, 2012

Bummer. Well, the essential change is pretty easy: run brew edit qemu, add --enable-tcg-interpreter to the list of configure arguments and see if it compiles.

@guillaumekh
Copy link
Contributor Author

Thx, worked fine indeed. Shouldn't adding that line to the formula do the trick then?

@Sharpie
Copy link
Contributor

Sharpie commented Sep 18, 2012

It should, we need to get some questions answered about it though---such as if it is appropriate for non-Clang compilers. I will re-open the pull request.

Thanks for testing!

@guillaumekh
Copy link
Contributor Author

Thanks for the configure argument :)

@Sharpie
Copy link
Contributor

Sharpie commented Sep 18, 2012

Oh, one other thing. Could someone post brew --config output so we can be sure of the compiler versions that are causing this issue?

Thanks!

@guillaumekh
Copy link
Contributor Author

HOMEBREW_VERSION: 0.9.3
HEAD: 3344229
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.8.1-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.0 build 421
X11: 2.7.2 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/guillaumekhayat/.rbenv/shims/ruby

@jambalaio
Copy link

same issue here, below follows my config:

HOMEBREW_VERSION: 0.9.3
HEAD: 7c2651a
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.1-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.0 build 421
X11: 2.7.3 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@jambalaio
Copy link

Wow, the configure param "--enable-tcg-interpreter" resolved the issue here too. Thanks!!

@oarmstrong
Copy link

Thanks for the compile arg, helped me as well. My config:

HOMEBREW_VERSION: 0.9.3
HEAD: 2b12dfd26b80bf2a7d852c27cbc0feac4b69fbc8
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.8.1-x86_64
Xcode: 4.5 => /Applications/Xcode45-DP4.app/Contents/Developer
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.2 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/ollie/.rvm/rubies/ruby-1.9.3-p194/bin/ruby

Not sure how things are done with homebrew but I would be inclined to suggest something to detect compiler and dynamically add an argument for Clang only? Just a suggestion, don't shoot me down!

@kevinbirch
Copy link

Compiling using the TCG interpreter causes QEMU to run so slowly as to be useless. However, if you run:

brew install qemu --use-gcc

Then you can compile and get acceptable performance from the binary.

@smerrill
Copy link
Contributor

smerrill commented Oct 2, 2012

I can verify that compiling with --use-gcc works on a Mac mini 5,3 running OS X 10.7.5.

@adamv
Copy link
Contributor

adamv commented Oct 2, 2012

Closing as a duplicate of #13345; forcing GCC works, except when there is no GCC compiler.

@adamv adamv closed this as completed Oct 2, 2012
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants