Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-process/lsof-4.91: make [ckkv.o] Error 139 (figured out)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Sat Nov 17, 2018 4:57 pm    Post subject: sys-process/lsof-4.91: make [ckkv.o] Error 139 (figured out) Reply with quote

Ever since a couple of weeks ago, after the last portage update, I get a bunch of packages that won't update anymore. I've tried reemerging make/gcc/ninja/glibc, and all those go fine, so I decided to try looking closer to one of the simpler packages that fails to upgrade, lsof.

The emerge output when trying to upgrade is:
Code:

emerge -av1 "=sys-process/lsof-4.91"

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild     U  ] sys-process/lsof-4.91::gentoo [4.89::gentoo] USE="ipv6 -examples -rpc (-selinux) (-static%)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-process/lsof-4.91::gentoo
>>> Failed to emerge sys-process/lsof-4.91, Log file:
>>>  '/var/tmp/portage/sys-process/lsof-4.91/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.36, 0.30, 0.19
 * Package:    sys-process/lsof-4.91
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc ipv6 kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking lsof_4.91.tar.bz2 to /var/tmp/portage/sys-process/lsof-4.91/work
>>> Unpacking ./lsof_4.91_src.tar to /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91
>>> Source unpacked in /var/tmp/portage/sys-process/lsof-4.91/work
>>> Preparing source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
 * Applying lsof-4.85-cross.patch ...
 [ ok ]
 * Applying lsof-4.90-darwin-cppfix.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
Testing C library type with x86_64-pc-linux-gnu-gcc ... done
The C library type is glibc, version "-DGLIBCV=227".
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c dzfs.h kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile Makefile.zfs ./tests/config.cflags
rm -f ./tests/config.cc ./tests/config.xobj ./tests/config.ldflags
-n Testing C library for localtime() and strftime(), using x86_64-pc-linux-gnu-gcc ...
present
ln -s dialects/linux/dfile.c dfile.c
ln -s dialects/linux/dlsof.h dlsof.h
ln -s dialects/linux/dmnt.c dmnt.c
ln -s dialects/linux/dnode.c dnode.c
ln -s dialects/linux/dproc.c dproc.c
ln -s dialects/linux/dproto.h dproto.h
ln -s dialects/linux/dsock.c dsock.c
ln -s dialects/linux/dstore.c dstore.c
ln -s dialects/linux/machine.h machine.h
Makefile and lib/Makefile created.
./tests/config.cc created
./tests/config.cflags created
./tests/config.ldflags created
./tests/config.xobj created
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
make -j8 -s DEBUG= all
make[1]: *** [<builtin>: ckkv.o] Error 139
make: *** [Makefile:86: lib/liblsof.a] Error 2
 * ERROR: sys-process/lsof-4.91::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-process/lsof-4.91::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-process/lsof-4.91::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-process/lsof-4.91/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-process/lsof-4.91/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src'
 * S: '/var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src'


It seems the root issue is with glibc, since there are some segmentations fault while testing it. But emerging glibc yields no problems, so... what gives? What should I do? The curious thing is that if I go to the workdir and run the last command that failed (make -j8 -s DEBUG= all) it compiles without an issue.


Last edited by Skotlex on Tue Dec 25, 2018 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30894
Location: here

PostPosted: Sun Nov 18, 2018 9:52 am    Post subject: Reply with quote

You can post emerge --info output?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Tue Nov 20, 2018 2:21 am    Post subject: Reply with quote

Emerge --info

Code:

Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-7.3.0, glibc-2.27-r6, 4.14.65-gentoo x86_64)
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.6
KiB Mem:    16385652 total,   4582932 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 17 Nov 2018 04:04:45 +0000
Head commit of repository gentoo: b9554e6ebe38d3d7350448f2320411319d6e33f8

sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/sync/gentoo.git
    priority: 100
    sync-git-verify-commit-signature: 1

Zarielle
    location: /etc/portage/overlay
    masters: gentoo
    priority: 101

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="hda-intel"
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"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib split-usr python_targets_python3_6 python_targets_python2_7 multilib"
BROOT=""
CALLIGRA_FEATURES="karbon plan sheets stage words"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -fomit-frame-pointer"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/*"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
CXXFLAGS="-march=native -Os -fomit-frame-pointer"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-vt --jobs=2 --load-average=8"
EMERGE_WARNING_DELAY="10"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://mirror.datapipe.net/gentoo"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="10"
INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS="false"
INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT="100"
INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="25"
INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE="0"
INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE="0"
INFINALITY_FT_BRIGHTNESS="0"
INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH="0"
INFINALITY_FT_CONTRAST="0"
INFINALITY_FT_FILTER_PARAMS="06 25 44 25 06"
INFINALITY_FT_FRINGE_FILTER_STRENGTH="0"
INFINALITY_FT_GAMMA_CORRECTION="0 100"
INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE="0"
INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE="0"
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="0"
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH="0"
INFINALITY_FT_STEM_FITTING_STRENGTH="0"
INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE="0"
INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS="false"
INFINALITY_FT_USE_VARIOUS_TWEAKS="true"
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH="0"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/info:/usr/share/info"
INPUT_DEVICES="evdev keyboard mouse synaptics wacom joystick"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-chain prefix-guest"
I_WANT_GLOBAL_JAVA_OPTIONS="true"
KERNEL="linux"
L10N="fr-FR fr en-GB en es-MX es"
LANG="fr_FR.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="fr_FR fr en_GB en es_MX es"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="-j8 -s"
MANPAGER="manpager"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/man:/usr/lib/llvm/6/share/man:/usr/local/share/man:/usr/share/man"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OFFICE_IMPLEMENTATION="libreoffice"
OPENCL_PROFILE="nvidia"
OPENGL_PROFILE="nvidia"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/lib/llvm/6/bin"
PHP_TARGETS="php5-6 php7-1"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 arm64-linux hppa ia64 m68k m68k-mint mips ppc ppc-aix ppc-macos ppc64 ppc64-linux s390 sh sparc sparc-solaris sparc64-solaris x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.6"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo syslog"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_NICENESS="18"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/python3.6/site-packages"
PORTAGE_PYTHONPATH="/usr/lib64/python3.6/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima    security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
POSTGRES_TARGETS="postgres9_5 postgres10"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6"
QT_GRAPHICSSYSTEM="raster"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby23"
SANE_BACKENDS="plustek pixma"
SHELL="/bin/zsh"
SUDO_COMMAND="/usr/bin/emerge --info"
SUDO_GID="100"
SUDO_UID="1000"
SUDO_USER="wallex"
SYMLINK_LIB="yes"
SYSROOT="/"
TERM="rxvt-unicode"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
USE="3dnow X a52 aac acpi alsa amd64 avi berkdb boundschecking bzip2 cairo canna cdda cdr cjk cli crypt cscope cups curl cxx dbus dedicated dga divx divx4linux dlloader dri dts dvd dvdr dvdread emboss encode exif fam fbcon fbsplash ffmpeg fftw flac foomaticdb fortran gd gdbm gif gimp glamor gmedia gnutls gpm gstreamer gtk gtk3 gtkhtml hal hddtemp howl iconv icu idn imap imlib innodb inotify ipv6 ithreads jabber jikes joystick jpeg lame lcms libnotify libsamplerate libtirpc libwww lm_sensors lzma mad matroska mbox mmx mng modplug mp3 mp4 mpeg mplayer mtp multilib musepack ncurses nls nptl nsplugin nvidia ogg opencl opengl openmp opus pam pango pcre pdf pdflib perl png ppds python readline realmedia scanner schroedinger sdl seccomp speex spell sse sse2 ssl ssse3 svg tcpd tetex theora threads tiff timidity truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis webkit win32codecs wma wmf wmp x264 xcb xcomposite xface xft xine xml xml2 xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics wacom joystick" KERNEL="linux" L10N="fr-FR fr en-GB en es-MX es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" SANE_BACKENDS="plustek pixma" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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"
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_EXPERIMENTAL_FEATURES CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_X86 CURL_SSL ELIBC ENLIGHTENMENT_MODULES FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LIRC_DEVICES LLVM_TARGETS MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 CPU_FLAGS_ARM ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm64 hppa ia64 m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos s390 sh sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VIDEO_CARDS="nvidia vesa"
XAUTHORITY="/home/wallex/.Xauthority"
XDG_CACHE_HOME="/tmp/cache/$USER"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
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"


Not sure there might be anything out of the ordinary on my configuration. Though I do think some environmental setting might be at fault...


Last edited by Skotlex on Wed Dec 19, 2018 5:08 am; edited 1 time in total
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Tue Nov 20, 2018 6:13 am    Post subject: Reply with quote

Doing, a quick search on error 139, it seems error 139 for make is Segmentation Fault. Maybe this will help you in possible areas to check.
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Sat Dec 08, 2018 12:28 pm    Post subject: Reply with quote

I still can't figure out what's wrong, but...
If I use ebuild directly, it compiles and installs. What's the difference between using "emerge" and "ebuild package merge"? I suspect it has to do with the ENV variables?
Code:

> ebuild lsof-4.91.ebuild merge
 * lsof_4.91.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking lsof_4.91.tar.bz2 to /var/tmp/portage/sys-process/lsof-4.91/work
>>> Unpacking ./lsof_4.91_src.tar to /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91
>>> Source unpacked in /var/tmp/portage/sys-process/lsof-4.91/work
>>> Preparing source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
 * Applying lsof-4.85-cross.patch ...                                                                                                             [ ok ]
 * Applying lsof-4.90-darwin-cppfix.patch ...                                                                                                     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
Testing C library type with x86_64-pc-linux-gnu-gcc ... done
The C library type is glibc, version "-DGLIBCV=227".
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c dzfs.h kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile Makefile.zfs ./tests/config.cflags
rm -f ./tests/config.cc ./tests/config.xobj ./tests/config.ldflags
-n Testing C library for localtime() and strftime(), using x86_64-pc-linux-gnu-gcc ...
missing
ln -s dialects/linux/dfile.c dfile.c
ln -s dialects/linux/dlsof.h dlsof.h
ln -s dialects/linux/dmnt.c dmnt.c
ln -s dialects/linux/dnode.c dnode.c
ln -s dialects/linux/dproc.c dproc.c
ln -s dialects/linux/dproto.h dproto.h
ln -s dialects/linux/dsock.c dsock.c
ln -s dialects/linux/dstore.c dstore.c
ln -s dialects/linux/machine.h machine.h
Makefile and lib/Makefile created.
./tests/config.cc created
./tests/config.cflags created
./tests/config.ldflags created
./tests/config.xobj created
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
make -j8 -s DEBUG= all
Constructing version.h
>>> Source compiled.
>>> Test phase [not enabled]: sys-process/lsof-4.91

>>> Install lsof-4.91 into /var/tmp/portage/sys-process/lsof-4.91/image/ category sys-process
>>> Completed installing lsof-4.91 into /var/tmp/portage/sys-process/lsof-4.91/image/

 * Final size of build directory: 9652 KiB (9.4 MiB)
 * Final size of installed tree:  1056 KiB (1.0 MiB)

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/bin/lsof
 * checking 15 files for package collisions
>>> Merging sys-process/lsof-4.91 to /
(etcetera etcetera etcetera...)


This is a really curious issue.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Sat Dec 08, 2018 5:12 pm    Post subject: Reply with quote

It might be easier to fix the problem if we knew what command failed. However, make is being called with -s, so we cannot see what command it ran. Why do you have -s in your MAKEOPTS?
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Mon Dec 10, 2018 3:56 pm    Post subject: Reply with quote

Hu wrote:
It might be easier to fix the problem if we knew what command failed. However, make is being called with -s, so we cannot see what command it ran. Why do you have -s in your MAKEOPTS?

It's been a few years since I last configured my make.conf, so I honestly don't remember why MAKEOPTS has a -s. :P

Though, it doesn't change the outcome of the compile process, there is no additional information printed when I remove it.

Code:

>>> Configuring source in /var/tmp/portage/sys-process/lsof-4.91/work/lsof_4.91/lsof_4.91_src ...
Testing C library type with x86_64-pc-linux-gnu-gcc ... done
The C library type is glibc, version "-DGLIBCV=227".
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c dzfs.h kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile Makefile.zfs ./tests/config.cflags


I too would like to know what exact command is causing the segmentation fault. It would seem to be the testing of glibc, though there's a "done" printed already, it doesn't really tells what's happening between that and the "rm -f" that follows.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Tue Dec 11, 2018 1:42 am    Post subject: Reply with quote

This appears to be an overgrown shell script, so you could enable set -x in the script to make it print every command it runs. That could lead you to the segmentation fault, but it will be noisy.
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Wed Dec 19, 2018 4:42 am    Post subject: Reply with quote

Update:
Adding "-pipe" to the CFLAG variable fixes the compilation issue. Now the question is WHY?

The reason I didn't use -pipe in my CFLAG, is because my temporary portage directory is a RAM device so I didn't think it was necessary.
From my /etc/fstab:
Code:

tmpfs                   /ram            tmpfs           noatime,defaults,nodev,nosuid,mode=1777,size=7G 0 0


mount's output (/var/tmp/portage is where everything gets compiled)
Code:

tmpfs on /var/tmp type tmpfs (rw,nosuid,nodev,noatime,size=7340032k)


Now I am debating whether trying to understand what happened here and file a bug report. Or just use "-pipe", update my world and forget about it. :S

EDIT: Looks like I have no choice but to continue onwards. lsof may have fixed its compilation, but now I get an issue on another package of my world: ffmpeg. This package, however, is being a little more informative on what's wrong:
Code:

emerge -av1 "media-video/ffmpeg"

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] media-video/ffmpeg-3.3.6:0/55.57.57::gentoo  USE="X alsa bzip2 encode gnutls gpl hardcoded-tables iconv libass lzma modplug mp3 network opengl opus postproc sdl speex theora threads truetype v4l vaapi vdpau vorbis x264 xcb xvid zlib (-altivec) -amr -amrenc -bluray -bs2b -cdio -chromaprint -chromium -cpudetection -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libcaca -libilbc -librtmp -libsoxr -libv4l (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -nvenc -openal -openh264 -openssl -oss -pic -pulseaudio -rubberband -samba -snappy -sofalizer -ssh -static-libs -test -twolame -vpx -wavpack -webp -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -aes -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-video/ffmpeg-3.3.6::gentoo
>>> Failed to emerge media-video/ffmpeg-3.3.6, Log file:
>>>  '/var/tmp/portage/media-video/ffmpeg-3.3.6/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.36, 1.16, 1.22
 * Package:    media-video/ffmpeg-3.3.6
 * Repository: gentoo
 * Maintainer: media-video@gentoo.org
 * USE:        X abi_x86_64 alsa amd64 bzip2 cpu_flags_x86_avx cpu_flags_x86_mmx cpu_flags_x86_mmxext cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_ssse3 elibc_glibc encode fftools_aviocat fftools_cws2fws fftools_ffescape fftools_ffeval fftools_ffhash fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_sidxindex fftools_trasher gnutls gpl hardcoded-tables iconv kernel_linux libass lzma modplug mp3 network opengl opus postproc sdl speex theora threads truetype userland_GNU v4l vaapi vdpau vorbis x264 xcb xvid zlib
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking ffmpeg-3.3.6.tar.bz2 to /var/tmp/portage/media-video/ffmpeg-3.3.6/work
>>> Source unpacked in /var/tmp/portage/media-video/ffmpeg-3.3.6/work
>>> Preparing source in /var/tmp/portage/media-video/ffmpeg-3.3.6/work/ffmpeg-3.3.6 ...
 * Applying openjpeg22.patch ...
 [ ok ]
 * Applying openjpeg23.patch ...
 [ ok ]
 * Applying chromium.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/ffmpeg-3.3.6/work/ffmpeg-3.3.6 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
/var/tmp/portage/media-video/ffmpeg-3.3.6/work/ffmpeg-3.3.6/configure --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-3.3.6/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags=-march=native -Os -fomit-frame-pointer -pipe --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-libcelt --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-mmal --enable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --enable-libspeex --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --enable-libfreetype --disable-librubberband --disable-netcdf --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-nvenc --disable-libopenh264 --disable-libsnappy --enable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx2 --disable-fma3 --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
--cpu=host not supported with compiler x86_64-pc-linux-gnu-gcc

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

"--cpu=host not supported"? That means the "-march=native" expansion is not working right, perhaps. If I change to "-march=ivybridge" (the appropriate arch according to my cpuflags and the Safe CFLAG wiki page) it works. However, I suspect that these two are not the same. Following the instructions in that page, march=native expands to:
Code:

> gcc -v -E -x c /dev/null -o /dev/null -march=native 2>&1 | grep /cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1 -E -quiet -v /dev/null -o /dev/null -march=ivybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=ivybridge

And if I place ALL OF THAT into my CFLAG.... it compiles right.

So WHAT IS HAPPENING? Is it just that somehow my -march=native is not working on some packages? This bug is so confusing. x_x
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Thu Dec 20, 2018 2:57 am    Post subject: Reply with quote

Please don't switch problems mid-thread. People who are interested in your new problem may not find it in the old thread.

We don't have enough information to know why switching to -pipe helps. We still don't even know which process was crashing before.

As for your ffmpeg problem, the ebuild reacts to -march=native by passing --cpu=host to the ffmpeg configure script. That script then aborts because it doesn't understand how to use --cpu=host on x86_64. The script specifically rejects --cpu=host. Other forms, such as what the ebuild passes when you set some other -march, are not blocked.
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Tue Dec 25, 2018 7:25 pm    Post subject: Reply with quote

It seems it was all related to the same bug. It was very difficult to track down because it's related to the sandbox, which is why I could not replicate it outside of an emerge command.

The bugtracker already has a bug for it: https://bugs.gentoo.org/673724
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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