Wind River Support Network

HomeDefectsLIN6-9879
Fixed

LIN6-9879 : Build error due to missing ccache command

Created: May 11, 2015    Updated: Dec 3, 2018
Resolved Date: Jun 1, 2015
Found In Version: 6.0.0.19
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Host Tools

Description

Our customer encountered the build error due to missing ccache command.

Although there is similar problem as LIN7-2618, I couldn't find corresponding WRL6 issue as the known defect.

Workaround

Manually edit 

/path-to-sdk-installation/sysroots/x86_64-wrs-linux/usr/include/qtopia/sdk.qmake.cache

QMAKE_LINK = $$SDKTOOLCHAIN/ccache x86_64-wrs-linux-g++ -m64 --sysroot=$$SYSROOT
QMAKE_CC = $$SDKTOOLCHAIN/ccache x86_64-wrs-linux-gcc -m64 --sysroot=$$SYSROOT
QMAKE_CXX = $$SDKTOOLCHAIN/ccache x86_64-wrs-linux-g++ -m64 --sysroot=$$SYSROOT

and delete 'ccache ' above.

Steps to Reproduce

1. configure the project with following options:

--enable-board=intel-x86-64 
--enable-kernel=standard 
--enable-rootfs=glibc_core 
--enable-bootimage=tar.bz2 
--enable-build=production 
--enable-ccache=yes 
--enable-buildhist=yes 
--enable-jobs=8 
--enable-parallel-pkgbuilds=8 
--enable-reconfig 
--enable-rm-oldimgs=yes 
--with-ccache-dir=~/tmp/ccache 
--with-ccache-size=5G 
--with-sstate-dir=~/tmp/sscache 
--with-package=xf86-video-intel,qt4-embedded,cairo,libsdl,gdb 

2. Build the project as follows:

make -C build linux-windriver.rebuild 
make 

3. Make the SDK

make export-sdk

4. Install the SDK

5. Execute env.sh as follows:

source /opt/windriver/wrlinux/6.0-intel-x86-64/env.sh

6. cd the dragdropbot directory.

cd /opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/bin/qtopia/examples/graphicsview/dragdroprobot

7. Generate the makefile

/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/qmake-sdk.sh -sysroot /opt/windriver/wrlinux/6.0-intel-x86-64/sysroots dragdroprobot.pro

8. make

Result:

make -f Makefile.Release
make[1]: Entering directory `/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/bin/qtopia/examples/graphicsview/dragdroprobot'
/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/x86_64-wrs-linux/ccache x86_64-wrs-linux-g++ -m64 --sysroot=/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux -c -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/include -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/include/freetype2 -O2 -O2 -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_KEYPAD_NAVIGATION -DQT_OUT_OF_TREE_BUILD -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -DQT_SHARED -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/share/qtopia/mkspecs/linux-g++ -I. -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/include/qtopia/QtCore -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/include/qtopia/QtGui -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/include/qtopia -I/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/include/freetype2 -I.moc/release-shared-emb-x86_64 -o .obj/release-shared-emb-x86_64/coloritem.o coloritem.cpp
make[1]: /opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/x86_64-wrs-linux/ccache: Command not found
make[1]: *** [.obj/release-shared-emb-x86_64/coloritem.o] Error 127
make[1]: Leaving directory `/opt/windriver/wrlinux/6.0-intel-x86-64/sysroots/x86_64-wrs-linux/usr/bin/qtopia/examples/graphicsview/dragdroprobot'
make: *** [release] Error 2

Other Downloads


Live chat
Online