#213 Build stuck

alpha 4
open
nobody
2012-07-09
2012-07-03
No

I've started build from msys shell in directory /C/path/to/android-qt with command

./android/androidconfigbuild.sh -n /C/Path/To/ndk

now more than 12 hours, it is still building. I belive it is entered an infinitie loop and stuck there.

I'm using
alpha 4 from git dated 17.06.2012
ndk-r8
mingw with gcc 4.6.2

There are just 79 *.o files and the scrollback buffer simply repeats following text :

make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro
make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro
make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro
make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro
make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro
make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro
make[2]: Leaving directory /C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt' make[2]: Entering directory/C/DevTools/android-qt/src/3rdparty/webkit/Source/WebKit/qt'
C:/DevTools/android-qt/bin/qmake.exe -spec ../../../../../../mkspecs/android-g++ -o Makefile.WebKit.QtWebKit QtWebKit.pro

Discussion

  • also same with ndk-r6b

     
  • Ray Donnelly
    Ray Donnelly
    2012-07-09

    Although I've made some headway in enabling compiling Necessitas via the MSYS shell (I have made builds successfully), it's fiddly for various reasons. Some of the gotchas are:

    1. Path name length. On Windows, 260 is the limit, and some of the paths (in Webkit/Javascript Core) will exceed this if your initial directory is greater than about 5 characters (I tend to use C:\nec for this reason).

    2. MSYS path virtualisation gets in the way too. For example, /usr is usually mapped to somewhere like C:\mingw\msys which can cause issues. To get around this, I unify everything as much as possible by a combination of mklink /D and MSYS's /etc/fstab file so that a path in MSYS is the same path in Windows. These issues effect the perl script syncqt badly.

    3. Given 2. you need to also make sure that everything happens on the same drive.

    4. I wouldn't recommend using anything but our own NDK for this build either. Google's NDK can be a bit buggy (ICEs in Neon for example).

    5. The make program to use. I had to provide my own to fix various issues.

    6. MSYS is by it's nature very slow (fork/exec have to do horrible things). Windows too is very slow at File IO. These issues compound to making builds take about 5* longer than they do on Linux.

    Overall, I'd recommend using VirtualBox and the GNU/Linux distro of your own choice instead, and mounting a Windows folder for sharing the built packages back to Windows.

    I will endeavour to keep the MSYS build working but it'll never be nice!

    Cheers,

    Ray.