Good morning, <br>/usr/ports/devel/qt4-moc does not seem to be building correctly with ccache.<br>Turning off ccache (i.e. running with NO_CCACHE=yes environment variable set) does not seem to fix the problem. <br><br>I&#39;m not sure, but to me it looks like the line <br>
include(../common/ccache c++)<br>in<br>/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf<br><br>is incorrect, (there&#39;s no ccache or c++ file in /usr/local/share/qt4/mkspecs/common), here is the contents of that directory:<br>
g++.conf      linux.conf    llvm.conf     mac-g++.conf  mac-llvm.conf mac.conf      qws.conf      unix.conf     wince.conf<br><br>the /usr/local/share/qt/mkspecs directory has more stuff in it...<br><br>Here&#39;s my uname -a <br>
<br>FreeBSD <a href="http://host.domain.com">host.domain.com</a> 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Wed Nov 11 11:09:21 EST 2009     user@host.domain.com:/usr/obj/usr/src/sys/KERNEL  i386<br><br>I also have qt-3.3.8_10 installed.<br>
<br>Other relevant posts:<br><a href="http://article.gmane.org/gmane.comp.kde.freebsd/11643">http://article.gmane.org/gmane.comp.kde.freebsd/11643</a><br><a href="http://forums.freebsd.org/archive/index.php/t-2066.html">http://forums.freebsd.org/archive/index.php/t-2066.html</a><br>
<br>Running qt4-4.5.3 and ccache-2.4_9.  Updated the ports tree this morning using portsnap fetch update.<br><br>So far have tried resetting QMAKESPEC and looking at /usr/ports/Mk/<a href="http://bsd.qt.mk">bsd.qt.mk</a><br>
=======================================<br><br><br><br><br>Script started on Sat Jan  9 09:49:17 2010<br>#                                                                               <br><br>hospitalbed#  /usr/ports/devel/qt4-mocmmake install<br>
<br>===&gt;   qt4-moc-4.5.3 depends on package: qt4-qmake&gt;=4.5.3 - found<br>===&gt;  Configuring for qt4-moc-4.5.3<br>/bin/cp /usr/ports/devel/qt4-moc/../../devel/qt4/files/configure /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../../<br>
/usr/bin/sed -i.bak -e &#39;s|target.path.*|target.path=/usr/local/bin|g&#39;  -e &#39;s|^TARGET.*|TARGET=moc-qt4|g&#39;  /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/<a href="http://moc.pro">moc.pro</a><br>
/bin/mkdir -p /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../../mkspecs<br>/bin/ln -sf /usr/local/bin/qmake-qt4 /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../../bin/qmake<br>
<br>This is the Qt/X11 Open Source Edition.<br><br>You are licensed to use this software under the terms of<br>the Lesser GNU General Public License (LGPL) versions 2.1.<br>You are also licensed to use this software under the terms of<br>
the GNU General Public License (GPL) versions 3.<br><br>You have already accepted the terms of the  license.<br><br>/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>
Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/floatmath/<a href="http://floatmath.pro">floatmath.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/mmx/<a href="http://mmx.pro">mmx.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/3dnow/<a href="http://3dnow.pro">3dnow.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/sse/<a href="http://sse.pro">sse.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/sse2/<a href="http://sse2.pro">sse2.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/db2/<a href="http://db2.pro">db2.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/ibase/<a href="http://ibase.pro">ibase.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/mysql_r/<a href="http://mysql_r.pro">mysql_r.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/mysql/<a href="http://mysql.pro">mysql.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/oci/<a href="http://oci.pro">oci.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/odbc/<a href="http://odbc.pro">odbc.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/psql/<a href="http://psql.pro">psql.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/sqlite2/<a href="http://sqlite2.pro">sqlite2.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/tds/<a href="http://tds.pro">tds.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/nis/<a href="http://nis.pro">nis.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/cups/<a href="http://cups.pro">cups.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/iconv/<a href="http://iconv.pro">iconv.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/gnu-libiconv/<a href="http://gnu-libiconv.pro">gnu-libiconv.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/dbus/<a href="http://dbus.pro">dbus.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/glib/<a href="http://glib.pro">glib.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/opengl/<a href="http://opengl.pro">opengl.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/opengles2/<a href="http://opengles2.pro">opengles2.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/opengles1/<a href="http://opengles1.pro">opengles1.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/opengles1cl/<a href="http://opengles1cl.pro">opengles1cl.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xcursor/<a href="http://xcursor.pro">xcursor.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xfixes/<a href="http://xfixes.pro">xfixes.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xrandr/<a href="http://xrandr.pro">xrandr.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xrender/<a href="http://xrender.pro">xrender.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/mitshm/<a href="http://mitshm.pro">mitshm.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/fontconfig/<a href="http://fontconfig.pro">fontconfig.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/sm/<a href="http://sm.pro">sm.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xshape/<a href="http://xshape.pro">xshape.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xsync/<a href="http://xsync.pro">xsync.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xinerama/<a href="http://xinerama.pro">xinerama.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xinput/<a href="http://xinput.pro">xinput.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/x11/xkb/<a href="http://xkb.pro">xkb.pro</a><br>
/usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf:50: Parse Error (&#39;include(../common/ccache c++&#39;)<br>Failure to read QMAKESPEC conf file /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf.<br>Error processing project file: /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/config.tests/unix/freetype/<a href="http://freetype.pro">freetype.pro</a><br>
<br>The target system byte order could not be detected!<br>Turn on verbose messaging (-v) to see the final report.<br>You can use the -little-endian or -big-endian switch to<br>./configure to continue.<br>===&gt;  Script &quot;configure&quot; failed unexpectedly.<br>
Please report the problem to kde@FreeBSD.org [maintainer] and attach the<br>&quot;/usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../..//config.log&quot;<br>including the output of the failure of your make command. Also, it might be<br>
a good idea to provide an overview of all packages installed on your system<br>(e.g. an `ls /var/db/pkg`).<br>*** Error code 1<br><br>Stop in /usr/ports/devel/qt4-moc.<br>#                                                                               <br>
<br>hospitalbed#  /usr/ports/devel/qt4-moceexit<br><br><br>Script done on Sat Jan  9 09:49:42 2010<br><br>============================================<br><br>If I comment out that<br>(../common/ccache c++) line in /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf<br>
<br>I get:<br>============================================<br>============================================<br>make install                                                                                          /usr/ports/devel/qt4-moc<br>
===&gt;   qt4-moc-4.5.3 depends on package: qt4-qmake&gt;=4.5.3 - found<br>===&gt;  Configuring for qt4-moc-4.5.3<br>/bin/cp /usr/ports/devel/qt4-moc/../../devel/qt4/files/configure /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../../<br>
/usr/bin/sed -i.bak -e &#39;s|target.path.*|target.path=/usr/local/bin|g&#39;  -e &#39;s|^TARGET.*|TARGET=moc-qt4|g&#39;  /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/<a href="http://moc.pro">moc.pro</a><br>
/bin/mkdir -p /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../../mkspecs<br>/bin/ln -sf /usr/local/bin/qmake-qt4 /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../../bin/qmake<br>
<br>This is the Qt/X11 Open Source Edition.<br><br>You are licensed to use this software under the terms of<br>the Lesser GNU General Public License (LGPL) versions 2.1.<br>You are also licensed to use this software under the terms of<br>
the GNU General Public License (GPL) versions 3.<br><br>You have already accepted the terms of the  license.<br><br><br>The target system byte order could not be detected!<br>Turn on verbose messaging (-v) to see the final report.<br>
You can use the -little-endian or -big-endian switch to<br>./configure to continue.<br>===&gt;  Script &quot;configure&quot; failed unexpectedly.<br>Please report the problem to kde@FreeBSD.org [maintainer] and attach the<br>
&quot;/usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.5.3/src/tools/moc/../../..//config.log&quot;<br>including the output of the failure of your make command. Also, it might be<br>a good idea to provide an overview of all packages installed on your system<br>
(e.g. an `ls /var/db/pkg`).<br>*** Error code 1<br><br>Stop in /usr/ports/devel/qt4-moc.<br>===============================<br><br>