| View previous topic :: View next topic |
| Author |
Message |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Sat Jun 04, 2016 7:41 am Post subject: [SOLVED] emerge samba fails to allocate 18446462598732841005 |
|
|
I tried to upgrade samba from 4.2.9 to 4.2.11 which I had masked before, and it fails.
| Code: |
<snip>
...
[ 517/2230] Compiling source4/param/share.c
[ 518/2230] Compiling source4/param/share_classic.c
[ 519/2230] Compiling source4/param/share_ldb.c
[ 520/2230] Compiling source4/param/secrets.c
[ 521/2230] Compiling source4/param/loadparm.c
[ 522/2230] Compiling default/source4/param/shares.empty.c
[ 523/2230] Compiling source4/auth/system_session.c
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1572864 bytes
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1683456 bytes
Waf: Leaving directory `/tmp/portage/net-fs/samba-4.2.11/work/samba-4.2.11-abi_x86_32.x86/bin'
Build failed:
-> task failed (err #1):
{task: cc share_ldb.c -> share_ldb_4.o}
-> task failed (err #1):
{task: cc secrets.c -> secrets_5.o}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1
* ERROR: net-fs/samba-4.2.11::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=net-fs/samba-4.2.11::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-fs/samba-4.2.11::gentoo'`.
* The complete build log is located at '/tmp/portage/net-fs/samba-4.2.11/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/net-fs/samba-4.2.11/temp/environment'.
* Working directory: '/tmp/portage/net-fs/samba-4.2.11/work/samba-4.2.11-abi_x86_32.x86'
* S: '/tmp/portage/net-fs/samba-4.2.11/work/samba-4.2.11'
>>> Failed to emerge net-fs/samba-4.2.11, Log file:
>>> '/tmp/portage/net-fs/samba-4.2.11/temp/build.log'
|
Now this 18446462598732841005 is a shockingly large number D: - to be sure I tried to re-emerge 4.2.9 again and this also fails. Having 16GB seems just not enough.
I'm on x86_64, recently cleaned up my gcc to (I think) proper 4.9.3, and can compile all other updates without issues.
| Code: |
emerge --info '=net-fs/samba-4.2.11::gentoo'
Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.22-r4, 4.4.1-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.4.1-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.2
KiB Swap: 19535036 total, 19535036 free
Timestamp of repository gentoo: Fri, 03 Jun 2016 18:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc[15209] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Feb 11 2016 09:28:02 [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash: 4.3_p42-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r3::gentoo, 3.4.3-r1::gentoo
dev-util/ccache: 3.2.4::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.19.1::gentoo
sys-apps/sandbox: 2.10-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.22-r4::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
Foo
location: /var/lib/layman
masters: gentoo
priority: 0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb branding btrfs bzip2 cairo cdda cdr cjk cli colord cracklib crypt cups cxx dbus dri dts dv dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtkstyle i18n iconv imagemagick introspection ipv6 jpeg jpeg2k lcms libnotify libsecret lzo mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support quicktime readline samba sdl seccomp session spell sqlite sqlite3 sse sse2 ssl startup-notification svg systemd tcpd theora tiff tracker truetype udev udisks unicode upower usb v4l v4l2 vim-syntax vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so slotmem_shm speling status unique_id userdir usertrack vhost_alias dav dav_fs dav_lock userdir unixd authn_core authz_core socache_shmcb lbmethod_bytraffic" APACHE2_MPMS="event" 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="mmx mmxext sse sse2" CURL_SSL="openssl" 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 ublox ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="de en zh_TW zh" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="canon canon630u canon_dr canon_pp pixma plustek plustek_pp test umax umax1220u umax_pp" USERLAND="GNU" VIDEO_CARDS="radeon" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
Does this smell like a bug I should submit? Or what do you suggest, besides maybe pastebinning all those logs?
Last edited by raddaqii on Wed Jun 22, 2016 8:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Thu Jun 09, 2016 8:59 am Post subject: |
|
|
FYI I tried to tweak samba by going
| Code: |
X86_ABI="64" emerge samba
|
but that changed almost nothing.
Interestingly though that secrets_5 reminded me of kerberos5, and indeed my samba has USE flag system-mitkrb5 set (cannot rememeber why that is in there though). Unsetting this leads to compile proceed further than step 500 something but in the end compile breaks at 797:
| Code: |
[ 797/2795] Compiling auth/credentials/credentials_secrets.c
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1560576 bytes
Waf: Leaving directory `/tmp/portage/net-fs/samba-4.2.11/work/samba-4.2.11-abi_x86_64.amd64/bin'
Build failed: -> task failed (err #1):
{task: cc credentials_secrets.c -> credentials_secrets_8.o}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1
|
Any hints? |
|
| Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8714 Location: ~Brussels - Belgique
|
Posted: Thu Jun 09, 2016 9:11 am Post subject: |
|
|
try to use less parallel make jobs (MAKEOPTS=-j1) _________________ Kind regards,
Xavier Miller |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Thu Jun 09, 2016 9:12 am Post subject: |
|
|
| Thank you, I tried that. Changes nothing in the result. |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Thu Jun 09, 2016 9:15 am Post subject: |
|
|
On a side note, when I set USE="-system-mitkrb5" I also had to set -ssl on app-crypt/heimdal or emerge wouldn't proceed.
Did I mess with my crypto stuff too much? :| |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Fri Jun 10, 2016 11:49 am Post subject: |
|
|
@bonsaikitten may scold me, but unmasking =net-fs/samba-4.2.12 and trying to emerge this version has the same effect, with with -j7 and -j1 (no difference), ABI_X86="64 32" or =64 showing a slight difference.
This result with ABI_X86="64 32":
| Code: |
...
[ 799/2798] Compiling auth/credentials/credentials_krb5.c
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1593344 bytes
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1617920 bytes
Waf: Leaving directory `/tmp/portage/net-fs/samba-4.2.12/work/samba-4.2.12-abi_x86_64.amd64/bin'
Build failed:
-> task failed (err #1):
{task: cc credentials_secrets.c -> credentials_secrets_8.o}
-> task failed (err #1):
{task: cc secrets.c -> secrets_6.o}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1
* ERROR: net-fs/samba-4.2.12::gentoo failed (compile phase):
* emake failed
|
This is with ABI_X86="32"
| Code: |
...
[ 547/2275] Compiling source4/auth/system_session.c
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1601536 bytes
cc1: out of memory allocating 18446462598732841005 bytes after a total of 1671168 bytes
Waf: Leaving directory `/tmp/portage/net-fs/samba-4.2.12/work/samba-4.2.12-abi_x86_32.x86/bin'
Build failed:
-> task failed (err #1):
{task: cc share_ldb.c -> share_ldb_4.o}
-> task failed (err #1):
{task: cc secrets.c -> secrets_5.o}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1
* ERROR: net-fs/samba-4.2.12::gentoo failed (compile phase):
* emake failed
|
I also tried to re-emerge app-crypt/heimdal with USE="-ssl", re-emerging everything that depends on it via
| Code: |
emerge -at --oneshot `equery depends heimdal|awk '{print " ="$1}'` |
since the share_ldb.c and secrets.c files seem to reference it. Stil fails with the same errors as before.
I'm running out of ideas. |
|
| Back to top |
|
 |
kernelOfTruth Watchman


Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Mon Jun 13, 2016 7:18 am Post subject: |
|
|
Unsuccessful I'm afraid. Emerge fails with the same error.
In the meantime, and even after reading https://wiki.gentoo.org/wiki/Binary_package_guide I fail to install a samba-4.2.11.tbz2 I created on another host. The dreaded "need to adjust PKGDIR in order to install this package" keeps coming, and I cannot find anything other than "define PKGDIR in /etc/portage/make.conf", which ofc I did, but with no change in behaviour.
So, what now? |
|
| Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jun 13, 2016 1:16 pm Post subject: |
|
|
| raddaqii wrote: | | In the meantime, and even after reading https://wiki.gentoo.org/wiki/Binary_package_guide I fail to install a samba-4.2.11.tbz2 I created on another host. The dreaded "need to adjust PKGDIR in order to install this package" keeps coming, and I cannot find anything other than "define PKGDIR in /etc/portage/make.conf", which ofc I did, but with no change in behaviour. |
raddaqii ... please show us ... so, the layout of PKGDIR, the output of 'emerge --info', the command producing the above error, the command used to build the binpkg, etc.
Note that as binpkg are tarballs at a push you can 'tar -Jxvf samba-4.2.11.tbz2 -C /' and add net-fs/samba to the world file ... I'm not advising that, but FYI.
best ... khay |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Mon Jun 13, 2016 1:43 pm Post subject: |
|
|
Thank yoo for trying to help. :)
Here's my emerge --info as in https://585460.bugs.gentoo.org/attachment.cgi?id=436976
| Code: |
$ emerge --info '=net-fs/samba-4.2.11::gentoo'
Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.22-r4, 4.4.1-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.4.1-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.2
KiB Swap: 19535036 total, 19485700 free
Timestamp of repository gentoo: Tue, 07 Jun 2016 12:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc[9505] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Feb 11 2016 09:28:02 [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash: 4.3_p42-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r3::gentoo, 3.4.3-r1::gentoo
dev-util/ccache: 3.2.4::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.19.1::gentoo
sys-apps/sandbox: 2.10-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.22-r4::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
Foo
location: /var/lib/layman
masters: gentoo
priority: 0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mabm --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb branding btrfs bzip2 cairo cdda cdr cjk cli colord cracklib crypt cups cxx dbus dri dts dv dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtkstyle i18n iconv imagemagick introspection ipv6 jpeg jpeg2k lcms libnotify libsecret lzo mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support quicktime readline samba sdl seccomp session spell sqlite sqlite3 sse sse2 ssl startup-notification svg systemd tcpd theora tiff tracker truetype udev udisks unicode upower usb v4l v4l2 vim-syntax vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so slotmem_shm speling status unique_id userdir usertrack vhost_alias dav dav_fs dav_lock userdir unixd authn_core authz_core socache_shmcb lbmethod_bytraffic" APACHE2_MPMS="event" 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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" 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 ublox ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="de en zh_TW zh" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="canon canon630u canon_dr canon_pp pixma plustek plustek_pp test umax umax1220u umax_pp" USERLAND="GNU" VIDEO_CARDS="radeon" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
The command used to create the binpkg:
| Code: |
# quickpkg =net-fs/samba-4.2.11
|
The PKGDIR layout; nothing in there except the binpkg file itself:
| Code: |
$ ls -lA /usr/portage/packages/
insgesamt 15848
-rw-r----- 1 root root 16225743 11. Jun 10:03 samba-4.2.11.tbz2
|
Anyhow, as to going the "unpack the tbz2 to /" route I'm not desparate enough just yet.
FYI I've been running
| Code: |
strace -o /tmp/emerge-samba.strace -e trace=open,stat,read emerge samba |
to find out which file might be responsible. It's been a while since I used strace, this is the output though. Can I tweak it some more? Emerge fails at 546/2274:
| Code: |
...
read(10, "[ 546/2274] Compiling default/so"..., 4096) = 59
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, "\ncc1: out of memory allocating 1"..., 4096) = 89
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, "\ncc1: out of memory allocating 1"..., 4096) = 89
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, "Waf: Leaving directory `/tmp/por"..., 4096) = 95
read(10, "Build failed:\n -> task failed (e"..., 4096) = 146
read(10, 0x96706d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, "Makefile:8: recipe for target 'a"..., 4096) = 67
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m ERROR: net-fs/sam"..., 4096) = 74
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m emake failed\n", 4096) = 30
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m \n", 4096) = 16
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m If you need suppo"..., 4096) = 103
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m the complete buil"..., 4096) = 102
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m The complete buil"..., 4096) = 103
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m The ebuild enviro"..., 4096) = 110
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m Working directory"..., 4096) = 102
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(10, " \33[31;01m*\33[0m S: '/tmp/portage/"..., 4096) = 71
read(10, 0x94b00d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(7, "(lp0\nS'exit'\np1\naS'1'\np2\na.", 4096) = 27
open("/tmp/portage/net-fs/samba-4.2.11/.ipc_in", O_RDONLY|O_NONBLOCK) = 7
open("/tmp/portage/net-fs/samba-4.2.11/.ipc_out", O_WRONLY|O_NONBLOCK) = 8
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15496, si_uid=250, si_status=1, si_utime=0, si_stime=3} ---
read(10, 0x96706d4, 4096) = -1 EIO (Input/output error)
stat("/tmp/portage/net-fs/samba-4.2.11", {st_mode=S_IFDIR|0755, st_size=260, ...}) = 0
open("/tmp/portage/net-fs/samba-4.2.11/.ipc_in", O_RDONLY|O_NONBLOCK) = 7
open("/dev/null", O_RDONLY) = 8
open("/dev/ptmx", O_RDWR) = 10
stat("/dev/pts/5", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
stat("/dev/pts/5", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
open("/dev/pts/5", O_RDWR|O_NOCTTY) = 11
...
|
|
|
| Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jun 13, 2016 1:54 pm Post subject: |
|
|
| raddaqii wrote: | The PKGDIR layout; nothing in there except the binpkg file itself:
| Code: | $ ls -lA /usr/portage/packages/
insgesamt 15848
-rw-r----- 1 root root 16225743 11. Jun 10:03 samba-4.2.11.tbz2 |
|
raddaqii ... in which case you're missing the 'Packages' file with the binpkg info, this will be on the build host so you should copy this along with the package. Your also missing 'category' ... it should look like this:
| ls ~portdir/packages/{,sys-apps}: | /var/pkg/gentoo/packages/:
Packages dev-util/ net-misc/ sys-apps/
/var/pkg/gentoo/packages/sys-apps:
kmod-18-r1.tbz2 |
| raddaqii wrote: | FYI I've been running
| Code: | | strace -o /tmp/emerge-samba.strace -e trace=open,stat,read emerge samba |
|
You're not informing portage to use the binpkg ... you need to supply '--usepkgonly'.
EDIT: also, using strace is going to substancially increase memory usage.
best ... khay
Last edited by khayyam on Mon Jun 13, 2016 2:04 pm; edited 1 time in total |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Mon Jun 13, 2016 2:03 pm Post subject: |
|
|
As I said, using strace I had been trying to find the "how" of emerge failing, as in "the original issue" of share_ldb.c -> share_ldb_4.o and ecrets.c -> secrets_5.o faiing.
The other issue is the workaround "use the tbz2", thanks for reminding me of the Packages file. Think I'll re-read the instructions before I actually go that route. |
|
| Back to top |
|
 |
raddaqii Tux's lil' helper


Joined: 27 Mar 2005 Posts: 110 Location: Berlin, Old Europe
|
Posted: Wed Jun 22, 2016 8:21 pm Post subject: |
|
|
Odd. I did an emerge @preserved-rebuild, and net-fs/samba-4.2.11 compiled without issues. I now have samba back. 8O :D
CFLAGS were the ones seen above, MAKEOPTS=-j6. It's not like I hadn't tried that @preserved-rebuild before... this fact leaves me slightly confused. Anyhow, thread is marked SOLVED now; I'll close bug #585460 as soon as I find my password again. Thank you for listening.
So this is what I have, completely unspectacular if it wasn't for the last two weeks or so:
| Code: |
# emerge -pv =net-fs/samba-4.2.11
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] net-fs/samba-4.2.11::gentoo USE="acl avahi client cups fam gnutls pam system-mitkrb5 systemd winbind -addc -addns -ads -aio -cluster -dmapi -iprint -ldap -quota (-selinux) -syslog {-test}" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
|
What I did do was using the host as a server, in headless mode, piping data from eSATA devices to a network storage. Every now and then fiddling about with what I thought might help, no avail. kernelOfTruth, apparently you were indeed right, even though it did not work out before right now.
A few days ago I re-did an emerge -eq @system, which failed halfway through (at 304/376) packages, and I did emerge --resume --skipfirst a few times, managing to compile chunks until nothing was left.
Other issues in the meantime were that the machine badly locked up once, as in forcing me to manually power it down, provoking a btrfs corrupt leaf, bad key order error I had to fix. And not everything emerged, it segfaulted at www-client/chromium-51.0.2704.63. Am suspecting I may have hardware issues upcoming. _________________ --
Gentoo from 2004.3
Oh, took a new home in the fediverse: find me in the stream on pluspora.com: https://pluspora.com/tags/gentoo |
|
| Back to top |
|
 |
araspik n00b

Joined: 05 Mar 2018 Posts: 3
|
Posted: Mon Jul 23, 2018 10:53 am Post subject: |
|
|
The really large number you saw there is actually a negative integer. It's just that since a negative number of bytes is not expected, it interpreted it as 2^64 (1844....) + (negative number) of bytes. It seems to be a bug and an issue of incompatibility, which @preserved-rebuild fixed. Just wanted to let you know why the big number was there, sorry for necroposting. _________________ --
ARaspiK: D Programmer
Used Debian, Arch Linux, and now Gentoo
Love Sysadmin & Aesthetics |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|