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

Unable to install Qt 4.8.5 on 10.9 DP5 with Xcode 5 DP5 #21608

Closed
yanzhou-ca opened this issue Aug 2, 2013 · 55 comments
Closed

Unable to install Qt 4.8.5 on 10.9 DP5 with Xcode 5 DP5 #21608

yanzhou-ca opened this issue Aug 2, 2013 · 55 comments

Comments

@yanzhou-ca
Copy link

errors shows as below:

==> make
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

@adamv
Copy link
Contributor

adamv commented Aug 3, 2013

We need full troubleshooting information as requested in https://github.com/mxcl/homebrew/wiki/Troubleshooting

@toroidal-code
Copy link
Contributor

These were the errors I got:
https://gist.github.com/toroidal-code/6148582

@yanzhou-ca
Copy link
Author

I did the steps as the instructions, however,

No formula found for "foo". Searching open pull requests...

How can I finish the full troubleshooting?

@adamv
Copy link
Contributor

adamv commented Aug 7, 2013

Use the name of the formula you are trying to install, not "foo".

@yanzhou-ca
Copy link
Author

Can't find any Homebrew folder under ~/Library/Logs

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 6c5f51a
CPU: quad-core 64-bit arrandale
OS X: 10.9-x86_64
Xcode: 5.0 => /Applications/Xcode5-DP.app/Contents/Developer
X11: N/A
==> ENV
HOMEBREW_CC: clang
CXXFLAGS: -fvisibility=hidden
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin

Error: qt did not build

@toroidal-code
Copy link
Contributor

@1900forever your xcode-select is pointing to /Applications/Xcode-DP.app right now, but the issue title says you're trying to build with xcode5-DP4?
Edit:
My mistake, you said 10.9 DP4

@rodrigodealer
Copy link

I'm having this issue too, but I'm using Xcode 4.6.3

$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

@yanzhou-ca
Copy link
Author

@toroidal-code it's 10.9 DP5 now, and Xcode 5 DP5 as well.

==> ./configure -prefix /usr/local/Cellar/qt/4.8.5 -system-zlib -confirm-license
==> make
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

@toroidal-code
Copy link
Contributor

Found a similar issue on qt's website: http://qt-project.org/forums/viewthread/19117

Hrm. This is for Mountain Lion. We might have to see about patching for Mavericks:
https://codereview.qt-project.org/#patch,sidebyside,31646,2,src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro

It looks like we're going to need a version of libWebkitSystemInterface.a for Mavericks. This is a request that should be put in to the Webkit team, though I don't know if they'll be able to do it until Mavericks is actually out.
References: WebKit/WebKit@f2aee4

@yanzhou-ca
Copy link
Author

@toroidal-code Hoping it may bring good news

@hwrdprkns
Copy link

For what its worth this still seems to be an issue with Xcode5 DP-6

@alsemyonov
Copy link

Still cannot build qt with Xcode 5 GM.

@MikeMcQuaid
Copy link
Member

If you actually want to get this fixed I suggest posting on the issue tracker for Qt itself rather than here.

@emilford
Copy link

emilford commented Oct 8, 2013

Has anyone gotten this to work? I'm still seeing this error. I see the bug filed here (https://bugreports.qt-project.org/browse/QTBUG-32237) but is there anything temporary that can be done? I've had QT running fine on older releases of Mavericks just fine.

@cliffrowley
Copy link
Contributor

A temporary solution would be fantastic. Unfortunately I have absolutely no idea what I'm doing, so I've resorted to working on my Mountain Lion laptop for the moment..

@adamv
Copy link
Contributor

adamv commented Oct 9, 2013

Closing as an upstream issue.

@adamv adamv closed this as completed Oct 9, 2013
@mistydemeo
Copy link
Member

@adamv Let's leave this open, we want to track that there's an issue here as we are apparently packaging something that won't build, whether it's our fault or not.

It's unfortunate to see that there's been no upstream action. This is confirmed not working with Xcode 5.0.1 GM, then?

@mistydemeo mistydemeo reopened this Oct 9, 2013
@cliffrowley
Copy link
Contributor

Correct, it's not working with Xcode 5.0.1 GM

@aaronchi
Copy link
Contributor

For those looking for a temporary solution, if you change the brew code to return mountain_lion for your OS, it will install qt from the bottle, which has been working for me.

@ollyjshaw
Copy link

@aaronchi. I've been struggling with this. Could please detail how to set the brew code? Thanks.

@dedene
Copy link

dedene commented Oct 29, 2013

@ollyjshaw I believe what @aaronchi means, is editing /usr/local/Library/Homebrew/os/mac/version.rb so that it temporarely returns :mountain_lion as OS symbol, although we are on 10.9 for the version number:

see https://github.com/mxcl/homebrew/blob/master/Library/Homebrew/os/mac/version.rb#L26

At least for me this did the trick! Thanks a lot, @aaronchi

@joostrijneveld
Copy link

Just wanted to vouch for the solution provided by @iMichka above (as originally posted by Cliff Rowley).

@adamv
Copy link
Contributor

adamv commented Oct 29, 2013

If this needs libtiff on 10.9, please open a pull request to add a dependency.

@cliffrowley
Copy link
Contributor

@adamv this isn't intended to be submitted as a PR at all, it's merely a stop gap while Qt fix the issue their side. If it looks like it may take them some time then perhaps it's worth cleaning up this patch and submitting it, but at the moment it exists purely to attempt to get Qt built and running correctly. There are still outstanding issues.

Edit: also, it's not meant to depend on system libtiff at all, however the bundled version currently throws errors during compilation. I suspect Qt will also fix that, so the eventual formula won't have this dependency.

@cliffrowley
Copy link
Contributor

Ok, things seem a lot more stable using HEAD than they do using stable. I'd recommend that anyone who has been following and using my patched formula try the following:

  • brew remove qt
  • brew install https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb --HEAD

Using this, wkhtmltopdf no longer crashes for me.

@cliffrowley
Copy link
Contributor

Oh cool, I see. I just wasn't sure what your expectations were :-) I've contributed to Homebrew before, but nothing as involved as this. Wasn't sure what the protocol was.

@christopherdbull
Copy link

Just to update this, I've tried to install HEAD but it didn't work on 10.9 with XC 5 from the app store (all up to date).

@cliffrowley
Copy link
Contributor

Strange, it works here with 10.9 and XC 5.0.1. What error(s) are you getting?

@christopherdbull
Copy link

Getting this, one of the other guys here is getting it as well (both on just-bought-last-weekend rMBP's, so pretty fresh installs).

brew install https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb --HEAD
######################################################################## 100.0%
==> Cloning git://gitorious.org/qt/qt.git
Updating /Library/Caches/Homebrew/qt--git
==> Checking out branch 4.8
==> Patching
patching file src/plugins/bearer/corewlan/qcorewlanengine.mm
patching file src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm
patching file src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 248 with fuzz 1.
==> /usr/local/bin/wget http://trac.webkit.org/export/157771/trunk/WebKitLibraries/libWebKitSystemInterfaceMavericks.a -O src/3rdparty/webkit/WebKitLibraries/libWebKitSystemInterfaceMavericks.a
==> ./configure -prefix /usr/local/Cellar/qt/HEAD -system-zlib -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -system-libtiff -no-3dnow -platform unsupported/macx-clang -no-qt3support -nomake docs -ar
==> make
                                   ^
7 errors generated.
make[2]: *** [.obj/release-shared/qdrawhelper_ssse3.o] Error 1
make[1]: *** [release] Error 2
make: *** [sub-gui-make_default-ordered] Error 2

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

These open issues may also help:
    https://github.com/mxcl/homebrew/pull/22283
    https://github.com/mxcl/homebrew/issues/23480 

@cliffrowley
Copy link
Contributor

Interesting, however I'm not convinced these issues are related to these patches as they don't touch qdrawhelper* - only qcorewlanengine* and QTWebKit.pro (as you can see from the log). It could be these are new issues as yours is a new MBP, and someone else earlier had a brand new Air. Seems to be on the new machines it's happening. My 2012 iMac is fine, as is my 2011 MBP.

@pioz
Copy link
Contributor

pioz commented Oct 30, 2013

I get this error while compiling qt with brew install qt:

==> make
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../../../../../../lib/QtWebKit.framework/QtWebKit] Error 1
make[2]: *** [release] Error 2
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Any solution or workaround?

@christopherdbull
Copy link

Just ran gist-logs as thought the detailed output might help someone more familiar with reading Qt build logs https://gist.github.com/anonymous/7225278

@pioz
Copy link
Contributor

pioz commented Oct 30, 2013

Here the output of my brew install -v qt 2>&1 https://gist.github.com/anonymous/7226119

@cliffrowley
Copy link
Contributor

@pioz you need to install using my patched formula: brew install https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb --HEAD

@dwsturgeon
Copy link

THANK YOU cliffrowley! works for me!

@cliffrowley
Copy link
Contributor

@dwsturgeon hey no worries :-)

FWIW some people have been reporting issues compiling this, with errors related to SSSE3 extensions. Those people should try compiling with this one: brew install https://raw.github.com/cliffrowley/homebrew/patched_qt_no_ssse3/Library/Formula/qt.rb --HEAD

@dwsturgeon
Copy link

@cliffrowley is the issue that it needs to be compiled from the head?
brew install qt --HEAD

some issues that I have are specifically with libstdc++ vs. libc++ which apparently didn't change when I did a fresh install. I'm going to recompile my dependency formulas and see if that fixes it.

Thank you again..

@m5rk
Copy link

m5rk commented Oct 30, 2013

I tried that recipe and it failed https://gist.github.com/m5rk/7232391

@cliffrowley
Copy link
Contributor

Can you add a -v after install and try again, then you'll be able to see the actual error.

@cliffrowley
Copy link
Contributor

@dwsturgeon with regards to things that depend on Qt (specifically with regards to libstdc++ vs libc++) on another thread it was noted that brew install apple-gcc42 and then using --cc=gcc4.2 to compile seems to work.

That is, to compile the software that is complaining about the libstdc++ vs libc++ incompatibility - not Qt ;-)

@pioz
Copy link
Contributor

pioz commented Oct 30, 2013

This my brew install -v https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb --HEAD 2>&1 | gist https://gist.github.com/anonymous/7232541

@cliffrowley
Copy link
Contributor

Do brew install wget first.

N.B. I'm currently tidying up the formula since these things seem to be causing more issues than I bargained for ;-)

@m5rk
Copy link

m5rk commented Oct 30, 2013

@pioz Do you have wget installed?

which wget

If not:

brew install wget

and try again.

@cliffrowley
Copy link
Contributor

Hi guys, please see this Gist for a fixed Formula (inc. all dependencies) and a ---without-ssse3 flag for people with newer machines. Instructions and references provided in the Gist:

https://gist.github.com/cliffrowley/cb396e83008bbc4dc811

@cliffrowley
Copy link
Contributor

Also, can I direct people to this issue so that we can all talk in 1 place? Thanks ;-)

#21000

@pioz
Copy link
Contributor

pioz commented Oct 30, 2013

@cliffrowley i cant build qt with your patched formula... I get the following error:

Error: qt dependency libtiff was built with the following
C++ standard library: libc++ (from clang)

This is incompatible with the standard library being used
to build qt: libstdc++ (from clang)

Please reinstall libtiff using a compatible compiler.

https://gist.github.com/anonymous/7234155

@cliffrowley
Copy link
Contributor

@pioz yeah, I've just removed qt and libtiff from my machine to test and make sure it's all working still and came across this error myself. I'm currently in the process of fixing it, however in the meantime you should be able to fix it by installing libtiff manually (e.g. brew install libtiff) prior to installing qt. You may need to add --cc=gcc-4.2 to the command line. Shouldn't be long and I'll have a fix.

@cliffrowley
Copy link
Contributor

@pioz please join us at the issue in my previous post so that we can talk in 1 place and I can reduce my own confusion - thanks ;-)

@m5rk
Copy link

m5rk commented Oct 30, 2013

With verbose:

https://gist.github.com/m5rk/7236686

Trying again without-ssse3...

@cliffrowley
Copy link
Contributor

@m5rk please see this issue for the latest info: #21000

@manphiz
Copy link
Contributor

manphiz commented Oct 30, 2013

Closing in favor of #23793.

@manphiz manphiz closed this as completed Oct 30, 2013
@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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests