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

Wine via Homebrew fails to install because of clang and missing gcc #22181

Closed
Spottedstar opened this issue Aug 28, 2013 · 17 comments
Closed

Wine via Homebrew fails to install because of clang and missing gcc #22181

Spottedstar opened this issue Aug 28, 2013 · 17 comments

Comments

@Spottedstar
Copy link

Some help with this would be nice. I've tried for a few days to get it sorted out but to no avail. Running OS X 10.8.4

GISTS:

Brew Doctor: https://gist.github.com/Spottedstar/c3039886133d41d60843
Brew --config: https://gist.github.com/Spottedstar/15cadf800c0b4d6ca1e1
brew install foo 2>&1: https://gist.github.com/Spottedstar/c8da0f0ffb3d30103bed
brew install -v wine 2>&1: https://gist.github.com/Spottedstar/b918d8d5eed3daaf87e1

==> Installing wine
==> Downloading http://downloads.sourceforge.net/project/wine/Source/wine-1.6.ta
Already downloaded: /Library/Caches/Homebrew/wine-1.6.tar.bz2
==> Downloading patches

################################################################## 100.0%

==> Patching
patching file dlls/gdi32/freetype.c
Hunk #1 succeeded at 2777 (offset -4 lines).
Hunk #2 succeeded at 2787 (offset -4 lines).
Warning: Clang currently miscompiles some parts of Wine. If you have gcc, you
can get a more stable build with:
brew install wine --use-gcc
==> ./configure --prefix=/usr/local/Cellar/wine/1.6 --disable-win16 --without-mp
==> make install
make[1]: *** [openal32.dll.so] Error 2
make: *** [dlls/openal32] Error 2
make: *** Waiting for unfinished jobs....
../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./opencl.spec opencl.o -o opencl.dll.so ../../libs/port/libwine_port.a -framework OpenCL -L/opt/X11/lib -L/usr/local/lib -Wl,-headerpad_max_install_names -L/opt/X11/lib -arch i386 -m32 -lxslt
../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./opencl.spec opencl.o -o opencl.dll.fake ../../libs/port/libwine_port.a -framework OpenCL -L/opt/X11/lib -L/usr/local/lib -Wl,-headerpad_max_install_names -L/opt/X11/lib -arch i386 -m32 -lxslt

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Mitchell:~ Mitchell$ brew install wine --use-gcc
Error: GCC could not be found
Mitchell:~ Mitchell$ brew update
Already up-to-date.
Mitchell:~ Mitchell$

@adamv
Copy link
Contributor

adamv commented Aug 28, 2013

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Please post the full troubleshooting information in a gist; we at least need your brew --config.

@mistydemeo
Copy link
Member

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Can you provide all the information requested there, please? Thanks!

@Spottedstar
Copy link
Author

@adamv
Copy link
Contributor

adamv commented Aug 28, 2013

Last one should be brew install -v wine 2>&1

@Spottedstar
Copy link
Author

I cannot fit the whole entry into one gist brew install -v wine 2>&1 https://gist.github.com/Spottedstar/31166c95747a4e2437be

This is the result
https://gist.github.com/Spottedstar/b918d8d5eed3daaf87e1

@mistydemeo
Copy link
Member

ld: warning: ignoring file /Library/Frameworks//OpenAL.framework/OpenAL, file was built for unsupported file format ( 0xfe 0xed 0xfa 0xce 0x 0 0x 0 0x 0 0x12 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 0 0x 6 ) which is not the architecture being linked (i386): /Library/Frameworks//OpenAL.framework/OpenAL

You have a custom OpenAL framework which doesn't provide the same architectures that Wine's building for.

Not sure what architecture that is, ld doesn't seem to be aware. What do you get for:

file /Library/Frameworks//OpenAL.framework/OpenAL
lipo -info /Library/Frameworks//OpenAL.framework/OpenAL

You can fix your build by moving that OpenAL out of the way.

@Spottedstar
Copy link
Author

file /Library/Frameworks//OpenAL.framework/OpenAL
lipo -info /Library/Frameworks//OpenAL.framework/OpenAL

https://gist.github.com/Spottedstar/c798908be420ad8d169f

I noticed it says "ppc". I assure you, I'm running an Intel.

@mistydemeo
Copy link
Member

You're running an Intel but that framework is PowerPC only. You should remove the entire framework - it'll only cause further problems.

@Spottedstar
Copy link
Author

How do I do that?

@mistydemeo
Copy link
Member

rm -r /Library/Frameworks/OpenAL.framework/

@Spottedstar
Copy link
Author

rm -r /Library/Frameworks/OpenAL.framework/

Mitchell$ rm -r /Library/Frameworks/OpenAL.framework/
rm: /Library/Frameworks/OpenAL.framework//Headers: Permission denied
rm: /Library/Frameworks/OpenAL.framework//OpenAL: Permission denied
rm: /Library/Frameworks/OpenAL.framework//Resources: Permission denied
override rw-r--r-- root/wheel for /Library/Frameworks/OpenAL.framework//Versions/A/Headers/al.h?

EDIT: Manually removing the OpenAL.framework folder didn't seem to solve the problem.

@mistydemeo
Copy link
Member

You'll need admin privileges, yeah. You can also sudo rm -r.

Can I see a new build log after it's removed?

@Spottedstar
Copy link
Author

Sorry, for my lack of knowledge on the subject. Where do I find the build log?

@mistydemeo
Copy link
Member

Just redo: brew install -v wine 2>&1 and paste that to a new gist.

@Spottedstar
Copy link
Author

Whatever the problem was it is solved and the installation of wine was successful. But, I do have more lingering questions. Such as, how to run ISO files through wine. Is that possible?

@adamv
Copy link
Contributor

adamv commented Aug 28, 2013

We don't provide usage support for Wine, sorry.

@mistydemeo
Copy link
Member

For usage, I'd suggest asking at the official Wine forums. Glad your build problem is solved!

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants