Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465836 - dev-util/nvidia-cuda-sdk-5.0.35-r1 build hangs -- sandbox problem
Summary: dev-util/nvidia-cuda-sdk-5.0.35-r1 build hangs -- sandbox problem
Status: RESOLVED DUPLICATE of bug 462602
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-13 22:16 UTC by kaszynek
Modified: 2013-05-06 06:58 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,99.04 KB, application/x-gzip)
2013-04-13 22:16 UTC, kaszynek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaszynek 2013-04-13 22:16:18 UTC
Created attachment 345506 [details]
build.log.gz

During build there is a moment when build just freezes and nothing happens.
at:

x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -m64 -o MC_SingleAsianOptionP pricingengine.o main.o test.o -L/opt/cuda//lib64 -lcudart -lcurand
mkdir -p ../../bin/linux/release
cp MC_SingleAsianOptionP ../../bin/linux/release
make[1]: Leaving directory `/var/tmp/portage/dev-util/nvidia-cuda-sdk-5.0.35/work/sdk/7_CUDALibraries/MC_SingleAsianOptionP'

Same with nvidia-cuda-sdk-5.0.35

Portage 2.2.0_alpha169 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.16.0, 3.8.2-gentoo x86_64)
=================================================================
System uname: Linux-3.8.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:    20547272 total,  11136800 free
KiB Swap:   21992948 total,  21992948 free
Timestamp of tree: Tue, 09 Apr 2013 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9-r1::science
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo alice science my_local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/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="-O2 -march=native -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://ftp.vectranet.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl ftp://ftp.vectranet.pl/gentoo/ ftp://gentoo.po.opole.pl "
LANG="pl_PL.utf8"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/alice /var/lib/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="64bit X a52 aac abyss acl acpi alsa amd64 animgif ant apache2 apng audiofile automount avahi bash-completion bazaar berkdb binary-drivers boost branding bzip2 cairo caps cdr chm cleartype cli client colordiff consolekit corefonts cpio cracklib cron crypt csharp css ctype cue cups cupsddk curl curlwrappers cvs cxx cycles dbus declarative device-mapper dhcpcd dot dri dts dv dvb dvd dvdr eclipse edit egl embedded encode examples exif expat extra extras fam fat fbcon fbcondecor fbsplash ffmpeg firefox flac flash flv fontconfig fortran ftp fuse g3dvl gadu gd gdbm gdu gedit gflags gif git gles2 glib glibc-compat20 glitz glut gmath gmp gnutls gpm grub gstreamer gtk gtkstyle gudev gzip html hwdb icons iconv icu id3 id3tag ieee1394 imap intl ioctl ipv6 irc jadetex java java6 javascript jpeg kde kdenlive keymap kipi kpathsea kvm lastfm latex lcdfilter libnotify libsamplerate libssh2 lm_sensors logrotate lua lua-cairo lua-imlib lzma lzo mad matroska matrox mdnsresponder-compat melt mikmod minizip mmap mmx mng mod_python modules mozilla mp3 mp3rtp mp3tunes mp4 mpeg mplayer mudflap multilib musepack mysql mysqli mysqlnd ncurses nfs nls nptl nsplugin ntfs objc objc++ objc-gc ogg openal opencl openexr opengl openmp openssl openvg oss pam pcre pdf pdo perl phonon php plasma png policykit ppds private-headers pulseaudio python python2 python3 qml qt3support qt4 rar readline samba script sdl semantic-desktop server session slp smbclient sound source sql sqlite sqlite3 sse sse2 ssh ssl subversion svg tcpd tex theora threads threadsafe tk tls truetype tv udev unicode upnp usb v4l v4l2 vdpau vorbis wav webkit winetools winetriks wma wmf wxwidgets x264 x86emu xcb xcomposite xft xinerama xml xmp xosd xpm xv xvid xvmc youtube zip zlib" ABI_X86="64 32" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" 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 1 Justin Lecher (RETIRED) gentoo-dev 2013-04-17 09:44:12 UTC
sandbox problem again
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2013-04-19 12:50:40 UTC
Do you have openmpi installed?
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-04-19 12:51:06 UTC
Please paste the output of 

 mpicc -v
Comment 4 kaszynek 2013-04-20 17:20:36 UTC
Yes, I've got openmpi.

Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --enable-objc-gc --enable-languages=c,c++,objc,obj-c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3 p1.11, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2)
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2013-04-20 17:47:43 UTC
Justin, what was the problem again with sandbox + openmpi?
Comment 6 Geoff Leach 2013-05-02 07:31:24 UTC

Seems ebuild hanging in compile command. In /var/tmp/portage/dev-util/nvidia-cuda-sdk-5.0.35-r1/work/sdk, and then 'make' - just one thing remained to be done

make[1]: Entering directory `/var/tmp/portage/dev-util/nvidia-cuda-sdk-5.0.35-r1/work/sdk/0_Simple/simpleMPI'
/usr/bin/mpicxx -m64 -o simpleMPI simpleMPI.o main.o -L/opt/cuda/lib64 -lcudart 
mkdir -p ../../bin/linux/release
cp simpleMPI ../../bin/linux/release

then ebuild compile completes and ebuild qmerge installs and so far seems working cuda.

But not helping with actual hang problem.

(I tried strace, but didn't seem to reveal other than stuck waiting on read).
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-05-06 06:58:54 UTC

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