Bug 189367 - [Patch] CMake is blocked by 'Test BINDINGS_RUN_RESULT'
Summary: [Patch] CMake is blocked by 'Test BINDINGS_RUN_RESULT'
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.2.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-11 14:58 UTC by Frédéric COIFFIER
Modified: 2009-11-15 01:03 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
convert QtScriptBindings to Qt-only App (1015 bytes, patch)
2009-11-14 15:22 UTC, Theo Chatzimichos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric COIFFIER 2009-04-11 14:58:18 UTC
Version:           2.0.90 (using KDE 4.2.1)
Compiler:          gcc (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 4.3.3
 
OS:                Linux
Installed from:    Gentoo Packages

I can't compile Amarok 2.0.90 because CMake stays blockec in the BINDINGS_RUN_RESULT test :

-- The C compiler identification is GNU                                                                
-- The CXX compiler identification is GNU                                                              
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc                                        
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- works                               
-- Detecting C compiler ABI info                                                                       
-- Detecting C compiler ABI info - done                                                                
-- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++                                      
-- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++ -- works                             
-- Detecting CXX compiler ABI info                                                                     
-- Detecting CXX compiler ABI info - done                                                              
-- Looking for dlopen in dl                                                                            
-- Looking for dlopen in dl - found                                                                    
-- Taglib found: -L/usr/lib -ltag                                                                      
-- checking for module 'taglib-extras>=0.1'                                                            
--   found taglib-extras, version 0.1.0                                                                
-- Found Taglib-Extras: /usr/include/taglib-extras                                                     
-- Performing Test COMPLEX_TAGLIB_FILENAME                                                             
-- Performing Test COMPLEX_TAGLIB_FILENAME - Failed                                                    
-- Looking for Q_WS_X11                                                                                
-- Looking for Q_WS_X11 - found                                                                        
-- Looking for Q_WS_WIN                                                                                
-- Looking for Q_WS_WIN - not found.                                                                   
-- Looking for Q_WS_QWS                                                                                
-- Looking for Q_WS_QWS - not found.                                                                   
-- Looking for Q_WS_MAC                                                                                
-- Looking for Q_WS_MAC - not found.                                                                   
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake)                                                       
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found
-- Looking for gethostbyname                                                                                                                               
-- Looking for gethostbyname - found                                                                                                                       
-- Looking for connect                                                                                                                                     
-- Looking for connect - found                                                                                                                             
-- Looking for remove                                                                                                                                      
-- Looking for remove - found                                                                                                                              
-- Looking for shmat                                                                                                                                       
-- Looking for shmat - found                                                                                                                               
-- Looking for IceConnectionNumber in ICE                                                                                                                  
-- Looking for IceConnectionNumber in ICE - found                                                                                                          
-- Found X11: /usr/lib/libX11.so                                                                                                                           
-- Looking for include files CMAKE_HAVE_PTHREAD_H                                                                                                          
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found                                                                                                  
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Phonon Version: 4.3.0
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Found KDE 4.2 include dir: /usr/include
-- Found KDE 4.2 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Checking if the QtScript Qt Bindings are installed.
-- includes /usr/include/qt4/QtCore;/usr/include/qt4/QtScript;/usr/include;/usr/include/KDE;/usr/include/KDE;/usr/include;/usr/include/qt4/QtXmlPatterns;/usr/include/qt4/QtWebKit;/usr/include/qt4/QtHelp;/usr/include/qt4/QtAssistant;/usr/include/qt4/QtDBus;/usr/include/qt4/QtTest;/usr/include/qt4/QtUiTools;/usr/include/qt4/QtScript;/usr/include/qt4/QtSvg;/usr/include/qt4/QtXml;/usr/include/qt4/QtSql;/usr/include/qt4/QtOpenGL;/usr/include/qt4/QtNetwork;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtDesigner;/usr/include/qt4/QtAssistant;/usr/include/qt4/Qt3Support;/usr/include/qt4/QtGui;/usr/include/qt4/QtCore;/usr/include/qt4/Qt;/usr/share/qt4/mkspecs/default;/usr/include/qt4;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include;/usr/include libraries /usr/lib/qt4/libQtScript.so;/usr/lib/qt4/libQtCore.so;-lpthread;-L/usr/lib;-lkdecore;-lkdeui
-- Performing Test BINDINGS_RUN_RESULT
Comment 1 Mark Kretschmann 2009-04-16 11:17:02 UTC
So, what's the dealio with this? Ian, got any ideas?
Comment 2 Frédéric COIFFIER 2009-04-16 14:16:56 UTC
Some Google searches show that some people got this kind of error sometime ago, with SVN version. Unfortunately, I don't find how it has been corrected for them.
I can perform some tests on my environment if it can help you.
Comment 3 Myriam Schweingruber 2009-05-15 11:07:26 UTC
Frédéric: any news on this?
Comment 4 Frédéric COIFFIER 2009-05-15 11:46:47 UTC
Not really. I can just confirm the problem with Amarok 2.1 beta 2.
I'm trying to understand the problem but I have no knownledge about CMake.

It seems that this message :
-- Performing Test BINDINGS_RUN_RESULT
corresponds to this test :
CHECK_CXX_SOURCE_RUNS( "${source}" BINDINGS_RUN_RESULT)

Is there someone who know what's doing this line ?
Comment 5 Frédéric COIFFIER 2009-05-15 13:55:44 UTC
If I add :
    set( BINDINGS_RUN_RESULT 0 )
before the line with CHECK_CXX_SOURCE_RUNS, CMake is no longer blocked.

But it says it can't find QtBindings :
-- QtBindings not found. run `make bindingstest && ./bindingstest && echo $?` to see what is missing. If it only prints '0' then you're actually fine.
Comment 6 Myriam Schweingruber 2009-05-15 14:13:50 UTC
(In reply to comment #5)
> If I add :
>     set( BINDINGS_RUN_RESULT 0 )
> before the line with CHECK_CXX_SOURCE_RUNS, CMake is no longer blocked.
> 
> But it says it can't find QtBindings :
> -- QtBindings not found. run `make bindingstest && ./bindingstest && echo $?`
> to see what is missing. If it only prints '0' then you're actually fine.

Frédéric, I think this is more a Gentoo compilation issue than a real Amarok bug. Please refer to our forums or get in touch with us in #amarok on Freenode.
Comment 7 Frédéric COIFFIER 2009-05-15 16:17:14 UTC
I agree. In fact, by adding set( BINDINGS_RUN_RESULT 1 ), QtBindings isn't tested but CMake is no longer blocked and I reach to compile Amarok. So, it's enough for the moment.
Comment 8 Sascha Cunz 2009-05-31 20:45:40 UTC
Actually, you might want to have a look at my investigations at
http://bugs.gentoo.org/show_bug.cgi?id=270923

The freeze is a deadlock on a Qt internal mutex in QtDBus while trying to register with the bus. Further i found that the same compiled executable seems to work if run as "normal" user, but doesn't if run as root.

However; i see no reason at all to use DBus in that test. What is the use of KApplication (which causes DBus registration) for?
Comment 9 Theo Chatzimichos 2009-11-14 15:22:14 UTC
Created attachment 38326 [details]
convert QtScriptBindings to Qt-only App

I'm sorry but i have to ask you to reopen this as I have a patch here. As Sput (quassel dev) suggested, QtScriptBindingsTest.cpp could use QApplication instead, so i did it a Qt-app. I hope this is acceptable to you. I guess there is no reason for it to be KDE-app. Thank you.
Comment 10 Myriam Schweingruber 2009-11-14 15:40:32 UTC
I presume you are both using version 2.2.0 at least?
Theo, please make a merge request on Gitorious, so the devs can review the patch.
Comment 11 Theo Chatzimichos 2009-11-14 17:19:17 UTC
The above patch is wrong, it should use QCoreApplication. Never mind, here is the merge request [1] the comments of which give all the necessary info.

[1] http://gitorious.org/amarok/amarok/merge_requests/2093
Comment 12 Leo Franchi 2009-11-15 01:03:42 UTC
merged.