Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546566 - sci-mathematics/snns-4.3-r1 :mv: cannot stat ‘/var/tmp/portage/sci-mathematics/snns-4.3-r1/image//usr/bin/netperf’: No such file or directory
Summary: sci-mathematics/snns-4.3-r1 :mv: cannot stat ‘/var/tmp/portage/sci-mathematic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Stakenvicius (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-14 12:11 UTC by Toralf Förster
Modified: 2015-04-14 15:11 UTC (History)
1 user (show)

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


Attachments
emerge log (sci-mathematics-snns-4.3-r1-20150414-012222.log,52.31 KB, text/plain)
2015-04-14 12:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2015-04-14 12:11:07 UTC
^
x86_64-pc-linux-gnu-gcc  -fPIC -I../.. -I../../kernel/sources -I../../xgui/iconsXgui   -march=native -O2 -pipe  -c bn_bighop.c
ar  rc  lib3d.a net_analyzer.o d3_xUtils.o d3_global.o d3_anageo.o d3_shade.o d3_lists.o d3_point.o d3_dither.o d3_zgraph.o d3_fonts.o d3_graph.o d3_draw.o d3_disp.o d3_move.o d3_zValue.o d3_setup.o d3_units.o d3_links.o d3_model.o d3_project.o d3_light.o d3_pannels.o d3_main.o bn_bignet.o bn_basics.o bn_art1.o bn_art2.o bn_artmap.o bn_TD_bignet.o bn_kohonen.o bn_assoz.o o_graph.o bn_JordElm.o ui_class.o bn_bighop.o
x86_64-pc-linux-gnu-ranlib  lib3d.a
x86_64-pc-linux-gnu-gcc  -Wl,-O1 -Wl,--as-needed libxgui1.a libxgui2.a lib3d.a \
-L/usr/lib64  -lXaw3d -lXmu -lXt -lXext -lSM -lICE  -lX11  \
../../kernel/sources/libkernel.a ../../kernel/sources/libfunc.a -lm -lfl  -o xgui 
libxgui1.a(ui_controlP.o): In function `ui_rem_performPrunInit':
ui_controlP.c:(.text+0x11d2): warning: the use of `tempnam' is dangerous, better use `mkstemp'
make[1]: Leaving directory '/var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3/xgui/sources'
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
running build
running build_py
creating /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/lib
creating /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/lib/snns
copying snns/__init__.py -> /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/lib/snns
copying snns/util.py -> /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/lib/snns
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'krui' extension
creating /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/temp.linux-x86_64-2.7
creating /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/temp.linux-x86_64-2.7/snns
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fPIC -I../kernel/sources -I/usr/include/python2.7 -c snns/krui.c -o /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/temp.linux-x86_64-2.7/snns/krui.o
snns/krui.c: In function ‘getNoOfFuncs’:
snns/krui.c:2881:2: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type [enabled by default]
  while(PyDict_Next(funcdict, &i, &key, &value)) {
  ^
In file included from /usr/include/python2.7/Python.h:101:0,
                 from snns/krui.c:16:
/usr/include/python2.7/dictobject.h:114:17: note: expected ‘Py_ssize_t *’ but argument is of type ‘int *’
 PyAPI_FUNC(int) PyDict_Next(
                 ^
snns/krui.c:2883:3: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type [enabled by default]
   while(PyDict_Next(value, &j, &key2, &value2)) {
   ^
In file included from /usr/include/python2.7/Python.h:101:0,
                 from snns/krui.c:16:
/usr/include/python2.7/dictobject.h:114:17: note: expected ‘Py_ssize_t *’ but argument is of type ‘int *’
 PyAPI_FUNC(int) PyDict_Next(
                 ^
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=native -O2 -pipe /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/temp.linux-x86_64-2.7/snns/krui.o -L../kernel/sources -L/usr/lib64 -lkernel -lfunc -lfl -lpython2.7 -o /var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3-python2_7/lib/snns/krui.so
>>> Source compiled.
>>> Test phase [not enabled]: sci-mathematics/snns-4.3-r1

>>> Install snns-4.3-r1 into /var/tmp/portage/sci-mathematics/snns-4.3-r1/image/ category sci-mathematics
find: invalid mode ‘+100’
mv: cannot stat ‘/var/tmp/portage/sci-mathematics/snns-4.3-r1/image//usr/bin/netperf’: No such file or directory
 * ERROR: sci-mathematics/snns-4.3-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 3798:  Called die
 * The specific snippet of code:
 *       mv "${ED}"/usr/bin/{,snns-}netperf || die;
 * 
 * If you need support, post the output of `emerge --info '=sci-mathematics/snns-4.3-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-mathematics/snns-4.3-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/sci-mathematics:snns-4.3-r1:20150414-012222.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-mathematics/snns-4.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/snns-4.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3'
 * S: '/var/tmp/portage/sci-mathematics/snns-4.3-r1/work/SNNSv4.3'

The log is stored in /var/log/portage/_emerge_20150414-032304.log.
quick search: https://bugs.gentoo.org/buglist.cgi?quicksearch=sci-mathematics%2Fsnns
maintainer : axs@gentoo.org
herd       : sci-mathematics

This is an unstable amd64 chroot image (named amd64-unstable-libtool_20150410) at a hardened host acting as a tinderbox.

Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r2, 3.19.3-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.19.3-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164756 total,   3293132 free
KiB Swap:   16777212 total,  16682072 free
Timestamp of tree: Mon, 13 Apr 2015 13:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.2
dev-lang/python:          2.7.9-r2, 3.3.5-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69-r1
sys-devel/automake:       1.9.6-r4, 1.10.3-r1, 1.11.6-r1, 1.12.6, 1.13.4, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.6-r1
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --jobs 1"
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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
USE="X a52 aac acl acpi aes-ni alsa amd64 apache2 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit corefonts cracklib crypt cups cxx dbus declarative designer dnssec dot dri drmkms dts dvd dvdr ecc emboss encode exif extraengine fam ffmpeg firefox flac fontconfig fortran fpm gd gdbm gif glamor gpm gtk gudev gui iconv icu isag jadetex jpeg kde kipi kvm lapack lcms libav libkms libnotify libvirtd logrotate mad mbox minizip mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl ogg opengl openmp openssl pam pango pax_kernel pcre pcre16 pdf phonon plasma png policykit ppds python qemu qt3support qt4 readline scrpyt sdl session spell spice sqlite sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssse3 startup-notification svg tcpd theora thinkpad threads tiff tk tls truetype udev udisks uml unicode upower usb usbredir uxa v4l v4l2 video vorbis wxwidgets x264 xa xcb xcomposite xinerama xkb xml xmp xscreensaver xslt xv xvfb xvid xvmc zenmap 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" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oce anserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2015-04-14 12:11:31 UTC
Created attachment 401234 [details]
emerge log
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2015-04-14 13:32:48 UTC
Thanks for reporting -- I'll look into why you're seeing this failure immediately.  The only reason I can think of off-hand would be that the 'netperf' binary isn't being created, but during my tests it always was..
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2015-04-14 13:43:02 UTC
At the point that this emerge failed, was there anything at all installed in /var/tmp/portage/sci-mathematics/snns-4.3-r1/image/usr/bin/  ??  There should have been at least a dozen utilities, including 'netperf'.  I have a funny feeling that the means these tools are being detected and fed to 'dobin' might be invalid...
Comment 4 Toralf Förster gentoo-dev 2015-04-14 13:47:50 UTC
(In reply to Ian Stakenvicius from comment #2)
> Thanks for reporting -- I'll look into why you're seeing this failure
> immediately.  The only reason I can think of off-hand would be that the
> 'netperf' binary isn't being created, but during my tests it always was..
tor-relay / # equery b /usr/bin/netperf
 * Searching for /usr/bin/netperf ...
net-analyzer/netperf-2.6.0-r1 (/usr/bin/netperf)


>was there anything at all installed in /var/tmp/portage/sci-mathematics/snns-4.3-r1/image/usr/bin/  ??
Sry - it is a tinderbox and such dirs are cleaned to keep space - but I can stop that chroot image and try to manually run comamnds, if you tell me, which I should run.
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2015-04-14 15:11:23 UTC
(In reply to Toralf Förster from comment #4)
> (In reply to Ian Stakenvicius from comment #2)
> > Thanks for reporting -- I'll look into why you're seeing this failure
> > immediately.  The only reason I can think of off-hand would be that the
> > 'netperf' binary isn't being created, but during my tests it always was..
> tor-relay / # equery b /usr/bin/netperf
>  * Searching for /usr/bin/netperf ...
> net-analyzer/netperf-2.6.0-r1 (/usr/bin/netperf)
> 

that's why the mv command is there in the first place, so that snns doesn't collide with net-analyzer/netperf.

> > was there anything at all installed in /var/tmp/portage/sci-mathematics/snns-4.3-r1/image/usr/bin/  ??
> Sry - it is a tinderbox and such dirs are cleaned to keep space - but I can
> stop that chroot image and try to manually run comamnds, if you tell me,
> which I should run.

Don't worry about it -- I didn't like the way the ebuild was installing binaries anyhow, so I reworked it by patching the build system and using emake install.

+  14 Apr 2015; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+  +files/4.3-snns-netperf.patch, +snns-4.3-r2.ebuild, -snns-4.3-r1.ebuild:
+  Reworked the solution for the netperf collision, dropped the 'find all
+  executable files' method of installing tools for 'emake install', added
+  missing deps; resolves bug 546566