Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288881 - ~sys-libs/ncurses-5.7 - `tic` goes into infinite loop
Summary: ~sys-libs/ncurses-5.7 - `tic` goes into infinite loop
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 249363
Blocks:
  Show dependency tree
 
Reported: 2009-10-13 14:02 UTC by Sergiy Borodych
Modified: 2009-10-22 14:54 UTC (History)
0 users

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


Attachments
build.log (build.log,1.10 MB, text/plain)
2009-10-13 14:03 UTC, Sergiy Borodych
Details
build.log (build.log,1.24 MB, text/plain)
2009-10-21 15:23 UTC, Sergiy Borodych
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergiy Borodych 2009-10-13 14:02:04 UTC
this bug like a bug #249363,
but maybe my problem is another (diff platform)
so as SpanKY suggest I create new bug report

# emerge -v -1 sys-libs/ncurses

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild     U ] sys-libs/ncurses-5.7-r2 [5.6-r2] USE="gpm unicode -ada% -cxx% -debug -doc -minimal -profile -trace (-nocxx%)" 0 kB
...
** Building terminfo database, please wait...
Running tic to install
/var/tmp/portage/sys-libs/ncurses-5.7-r2/image//usr/share/terminfo ...

        You may see messages regarding extended capabilities, e.g., AX.
        These are extended terminal capabilities which are compiled
        using
                tic -x
        If you have ncurses 4.2 applications, you should read the INSTALL
        document, and install the terminfo without the -x option.

here it hangs
I waited about hour,
it eats processor time and no output even in strace

# strace -p 24731
Process 24731 attached - interrupt to quit
^CProcess 24731 detached


# emerge --info
Portage 2.1.7 (default/linux/x86/10.0/desktop, gcc-4.4.1, glibc-2.10.1-r0,
2.6.31-gentoo-r2 i686)
=================================================================
System uname:
Linux-2.6.31-gentoo-r2-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 12 Oct 2009 05:30:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r4
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  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="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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/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/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoaddcvs autoconfig ccache collision-protect
distlocks fixpackages metadata-transfer news parallel-fetch protect-owned
sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="uk_UA.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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/perl-experimental /usr/local/portage
/usr/local/portage.old"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 berkdb branding bzip2 cairo caps cdr chroot
cli cracklib crypt dbus device-mapper djvu dri dts dvdr emboss encode evo fam
fat ffmpeg firefox flac freetype gd gdbm gif gnome gpm gstreamer gtk gtk2 hal
iconv irda isdnlog ithreads jpeg lcms libnotify logrotate mad mmap mmx modules
mozdevelop mozilla moznocompose moznoirc mp3 mp4 mudflap ncurses nls nptl
nptlonly nsplugin ogg opengl openmp pam pcre pdf perl pic png ppds pppd
qt3support readline reflection reiser4 reiserfs sdl seamonkey session slang sox
spl sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs
syslog tcpd threads thunar tiff truetype unicode usb utf8 vim-syntax vim-with-x
vorbis win32codecs wma x264 x86 xml xml2 xorg xulrunner xv xvid zlib"
ALSA_CARDS="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="alias auth_basic authn_default authn_file authz_default
authz_host autoindex dbd dir env expires ext_filter filter headers include
log_config logio mime rewrite setenvif status vhost_alias" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk"
USERLAND="GNU" VIDEO_CARDS="radeon vesa vga" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Sergiy Borodych 2009-10-13 14:03:25 UTC
Created attachment 206972 [details]
build.log

build.log
Comment 2 SpanKY gentoo-dev 2009-10-20 08:02:39 UTC
your gcc is coming back wrong.  are you setting $CC in your env ?  do you have `i686-pc-linux-gnu-gcc` in your $PATH ?

checking for i686-pc-linux-gnu-gcc... gcc
Comment 3 Sergiy Borodych 2009-10-20 13:39:12 UTC
# gcc-config 1
* Switching native-compiler to i686-pc-linux-gnu-4.4.2...         
 
# source /etc/profile

# env | grep CC
DISTCC_LOG=
DCCC_PATH=/usr/lib/distcc/bin
DISTCC_VERBOSE=0
GCC_SPECS=

# env | grep PATH
MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.20/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.2/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/share/postgresql-8.2/man:/opt/opera/share/man
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.2
DCCC_PATH=/usr/lib/distcc/bin
WINDOWPATH=7
INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.20/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.2/info

# whereis cc
cc: /usr/bin/cc /usr/bin/X11/cc
# whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/bin/X11/gcc /usr/libexec/gcc
# whereis i686-pc-linux-gnu-gcc
i686-pc-linux-gnu-gcc: /usr/bin/i686-pc-linux-gnu-gcc /usr/bin/X11/i686-pc-linux-gnu-gcc


I need *specially* setup $CC ? Like in /etc/env.d ?
Comment 4 SpanKY gentoo-dev 2009-10-20 16:38:20 UTC
no, you need to *not* set CC

run `emerge --debug ncurses` and post the log as an attachment
Comment 5 Sergiy Borodych 2009-10-21 15:23:15 UTC
Created attachment 207835 [details]
build.log

build.log for `emerge -1 --debug ncurses`
Comment 6 SpanKY gentoo-dev 2009-10-21 19:43:51 UTC
can you also post the config.log as an attachment from the build dir please ?
Comment 7 Sergiy Borodych 2009-10-22 10:54:43 UTC
hm,
in /var/tmp/portage/sys-libs/ncurses-5.7-r2/work/ncurses-5.7/ no config.log file
only in work/widec and work/narrowc it exists
what you want ?


#find /var/tmp/portage/sys-libs/ncurses-5.7-r2/ -name config.log -exec ls -l \{} \;
-rw-r--r-- 1 root root 81178 Oct 21 17:09 /var/tmp/portage/sys-libs/ncurses-5.7-r2/work/widec/config.log
-rw-r--r-- 1 root root 74829 Oct 21 17:06 /var/tmp/portage/sys-libs/ncurses-5.7-r2/work/narrowc/config.log
Comment 8 SpanKY gentoo-dev 2009-10-22 11:20:48 UTC
both -- i'd rather have too many files than not enough
Comment 9 SpanKY gentoo-dev 2009-10-22 12:30:50 UTC
nm, it's probably fixed in cvs now anyways

http://sources.gentoo.org/sys-libs/ncurses/files/ncurses-5.7-tic-cross-detection.patch?rev=1.1
Comment 10 Sergiy Borodych 2009-10-22 14:54:39 UTC
sync
and now compile fine :)
thanks