Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294980 - dev-cpp/ctemplate fails to install (ccache?)
Summary: dev-cpp/ctemplate fails to install (ccache?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-28 14:09 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-04-29 10:23 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (ctemplate-0.95:20091128-123435.log,132.15 KB, text/plain)
2009-11-28 14:09 UTC, Diego Elio Pettenò (RETIRED)
Details
output of ls -ls /var/tmp/ccache (ccache.txt,6.75 KB, text/plain)
2010-05-25 08:59 UTC, Peter Volkov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-28 14:09:24 UTC
Portage 2.1.7.6 (default/linux/x86/10.0, gcc-4.4.2-asneeded, glibc-2.11-r0, 2.6.32-rc8 i686)
=================================================================
System uname: Linux-2.6.32-rc8-i686-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-gentoo-2.0.1
Timestamp of tree: Sun, 22 Nov 2009 13:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.6.2-r2, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /opt/openjms/config /usr/lib/ccs/conf /usr/lib/fax /usr/share/X11/xkb /usr/share/bufrtables /usr/share/config /usr/share/qpsmtpd/plugins /var/bind /var/lib/hsqldb /var/phxd /var/qmail/alias /var/qmail/control /var/spool/fax/etc /var/spool/torque /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms split-log strict test test-fail-continue unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
INSTALL_MASK="  /usr/share/doc  /usr/share/info"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j14"
PKGDIR="/var/spool/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/tree-tinderbox"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 java5 java6 modules mudflap ncurses nls nostatic nptl nptlonly openmp pam pcre perl pppd python qt3support readline reflection ruby session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-28 14:09:44 UTC
Created attachment 211452 [details]
Build log
Comment 2 Hans de Graaff gentoo-dev Security 2009-12-26 13:45:51 UTC
I just got the same error. Weirdly enough, just trying to install it again without making any changes worked for me and things now seem to be installed as expected.
Comment 3 Jack 2010-01-15 17:30:53 UTC
I just had exactly the same experience.  First try failed with the same "no rule to make target" error, second try (just repeating the emerge command with no other changes) seems to have succeeded.
Comment 4 Kevin Pyle 2010-01-15 19:47:19 UTC
Since the error references a file in the ccache storage area, rerunning is not a perfectly clean operation, since emerge only cleans out the unpacked tree, but does not wipe the ccache area.  There is something wrong in the Makefile that it even detects the name of the ccache intermediate file, though.
Comment 5 robi karmann 2010-02-16 10:57:53 UTC
Confirming the same behaviour on (Intel) amd64 with ccache enabled. First run failed, second succeeded.
Comment 6 Christian Ruppert (idl0r) gentoo-dev 2010-02-20 17:52:49 UTC
Its a parallel build issue.
MAKEOPTS=-j1 should work as workaround.
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2010-02-20 18:05:40 UTC
(In reply to comment #6)
> Its a parallel build issue.
> MAKEOPTS=-j1 should work as workaround.
> 

Oops... ignore my comment.. it should be in a new bug instead :/
Comment 8 Christian Schafmeister 2010-03-02 11:17:21 UTC
I can confirm this.

Disabling CCACHE and setting MAKEOPTS=-j1 fixed the install bug for me.
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2010-05-25 08:58:44 UTC
I've got this problem for second time now. make install fails with the following error:

make  install-am
make[1]: Entering directory `/<some dir here>/ctemplate-0.95'
make[1]: *** No rule to make target `/var/tmp/ccache/statemachi.tmp.gnome.9783.ii', needed by `statemachine_test-statemachine.o'.  Stop.

Now greping for statemachi.tmp.gnome.9783.ii reveals that it comes from deps:

 # grep -r statemachi.tmp.gnome.9783.ii .
./.deps/statemachine_test-statemachine.Po: /var/tmp/ccache/statemachi.tmp.gnome.9783.ii


Now, looking at /var/tmp/ccache/ I found besides 0-f directories some strange files (I'll attach listing).

Interesting that second attempt to rebuild fixed this problem.
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2010-05-25 08:59:48 UTC
Created attachment 232849 [details]
output of ls -ls /var/tmp/ccache
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2010-05-25 09:16:11 UTC
And even better. I've reproduced this bug another time. I just removed ccache and with _empty_ ccache started to build ctemplate. Files listed in ccache.txt are non relevant, so I'll obsolete that attachment. Now, here are some debugging information:

1. ccache log file: http://gnome.amd64.buildhost.0xd.ru/cc.log.bz2
2. ccache directory after I've tried to build ctemplate:
http://gnome.amd64.buildhost.0xd.ru/ccache.tar.bz2
3. portage build directory where build failed:
http://gnome.amd64.buildhost.0xd.ru/ctemplate-0.95-build.tar.bz2

The error in this case was:

make[1]: Entering directory `/var/tmp/portage/dev-cpp/ctemplate-0.95/work/ctemplate-0.95'
make[1]: *** Нет правила для сборки цели `/var/tmp/ccache/statemachi.tmp.gnome.31406.ii', требуемой для `statemachine_test-statemachine.o'.  Останов.

(No rule to make target ... needed by ...)
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2010-05-25 09:22:17 UTC
Robin, please, take a look at comment #11. I'm pretty sure that the hardware is more or less sane. Other services are running there (about 20 containers with no issues noticed)... If needed I can give you access there since it's just automated build host for gnome packages I need (inside openvz container).

Just for record, emerge --info:
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/gnome, gcc-4.3.4, glibc-2.11.1-r0, 2.6.27-openvz-kiprensky.1-r1 x86_64)
=================================================================
System uname: Linux-2.6.27-openvz-kiprensky.1-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5310_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 24 May 2010 20:30:19 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA skype-eula googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -mtune=k8 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=k8 -mtune=k8 -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildpkg ccache collision-protect distcc distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,--as-needed,--hash-style=gnu"
LINGUAS="en ru en_GB en_US"
MAKEOPTS="-j8"
PKGDIR="/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/pva"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 amr bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cleartype cli consolekit cracklib crypt cups cxx dbus dga dirac djvu dri dts dvd dvdr dvi eds emboss encode evo exif faac faad fam ffmpeg firefox flac fontconfig fortran gdu gif gnome gnome-keyring gphoto2 gs gsm gstreamer gtk hal iconv id3tag imagemagick ipv6 jbig jpeg jpeg2k laptop latex lcms ldap libnotify libsamplerate mad matroska midi mikmod mmx mng modplug modules mp2 mp3 mp4 mpeg mtp mudflap multilib nautilus ncurses network nls nptl nptlonly nsplugin ogg oldnet opengl openmp pam pango parport pcre pdf plotutils png policykit ppds pppd qt3support raw readline reflection schroedinger sdl session sndfile spell spl sse sse2 ssl startup-notification svg sysfs taglib theora threads tiff timidity truetype tta unicode usb vorbis wavpack wma wmf wxwindows x264 xcb xml xmp xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev wacom synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru en_GB en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia radeon intel via" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Timo A. Hummel 2010-10-26 05:35:28 UTC
I also stumbled over this bug. Hardware is sane here also. 
Comment 14 Timo A. Hummel 2010-10-26 05:36:47 UTC
Additional info:

Regular system (no VM). Emerge worked on the second try.


Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-tuxonice-r3-feli-t61p x86_64)
=================================================================
System uname: Linux-2.6.35-tuxonice-r3-feli-t61p-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 25 Oct 2010 17:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/bgo-overlay /var/lib/layman/steev /var/lib/layman/vmware /var/lib/layman/benf /var/lib/layman/rubenqba /var/lib/layman/kde-sunset /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 autoipd avahi bash-completion berkdb bluetooth bzip2 cardbus cdda cdr cli consolekit cracklib crypt cscope cups cxx dbus dga dhclient dhcpcd dri dvb dvdr esd fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran gdbm gif gnome gnome-keyring gnutls gpm gtk guile hal iconv id3tag imlib ipv6 java jpeg jpeg2k kerberos ladspa lame laptop ldap libffi libsamplerate lv2 lzo mdnsresponder-compat midi mmx mng modules mp3 mudflap multilib mysql mysqli ncurses network-cron networkmanager nls nptl nptlonly nss ntp opengl openmp oss pam pcre pdf perl png policykit pppd python qt3support quicktime readline resolvconf samba session smp speex sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd theora threads tiff truetype udev unicode v4l v4l2 vim-syntax vorbis wmf x264 xattr xcb xcomposite xinerama xml xorg xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Tim Harder gentoo-dev 2011-01-28 11:24:52 UTC
Can anyone still reproduce this bug with the latest version of ctemplate in the tree?
Comment 16 Tim Harder gentoo-dev 2011-04-29 09:42:34 UTC
Closing since no errors seem to be occurring with newer versions.
Comment 17 Peter Volkov (RETIRED) gentoo-dev 2011-04-29 10:23:04 UTC
(In reply to comment #16)
> Closing since no errors seem to be occurring with newer versions.

Tim, this is bug in ccache and this was testcase to reproduce this error... I've just checked - this error is still reproducible with ctemplate-0.95/ccache-2.x and not reproducible with ctemplate-0.95/ccache-3.x so this bug is really fixed.