mkdir -p ~/src
cd ~/src
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../../
mkdir build-cmake
cd build-cmake ../
make -j 334
Step 2 - checkout Qt, and configure it usig (the non installed) clang
cd ~/src
git clone http://git.gitorious.org/qt/qt.git
cd qt
CC=/home/elcuco/src/llvm/build-cmake/bin/clang
CXX=/home/elcuco/src/llvm/build-cmake/bin/clang++
export CC
export CXX
./configure
Step 3
[elcuco@pinky ~/src/gitorious/qt] gdb ./bin/qmake
GNU gdb (GDB) Fedora (7.0.1-29.fc12)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /home/elcuco/src/gitorious/qt/bin/qmake...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/elcuco/src/gitorious/qt/bin/qmake
Program received signal SIGSEGV, Segmentation fault.
0x08258211 in toLatin1_helper(QChar const*, int) ()
Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-1.i686 libgcc-4.4.2-20.fc12.i686 libstdc++-4.4.2-20.fc12.i686
(gdb) bt
#0 0x08258211 in toLatin1_helper(QChar const*, int) ()
#1 0x08258168 in QString::toLatin1() const ()
#2 0x082582cc in QString::toLocal8Bit() const ()
#3 0x0827d12e in locale_encode(QString const&) ()
#4 0x0827e746 in QFile::encodeName(QString const&) ()
#5 0x0828170b in QFSFileEnginePrivate::nativeInitFileName() ()
#6 0x08288752 in QFSFileEngine::QFSFileEngine(QString const&) ()
#7 0x082c5d5e in QAbstractFileEngine::create(QString const&) ()
#8 0x082b5d4a in QFileInfoPrivate::initFileEngine(QString const&) ()
#9 0x082b68e9 in QFileInfo::QFileInfo(QString const&) ()
#10 0x08126851 in Option::init(int, char**) ()
#11 0x0807f994 in runQMake(int, char**) ()
#12 0x08080bab in main ()
(gdb)
FAIL. At least it compiled without any modification! yay configure!
