Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464778 - app-i18n/pyzy fails to emerge with database.lo and inputcontext.lo errors
Summary: app-i18n/pyzy fails to emerge with database.lo and inputcontext.lo errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 22:22 UTC by Dion Moult (RETIRED)
Modified: 2013-04-07 06:47 UTC (History)
2 users (show)

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


Attachments
test patch (pyzy-0.1.0-nullptr.patch,405 bytes, patch)
2013-04-07 05:29 UTC, Yixun Lan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dion Moult (RETIRED) gentoo-dev 2013-04-05 22:22:51 UTC
Emerge fails with the following (another person has the same issue, shown here: http://forums.gentoo.org/viewtopic-t-955930.html):

[32;01m * [39;49;00mPackage:    app-i18n/pyzy-0.1.0
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: dennis.yxun@gmail.com naota@gentoo.org,cjk,proxy-maintainers
[32;01m * [39;49;00mUSE:        amd64 elibc_glibc kernel_linux userland_GNU
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking pyzy-0.1.0.tar.gz to /var/tmp/portage/app-i18n/pyzy-0.1.0/work
>>> Unpacking pyzy-database-1.0.0.tar.bz2 to /var/tmp/portage/app-i18n/pyzy-0.1.0/work
>>> Source unpacked in /var/tmp/portage/app-i18n/pyzy-0.1.0/work

[ ... snip ... ]

rm -f android.db; \
./create_db.py ./rawdict_utf16_65105_freq.txt | /usr/bin/sqlite3 android.db || \
	( rm -f android.db ; exit 1 )
make[4]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data/db/android'
Making all in open-phrase
make[4]: Entering directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data/db/open-phrase'
\
tar jxfm pyzy-database-1.0.0.tar.bz2; \
mv db/main.db db/open-phrase.db; \
touch stamp-db
tar (child): pyzy-database-1.0.0.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
make[4]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data/db/open-phrase'
make[4]: Entering directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data/db'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data/db'
make[3]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data/db'
make[3]: Entering directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/data'
make[3]: Nothing to be done for `all-am'.


[ ... snip ...]

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\" -std=c++0x -I/usr/include/uuid -march=core2 -O2 -pipe -c FullPinyinContext.cc  -fPIC -DPIC -o .libs/libpyzy_1_0_la-FullPinyinContext.o
In file included from Database.cc:22:0:
Database.h: In static member function 'static PyZy::Database& PyZy::Database::instance()':
Database.h:82:27: error: no match for 'operator==' in 'PyZy::Database::m_instance == 0l'
Database.h:82:27: note: candidate is: operator==(int, long int) <built-in>
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\"   -std=c++0x  -I/usr/include/uuid  -march=core2 -O2 -pipe -c -o libpyzy_1_0_la-InputContext.lo `test -f 'InputContext.cc' || echo './'`InputContext.cc
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\" -std=c++0x -I/usr/include/uuid -march=core2 -O2 -pipe -c InputContext.cc  -fPIC -DPIC -o .libs/libpyzy_1_0_la-InputContext.o
make[4]: *** [libpyzy_1_0_la-Database.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from InputContext.cc:28:0:
Database.h: In static member function 'static PyZy::Database& PyZy::Database::instance()':
Database.h:82:27: error: no match for 'operator==' in 'PyZy::Database::m_instance == 0l'
Database.h:82:27: note: candidate is: operator==(int, long int) <built-in>
make[4]: *** [libpyzy_1_0_la-InputContext.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0'
make: *** [all] Error 2
 [31;01m*[0m ERROR: app-i18n/pyzy-0.1.0 failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=app-i18n/pyzy-0.1.0'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=app-i18n/pyzy-0.1.0'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/app-i18n/pyzy-0.1.0/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-i18n/pyzy-0.1.0/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0'
 [31;01m*[0m S: '/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0'
Comment 1 Yixun Lan archtester gentoo-dev 2013-04-06 22:36:01 UTC
hi, could you post the result of 'emerge --info =api-i18n/pyzy-0.1.0'
Comment 2 Yixun Lan archtester gentoo-dev 2013-04-07 05:29:06 UTC
Created attachment 344682 [details, diff]
test patch


try this patch, my attempt to fix this problem, please help and test.

also I'm still interested to see your cflags, so post "emerge --info"..
thanks
Comment 3 Dion Moult (RETIRED) gentoo-dev 2013-04-07 05:30:33 UTC
Portage 2.2.0_alpha170_p1 (default/linux/amd64/13.0, gcc-4.5.4, glibc-2.15-r3, 3.8.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.4-gentoo-x86_64-Intel-R-_Core-TM-_i3-2330M_CPU_@_2.20GHz-with-gentoo-2.1
KiB Mem:     6064936 total,    726452 free
KiB Swap:    2097148 total,   1974768 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde godin sabayon java-overlay steam-overlay sunrise Moulterlay hackathon
Installed sets: @kdeadmin-4.10, @kdeartwork-4.10, @kdebase-4.10, @kdegraphics-4.10, @kdepim-4.10, @kdeutils-4.10
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.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 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/opt/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/godin /var/lib/layman/sabayon /var/lib/layman/java-overlay /var/lib/layman/steam /var/lib/layman/sunrise /usr/local/portage /var/lib/layman/hackathon"
SYNC="cvs://moult@cvs.gentoo.org:/var/cvsroot"
USE="X acl acpi alsa amd64 arts berkdb bzip2 cdda cli consolekit cracklib crypt cxx dbus dri fortran gdbm gif gnome gpm gtk iconv ipv6 jpeg kde mmx modules mp3 mudflap multilib ncurses nls nptl nvidia opengl openmp pam pcre png policykit qt3 qt3support qt4 readline semantic-desktop session sse sse2 ssl tcpd udev unicode xvmc zlib" ABI_X86="64" 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Dion Moult (RETIRED) gentoo-dev 2013-04-07 05:45:23 UTC
Just tried the patch. Still fails, with a slightly different error now (seems to be caused by the patch):

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\" -std=c++0x -I/usr/include/uuid -march=core2 -O2 -pipe -c Database.cc  -fPIC -DPIC -o .libs/libpyzy_1_0_la-Database.o
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\" -std=c++0x -I/usr/include/uuid -march=core2 -O2 -pipe -c DynamicSpecialPhrase.cc  -fPIC -DPIC -o .libs/libpyzy_1_0_la-DynamicSpecialPhrase.o
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\" -std=c++0x -I/usr/include/uuid -march=core2 -O2 -pipe -c FullPinyinContext.cc  -fPIC -DPIC -o .libs/libpyzy_1_0_la-FullPinyinContext.o
In file included from Database.cc:22:0:
Database.h: In static member function 'static PyZy::Database& PyZy::Database::instance()':
Database.h:82:27: error: 'nullptr' was not declared in this scope
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\"   -std=c++0x  -I/usr/include/uuid  -march=core2 -O2 -pipe -c -o libpyzy_1_0_la-InputContext.lo `test -f 'InputContext.cc' || echo './'`InputContext.cc
make[4]: *** [libpyzy_1_0_la-Database.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPKGDATADIR=\"/usr/share/pyzy\" -std=c++0x -I/usr/include/uuid -march=core2 -O2 -pipe -c InputContext.cc  -fPIC -DPIC -o .libs/libpyzy_1_0_la-InputContext.o
In file included from InputContext.cc:28:0:
Database.h: In static member function 'static PyZy::Database& PyZy::Database::instance()':
Database.h:82:27: error: 'nullptr' was not declared in this scope
make[4]: *** [libpyzy_1_0_la-InputContext.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0'
make: *** [all] Error 2
 [31;01m*[0m ERROR: app-i18n/pyzy-0.1.0 failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=app-i18n/pyzy-0.1.0'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=app-i18n/pyzy-0.1.0'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/app-i18n/pyzy-0.1.0/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-i18n/pyzy-0.1.0/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0'
 [31;01m*[0m S: '/var/tmp/portage/app-i18n/pyzy-0.1.0/work/pyzy-0.1.0'
Comment 5 Dion Moult (RETIRED) gentoo-dev 2013-04-07 06:13:11 UTC
Upgrading from gcc 4.5.4 to gcc 4.6.3 fixed this issue.
Comment 6 Yixun Lan archtester gentoo-dev 2013-04-07 06:14:29 UTC
I've tested with gcc 4.6.3, 4.7.2, 4.8.0, and have no problem.

thanks

(In reply to comment #5)
> Upgrading from gcc 4.5.4 to gcc 4.6.3 fixed this issue.
Comment 7 Dion Moult (RETIRED) gentoo-dev 2013-04-07 06:47:34 UTC
Fix confirmed by helio in http://forums.gentoo.org/viewtopic.php?p=7284590#7284590 - bug closed.