Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238154 - net-fs/samba-3.0.32 build error at "Building plugin bin/script.so": cannot open output file
Summary: net-fs/samba-3.0.32 build error at "Building plugin bin/script.so": cannot op...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-20 01:23 UTC by Scott 'me22' McMurray
Modified: 2008-09-24 04:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott 'me22' McMurray 2008-09-20 01:23:50 UTC
Trying to upgrade samba, configure and compilation of a few .c files seem to complete fine, but then the build fails on the first plugin:

make[1]: Leaving directory `/var/tmp/portage/net-fs/samba-3.0.32/work/samba-3.0.32/source'
Using FLAGS      =  -march=nocona -O2 -pipe -D_SAMBA_BUILD_=3  -I/var/tmp/portage/net-fs/samba-3.0.32/work/samba-3.0.32/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE    -I/var/tmp/portage/net-fs/samba-3.0.32/work/samba-3.0.32/source/lib -D_SAMBA_BUILD_=3
Compiling dynconfig.c
      PICFLAG    = -fPIC
      LIBS       = -lcrypt -lresolv -lnsl -ldl
      LDFLAGS    = -pie 
      DYNEXP     = -Wl,--export-dynamic
      LDSHFLAGS  = -shared -Wl,-Bsymbolic 
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-soname=
Compiling param/loadparm.c
Compiling lib/sharesec.c
Compiling param/params.c
Compiling lib/ldap_debug_handler.c
Compiling smbd/files.c
Compiling smbd/chgpasswd.c

... more lines of Compiling ...

Compiling pam_smbpass/pam_smb_passwd.c
Compiling pam_smbpass/pam_smb_auth.c
Compiling auth/auth_script.c
Compiling modules/CP437.c
Building plugin bin/script.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot open output file bin/script.so: No such file or directory

My /var has 14 GiB free, according to df.


Reproducible: Always

Steps to Reproduce:




# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
Timestamp of tree: Fri, 19 Sep 2008 23:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo-distfiles.mirrors.tds.net/"
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
LINGUAS="en en_CA en_GB fr"
MAKEOPTS="-j3 --jobs --load-average=4"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/zugaina /usr/portage/local/layman/nx /usr/portage/local/layman/gentopia /usr/local/fonts-overlay /usr/local/misc-overlay /usr/local/nvidia-overlay /usr/local/themes-overlay /usr/local/lang-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 audacious avahi bash-completion bidi bindist branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli cracklib crypt css cups dbus dga directfb dri dvd dvdr dvi encode exif fam fastcgi fbcon ffmpeg fftw firefox flac ftp fuse gif gimp glade glut gmp gnome gnome-keyring gphoto2 gpm graphviz gstreamer gtk gtkhtml hal iconv icq icu idn ieee1394 imlib ipv6 isdnlog jabber java5 jpeg latex libnotify libsamplerate libwww lirc lm_sensors mad matroska memlimit midi mmap mmx mp3 mpeg mplayer msn mudflap musepack nat nautilus ncurses nls nptl nptlonly ntfs nvidia offensive ogg openal opengl openmp oscar oss pam pcre pdf perl png posix pulseaudio python rdesktop readline recode samba session sockets spell sse sse2 ssl startup-notification subversion svg tcpd threads truetype unicode usb valgrind vcd vnc vorbis wxwindows x264 xchatdccserver xcomposite xine xinerama xorg xosd xscreensaver xulrunner xv xvid zlib" 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="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_GB fr" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-22 02:04:43 UTC
MAKEOPTS="-j3 --jobs --load-average=4"

Please try with just -j3. The middle one overrides the first one by setting no limit to the number of jobs and the last one overrides that to set the job number limit at a load average of 4. Also note that while -j / --jobs without a number specifying the number of jobs is usually a bad idea, and that -l / --load-average isn't supported in MAKEOPTS at all.
Comment 2 Scott 'me22' McMurray 2008-09-23 00:32:03 UTC
emerged successfully with just MAKEOPTS="-j3", thank you.

I had no idea that --load-average wasn't supported, since I only started using it after hearing about it here:
http://planet.gentoo.org/developers/zmedico/2008/07/23/portage_parallel_builds#c19908

I'm also aware that the --jobs overrides the -j3, but I did that on purpose so that things like bjam can see the -j3, since it supports that but not --load-average.  (It seems like, for example, emerge boost looks at MAKEOPTS, despite not using make.)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-24 04:17:02 UTC
That post by zmedico did not suggest that -l was a supported option in MAKEOPTS. Now I can tell you straight that it really really isn't supported. :)