Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267528 - dev-db/sqlite-3.6.11 with USE="tcl" fails to build, stable request for 3.6.12
Summary: dev-db/sqlite-3.6.11 with USE="tcl" fails to build, stable request for 3.6.12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2009-04-26 11:55 UTC by Denis Bourgeois
Modified: 2009-05-09 04:20 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,16.65 KB, text/plain)
2009-04-26 17:43 UTC, Fredric Johansson
Details
initial build log (build.log,16.10 KB, text/plain)
2009-04-26 19:21 UTC, Denis Bourgeois
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Bourgeois 2009-04-26 11:55:28 UTC
"tcl" and "gtk" are added as new use flags in "etc/make.conf"

"emerge --update --deep --newuse world" wants to rebuild nmap with USE="gtk" and pysqlite-2.4.1 [ebuild N], the latter pulls in sqlite-3.6.11 with USE="tcl".

Build error when first trying to compile sqlite-3.6.11 with USE="tcl"

--- --- ---
>>> Unpacking source... 
>>> Unpacking sqlite-3.6.11.tar.gz to /var/tmp/portage/dev-db/sqlite-3.6.11/work 
 * Applying sandbox-fix2.patch ... 
 * Applying sqlite-3.6.11-reference.patch ... 
 * Removing useless C++ checks ... 
>>> Source unpacked in /var/tmp/portage/dev-db/sqlite-3.6.11/work 
>>> Compiling source in /var/tmp/portage/dev-db/sqlite-3.6.11/work/sqlite-3.6.11 ... 
 * econf: updating sqlite-3.6.11/config.guess with /usr/share/gnuconfig/config.guess 
 * econf: updating sqlite-3.6.11/config.sub with /usr/share/gnuconfig/config.sub 
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug --enable-threadsafe --enable-cross-thread-connections --enable-tcl --build=i686-pc-linux-gnu checking build system 

[skipping most build checks]

type... i686-pc-linux-gnu 
checking for tclsh8.4... tclsh8.4 
checking whether to support threadsafe operation... yes 
checking for library containing pthread_create... -lpthread 
checking whether to allow connections to be shared across threads... yes 
checking whether threads can override each others locks... no 

[threads is a USE flag ... could be a tcl vs threads issue?]

checking for Tcl configuration... found /usr/lib/tclConfig.sh 
checking for existence of /usr/lib/tclConfig.sh... loading 

config.status: creating Makefile 
config.status: creating sqlite3.pc 
config.status: creating config.h 
config.status: executing libtool commands 

[...]

>>> Source compiled. 
>>> Test phase [not enabled]: dev-db/sqlite-3.6.11 

>>> Install sqlite-3.6.11 into /var/tmp/portage/dev-db/sqlite-3.6.11/image/ category dev-db 

[...]

libtclsqlite3.la /var/tmp/portage/dev-db/sqlite-3.6.11/image//usr/lib/sqlite-3.6.11 
libtool: install: warning: relinking `libtclsqlite3.la' 

[...]

/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lsqlite3 
collect2: ld returned 1 exit status 
libtool: install: error: relink `libtclsqlite3.la' with the above command before installing it 
make: *** [tcl_install] Error 1 
 * 
 * ERROR: dev-db/sqlite-3.6.11 failed. 
 * Call stack: 
 *               ebuild.sh, line   49:  Called src_install 
 *            environment, line 2707:  Called die 
 * The specific snippet of code: 
 *       emake DESTDIR="${D}" TCLLIBDIR="/usr/$(get_libdir)/${P}" install || die "emake install failed"; 
 *  The die message: 
 *   emake install 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.11/temp/build.log'. 
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/sqlite-3.6.11/temp/environment'. 
 * 
--- --- ---

sqlite-3.6.11 compiles FINE without the tcl use flag:
"USE="-tcl" emerge sqlite

... but of course will want to pull in the tcl use flag when rebuilding world.

tcl or sqlite bug? 

This seems to be a known bug in Debian, subsequently fixed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520153 (ref: http://www.sqlite.org/cvstrac/tktview?tn=3747).

Requesting the same bug fix be applied and update Portage.

Ref: http://forums.gentoo.org/viewtopic.php?p=5683541#5683541
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-26 12:53:14 UTC
Please post your "emerge --info" and attach the build.log file of the failed emerge to this bug.
Comment 2 Fredric Johansson 2009-04-26 17:17:31 UTC
same error here:
emerge --info
Portage 2.2_rc31 (hardened/amd64/multilib, gcc-4.3.3, glibc-2.8_p20080602-r3, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.4
Timestamp of tree: Sun, 26 Apr 2009 11:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -pipe -fforce-addr -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fforce-addr -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer paralell-fetch parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ "
LANG="sv_SE"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu"
LINGUAS="sv 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/portage/local/layman/xake-toolchain /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/x11 /usr/portage/local/layman/je_fro /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 apm berkdb bzip2 cracklib crypt dbus dri flac gtk hal hardened jpeg justify midi mmx mp3 multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pic png python readline sqlite sse sse2 ssl svg tcl tcpd threads tiff tk truetype unicode urandom vorbis xcb xcomposite xorg 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="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv en" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Fredric Johansson 2009-04-26 17:43:50 UTC
Created attachment 189531 [details]
build.log

this is the build.log.
Notice that it wants to install into image/usr/lib64/sqlite-3.6.11, an error I guess
and that the libdir appended to the relinking doesnt exist, due to the above. libtclsqlite should be installed after libsqlite since else libsqlite wont be available for linking.
Comment 4 Denis Bourgeois 2009-04-26 19:17:18 UTC
(In reply to comment #1)
> Please post your "emerge --info" and attach the build.log file of the failed
> emerge to this bug.

This is the result of "emerg --info":

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r10 i686) 
================================================================= 
System uname: Linux-2.6.27-gentoo-r10-i686-Intel-R-_Xeon-R-_CPU_E5430_@_2.66GHz-with-glibc2.0 
Timestamp of tree: Fri, 24 Apr 2009 17:45:02 +0000 
app-shells/bash:     3.2_p39 
dev-lang/python:     2.4.4-r13, 2.5.4-r2 
dev-python/pycrypto: 2.0.1-r8 
sys-apps/baselayout: 1.12.11.1 
sys-apps/sandbox:    1.6-r2 
sys-devel/autoconf:  2.63 
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2 
sys-devel/binutils:  2.18-r3 
sys-devel/gcc-config: 1.4.0-r4 
sys-devel/libtool:   1.5.26 
virtual/os-headers:  2.6.27-r2 
ACCEPT_KEYWORDS="x86" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=prescott -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" 
CXXFLAGS="-O2 -march=prescott -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" 
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
LDFLAGS="-Wl,-O1" 
MAKEOPTS="-j3" 
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" 
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" 
USE="acl apache2 berkdb bzip2 clamav cli cracklib crypt cups cxx dri fortran ftp gdbm gpm gtk iconv ipv6 isdnlog libwww midi mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre pdf perl 
php png pppd python qt3 qt4 readline reflection sasl session spl srvdr ssl subversion sysfs syslog tcl tcpd threads tk udev unicode vda vhosts x86 xml 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb 
ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, 
PORTDIR_OVERLAY 
Comment 5 Denis Bourgeois 2009-04-26 19:21:40 UTC
Created attachment 189546 [details]
initial build log
Comment 6 Denis Bourgeois 2009-04-27 14:56:41 UTC
"emerge --sync" this morning. Cannot reproduce original problem. Has this bug been corrected? Can others reproduce original build failure?
Comment 7 Fredric Johansson 2009-04-28 16:29:09 UTC
If you already have sqlite intalled you wont be affected by this bug
Comment 8 Denis Bourgeois 2009-04-28 18:55:35 UTC
(In reply to comment #7)
> If you already have sqlite intalled you wont be affected by this bug

Even when sqlite was built with USE="-tcl", a subsequent USE="tcl" emerge sqlite still produced the build failure (linked to a TCL linking issue). However, as stated later, following an emerge --sync the next day, build failure no longer reproduced - assumed bug fix has been pulle dinto Portage. Are you still experiencing same build issue?
Comment 9 Karl Hakimian 2009-04-30 03:53:52 UTC
My ebuild for 3.6.11 is dated April 27th and I have to unset the tcl use flag to get it to emerge, so at least here, the problem still exists.
Comment 10 Fredric Johansson 2009-04-30 14:26:13 UTC
This seems to have been fixed in 3.6.12
Comment 11 urcindalo 2009-05-01 06:13:30 UTC
I was hit by this bug when bootstrapping a new system but using the config files (make.conf, package.*, etc...) from my main system. I just couldn't emerge the latest stable sqlite-3.6.11 due to the very same error appearing on post #1.

What I did after reading this bug was to mask the 3.6.11 version, emerge the 3.6.10 stable version and, after emerging a few other packages (I also had a circular dependencies problem to solve ;-)), I unmasked the 3.6.11 version. This time it emerged perfectly.

Hope this info helps.
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2009-05-01 13:50:28 UTC
Time for 3.6.12 to go stable any way.

Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-01 14:15:39 UTC
sparc probably would like to wait for 3.6.13.
Comment 14 nixnut (RETIRED) gentoo-dev 2009-05-02 17:29:30 UTC
ppc stable
Comment 15 Markus Meier gentoo-dev 2009-05-03 12:49:05 UTC
amd64/x86 stable
Comment 16 Tobias Klausmann (RETIRED) gentoo-dev 2009-05-03 19:08:42 UTC
Stable on alpha.
Comment 17 Brent Baude (RETIRED) gentoo-dev 2009-05-04 15:46:18 UTC
ppc64 done
Comment 18 Raúl Porcel (RETIRED) gentoo-dev 2009-05-07 15:57:16 UTC
arm/ia64/s390/sh/sparc stable for 3.6.13
Comment 19 Jeroen Roovers (RETIRED) gentoo-dev 2009-05-09 03:06:20 UTC
Stable for HPPA (3.6.13).