[kde-freebsd] Qt 4.8.0 from area51 with clang

Raphael Kubo da Costa rakuco at FreeBSD.org
Mon Apr 16 23:27:33 UTC 2012


Olivier Smedts <olivier at gid0.org> writes:

> 2012/4/3 Alberto Villa <avilla at freebsd.org>:
>> On Thu, Mar 22, 2012 at 10:34 AM, Olivier Smedts <olivier at gid0.org> wrote:
>>> Are there any recommendations to compile Qt 4.8.0 (from area51) with
>>> clang ? I set up my /etc/make.conf as usual for clang, it worked
>>> perfectly with Qt 4.7 (except qt4-webkit) but now where trying ti
>>> "portmaster -a" :
>>
>> Last time I tried, it was working. I will check again when 4.8.1 is ready.
>
> Still the same problem with Qt 4.8.1 and clang :
> after checking out the latest area51 and kdemerge -kmpq, I "portmaster
> \*qt4\*" (last time I tried with "portmaster -a" but before I had to
> delete some KDE ports like specified in UPDATING-area51), qt4-qmake is
> updated but then :
> ===>  Configuring for qt4-moc-4.8.1
> /usr/bin/sed -i.bak -e 's|target.path.*|target.path=/usr/local/bin|g'
> -e 's|^TARGET.*|TARGET=moc-qt4|g'
> /tmp/usr/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.8.1/src/tools/moc/moc.pro
> /bin/mkdir -p /tmp/usr/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.8.1/mkspecs
> /bin/ln -sf /usr/local/bin/qmake-qt4
> /tmp/usr/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.8.1/bin/qmake
> WARNING: Unable to find file
> /usr/local/share/qt4/mkspecs/freebsd-clang/../common/clang-unix.conf
> WARNING: Unable to find file
> /usr/local/share/qt4/mkspecs/freebsd-clang/../common/clang-unix.conf
> WARNING: Unable to find file
> /usr/local/share/qt4/mkspecs/freebsd-clang/../common/clang-unix.conf
> ERROR: Cannot set the compiler for the configuration tests
> ===>  Script "configure" failed unexpectedly.

I've supposedly fixed this with area51 r8125, I'd be really glad if you
and other people who use clang can give it a try and see if it works as
expected.

By the way, is llvm a valid compiler that deserves an mkspec? I thought
people were supposed to use only clang.


More information about the kde-freebsd mailing list