Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 368441

Summary: x11-libs/openmotif-2.3.3 build hangs at ./wmldbcreate
Product: Gentoo Linux Reporter: Andre <andremuellerster>
Component: [OLD] LibraryAssignee: Ulrich Müller <ulm>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andre 2011-05-23 10:19:48 UTC
While rebuilding @world after upgrade to glibc-2.12.2, 
I encountered a hang of openmotif. 

The ebuild hangs at
./wmldbcreate -o motif.wmd

The process eats up 100% of one cpu and cannot be stopped,
kill -9 fails on the process as well as on the parent make process,
so I cannot stop it but by rebooting.

On compiling wmldbcreate I get a series of warnings, I include that
part of the build log:

[...]
rm -f tokens.dat
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../include -I../../lib/Xm -I../..
/lib -I./../../lib -I./../../include      -O2 -march=i686 -pipe -fno-strict-alia
sing -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter   -MT 
wmldbcreate.o -MD -MP -MF .deps/wmldbcreate.Tpo -c -o wmldbcreate.o `test -f './
wmldbcreate.c' || echo './'`./wmldbcreate.c
./wmldbcreate.c: In function 'emit_globals':
./wmldbcreate.c:247: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c: In function 'emit_header':
./wmldbcreate.c:263: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c: In function 'emit_chars':
./wmldbcreate.c:339: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c: In function 'emit_ints_and_string':
./wmldbcreate.c:377: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c:380: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c: In function 'emit_char_table':
./wmldbcreate.c:434: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c: In function 'emit_length_and_string':
./wmldbcreate.c:552: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c:561: warning: ignoring return value of 'fwrite', declared with a
ttribute warn_unused_result
./wmldbcreate.c: In function 'emit_shorts':
./wmldbcreate.c:625: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
./wmldbcreate.c: In function 'emit_int_and_table_shorts':
./wmldbcreate.c:658: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
./wmldbcreate.c:663: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
./wmldbcreate.c: In function 'emit_ints':
./wmldbcreate.c:691: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
./wmldbcreate.c: In function 'emit_int_and_table_shorts':
./wmldbcreate.c:640: warning: 'table' may be used uninitialized in this function
./wmldbcreate.c: In function 'emit_ints':
./wmldbcreate.c:673: warning: 'ptr' may be used uninitialized in this function
./wmldbcreate.c: In function 'emit_shorts':
./wmldbcreate.c:574: warning: 'ptr' may be used uninitialized in this function
./wmldbcreate.c: In function 'emit_char_table':
./wmldbcreate.c:392: warning: 'table' may be used uninitialized in this function
./wmldbcreate.c: In function 'emit_ints_and_string':
./wmldbcreate.c:354: warning: 'table' may be used uninitialized in this function
./wmldbcreate.c: In function 'emit_chars':
./wmldbcreate.c:276: warning: 'ptr' may be used uninitialized in this function
./wmldbcreate.c: In function 'emit_length_and_string':
./wmldbcreate.c:453: warning: 'table' may be used uninitialized in this function
mv -f .deps/wmldbcreate.Tpo .deps/wmldbcreate.Po
/bin/sh ../../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc  -O2 -march=i686 -pipe -fno-strict-aliasing -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter    -Wl,-O1 -Wl,--as-needed -o wmldbcreate wmldbcreate.o ../../lib/Xm/libXm.la -lXp  -ljpeg -lpng
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -fno-strict-aliasing -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -Wl,-O1 -o .libs/wmldbcreate wmldbcreate.o  -Wl,--as-needed ../../lib/Xm/.libs/libXm.so -lXmu -lXt -lXext -lX11 -lXp -ljpeg -lpng
./wmldbcreate -o motif.wmd
make[2]: *** Deleting file `motif.wmd'
sandbox:stop  caught signal 2 in pid 2203
sandbox:stop  signal already caught and busy still cleaning up!
 * The ebuild phase 'compile' with pid 2203 appears to have left an orphan
 * process running in the background.

======================

My emerge --info x11-libs/openmotif:


Portage 2.2.0_alpha34 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.12.2-r0, 2.6.37.6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37.6-i686-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 19 May 2011 13:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.65-r1
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.81-r2
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /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 /usr/share/X11 /usr/share/X11/xkb /usr/share/X11/xkb/compat /usr/share/X11/xkb/geometry /usr/share/X11/xkb/keycodes /usr/share/X11/xkb/keymap /usr/share/X11/xkb/rules /usr/share/X11/xkb/symbols/macintosh_vndr /usr/share/X11/xkb/symbols/sun_vndr /usr/share/X11/xkb/types"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"

USE="X a52 aac acpi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dri dts dvd dvdr emboss encode exif expat fam firefox flac fortran gdu gif gnutls gpm gtk iconv ipv6 java jpeg lcms mad minimal mmx mng modules mp3 mp4 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pango pcre pdf perl png policykit ppds pppd python qt3support readline session spell sqlite sse sse2 ssl svg sysfs system-sqlite tcpd threads tiff truetype udev unicode usb vim-syntax vorbis wmf x264 x86 xcb xml xorg xulrunner xv xvid zlib" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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" KERNEL="linux" LINGUAS="en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-libs/openmotif-2.3.3 was built with the following:
USE="jpeg png unicode -doc -examples -static-libs -xft"
CFLAGS="-O2 -march=i686 -pipe -fno-strict-aliasing"
CXXFLAGS="-O2 -march=i686 -pipe -fno-strict-aliasing"
Comment 1 Ulrich Müller gentoo-dev 2011-05-24 01:55:19 UTC
This looks like a duplicate of bug 354253 to me. On what filesystem is your PORTAGE_TMPDIR?
Comment 2 Andre 2011-05-25 09:25:59 UTC
You are perfectly right, this is a dup.
Upgrading 2.6.37.6 -> 2.6.38.7 resolves this.

That shall teach me to include fixed bugs in my bug search.
Thanks a lot!

*** This bug has been marked as a duplicate of bug 354253 ***