Problem happened while updating from dev-db/sqlite-3.6.16. Part of build log: >>> Compiling source in /var/tmp/portage/dev-db/sqlite-3.6.17/work/sqlite-3.6.17 ... make -j5 TCLLIBDIR=/usr/lib64/sqlite-3.6.17 cat ./src/sqlite.h.in | tclsh ./tool/mksqlite3h.tcl `cat ./VERSION` > sqlite3.h x86_64-pc-linux-gnu-gcc -O2 -march=native -mtune=native -pipe -o lemon ./tool/lemon.c /bin/sh: tclsh: command not found x86_64-pc-linux-gnu-gcc -O2 -march=native -mtune=native -pipe -o mkkeywordhash -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA ./tool/mkkeywordhash.c make: *** [sqlite3.h] Error 127 make: *** Waiting for unfinished jobs.... ./mkkeywordhash >keywordhash.h cp ./src/lempar.c . * * ERROR: dev-db/sqlite-3.6.17 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2836: Called die * The specific snippet of code: * emake TCLLIBDIR="/usr/$(get_libdir)/${P}" || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/sqlite-3.6.17/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/sqlite-3.6.17/temp/environment'. * Reproducible: Always Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 13 Aug 2009 16:15:03 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1, 3.1 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -mtune=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=native -mtune=native -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.corbina.net/pub/Linux/gentoo/ ftp://ftp.fi.debian.org/pub/gentoo/" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="ru en" 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="/usr/local/portage/layman/sunrise /usr/local/portage/layman/arcon /usr/local/portage/layman/pro-audio /usr/local/portage/layman/rion /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 apache2 aspell bash-completion berkdb bluetooth branding bzip2 cairo cdda cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cvs dbus djvu dri dts dv dvd dvdr eds emboss encode esd evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gcj gdbm gif gimp gpm gsm gstreamer gtk h323 hal iconv id3tag idn ieee1394 ipv6 isdnlog jabber jack java jingle jpeg jpeg2k ladspa lame lash libnotify libsamplerate lzo mad midi mikmod mmx modplug mono motif mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection scanner sdl session smp sndfile soundtouch sox speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora tiff timidity truetype twolame unicode usb v4l v4l2 vamp vim-syntax vorbis wavpack webkit wmf x264 xcomposite xml xorg xscreensaver xulrunner xv xvid zip zlib zsh-completion" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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" CAMERAS="samsung canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse ps2mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="vesa vga radeonhd radeon fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 201156 [details] build.log PS: maybe it is a duplicate of bug 223873, although everything was OK with sqlite-3.6.16 ...
The patch sqlite-3.6.17-fix_installation.patch forces the Makefile to use tclsh whenever tcl is installed or not. As a workaround i commented out the epatch "${FILESDIR}/${P}-fix_installation.patch" line to build sqlite.
I can confirm this, dev-db/sqlite-3.6.17 wont compile without dev-lang/tcl installed. sqlite should depend on dev-lang/tcl if using sqlite-3.6.17-fix_installation.patch. Workaround: # emerge -1 dev-lang/tcl # emerge =dev-db/sqlite-3.6.17
(In reply to comment #2) > The patch sqlite-3.6.17-fix_installation.patch forces the Makefile to use tclsh > whenever tcl is installed or not. As a workaround i commented out the > epatch "${FILESDIR}/${P}-fix_installation.patch" line to build sqlite. > A better way to deal with this problem would be, instead of commenting the epatch line, to prepend it with "use tcl &&", like this: use tcl && epatch "${FILESDIR}/${P}-fix_installation.patch" This way portage only applies the patch when the tcl useflag is enabled.
See #281357 for a possible fix/workaround.
Terribly sorry for the noise, the above reply was meant for bug #281294.
Ran into this during an @system upgrade on ~x86 after gcc-4.4.1 update, Søren's fix for the ebuild works perfectly here for sqlite -tcl.
*** This bug has been marked as a duplicate of bug 281294 ***
Can we get a legitimate patch for 3.6.17? Not everybody wants to rifle through bug reports here to get stuff to build. And FWIW, the fix is in comment #5 of bug #223873 though you need to edit that patch to match the version number here: http://bugs.gentoo.org/show_bug.cgi?id=223873#c5
(In reply to comment #9) > Can we get a legitimate patch for 3.6.17? Not everybody wants to rifle through > bug reports here to get stuff to build. And FWIW, the fix is in comment #5 of > bug #223873 though you need to edit that patch to match the version number > here: > > http://bugs.gentoo.org/show_bug.cgi?id=223873#c5 > Not quite true - the fix from comment #4 in this bug is proper - the workaround in that one does not fix it on either ppc or x86-fbsd - applying the patch only when tcl useflag is correct.
And even built with -tcl, sqlite still need dev-lang/tcl as RDEPEND?
(In reply to comment #10) > (In reply to comment #9) > > Can we get a legitimate patch for 3.6.17? Not everybody wants to rifle through > > bug reports here to get stuff to build. And FWIW, the fix is in comment #5 of > > bug #223873 though you need to edit that patch to match the version number > > here: > > > > http://bugs.gentoo.org/show_bug.cgi?id=223873#c5 > > > > Not quite true - the fix from comment #4 in this bug is proper - the workaround > in that one does not fix it on either ppc or x86-fbsd - applying the patch only > when tcl useflag is correct. > You are correct, sir. The suggested fix in comment #4 of this bug report worked for me. Thanks!