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