Closed 0x80 closed 12 years ago
Please post the output in a gist, rather than inline; it makes the thread difficult to navigate.
Maybe try --use-llvm
?
Though it looks like your Xcode installation may be partially broken:
Xcode: 4.2.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1 build 163
Xcode 4.2 has clang 3.0 and llvm build 2336.
And of course, we don't support MacPorts being installed alongside Homebrew:
MacPorts or Fink? /opt/local/bin/port
Ah sorry I forgot about Gist.
--use-llvm doesn't seem to be an option: Warning: Formula will not build with LLVM, trying Clang
I don't know what's up with my Xcode I'll try to update or something.
The first few times I tried this I had removed macports. I just had to reinstall it because I had to get on with work and I needed cairo. This output was generated after because I didn't save it before putting back macports.
Moved macports out of the way and added --use-gcc flag, since that seems to take it a lot further. Still no luck though.
You may have to remove Cairo's dependencies and rebrew those too.
Does this mean I also have to add ENV.universal_binary to each of the formulas from the dependencies, or is it sufficient to have this set only at the level of cairo?
cairo's deps would have to be universal.
I just had simular issue when I was re-installing cairo, and it pointed me to this issue.. What I did as work around was:
sudo /opt/local/bin/port
And than in the port terminal just type: install cairo
It took a while to install, but it did eventually install cairo properly
@3rd-Eden: So you're basically saying you used macports to install cairo not homebrew. Also if that's the command you used, you didn't build universal binaries. This discussion was about how to build cairo UB with homebrew so I think you're missing the point.
I know macports works because it has a flag for installing universal binaries (port install cairo +universal), but homebrew doesn't have such a flag, so you have to manually make sure all dependencies build as universal by editing their formula files.
I haven't tried it yet since it's no priority for me at the moment.
Right now you're using macports and homebrew together which can lead to problems. For me it works fine so far but you should be aware of that.
whoops ;$
This is still an issue. Here is my build failure:
https://gist.github.com/2229135
This might be a compiler bug?
@huslage that's not the same failure as the issue being discussed here.
Closing since the in-core cairo isn't built universal; if you get it working let us know and we can consider it for core.
I've added ENV.universal_binary to the cairo formula file but I can't get it to build for universal.
Any idea?