Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564842 - media-video/vlc-2.2.1-r1 upgrade fails: /bin/sh: line 4: 19501 Illegal instruction ./vlc-cache-gen ../modules
Summary: media-video/vlc-2.2.1-r1 upgrade fails: /bin/sh: line 4: 19501 Illegal instru...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-04 04:52 UTC by Steve Arnold
Modified: 2018-01-18 00:27 UTC (History)
1 user (show)

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


Attachments
build log (media-video:vlc-2.2.1-r1:20151104-045350.log.gz,89.07 KB, application/octet-stream)
2015-11-04 05:08 UTC, Steve Arnold
Details
vlc-2.2.1-disable_cache_gen_during_build.patch (vlc-2.2.1-disable_cache_gen_during_build.patch,928 bytes, patch)
2015-11-04 23:35 UTC, Nick Andrade
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2015-11-04 04:52:53 UTC
# emerge media-video/vlc -v1p

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

[ebuild     U  ] media-video/vlc-2.2.1-r1:0/5-8::gentoo [2.2.1:0/5-8::gentoo] USE="X a52 aalib alsa bluray cdda cddb dbus dts dvbpsi dvd encode faad flac fluidsynth fontconfig gcrypt gnutls jack jpeg libav libnotify libsamplerate live lua matroska mp3 mpeg mtp ogg opengl png pulseaudio qt5 rtsp samba sdl shout speex svg taglib theora truetype udev v4l vorbis vpx x264 xcb xml xv zeroconf zvbi (-altivec) -atmo (-audioqueue) -avcodec -avformat -bidi -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -fdk -ffmpeg -gme -gnome -growl -httpd -ieee1394 -kate -kde -libass -libcaca -libtar -libtiger -linsys -lirc (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -musepack -ncurses (-neon) -omxil -opencv -optimisememory -opus -postproc -projectm -qt4 -rdp -run-as-root -schroedinger -sdl-image -sftp -sid -skins -swscale {-test} -tremor -twolame -upnp* -vaapi -vcdx -vdpau -vlm -vnc -wma-fixed -x265" CPU_FLAGS_X86="mmx sse" 0 KiB

# emerge --info =vlc-2.2.1-r1
Portage 2.2.23 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.22-r1, 4.1.1-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.1-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.2
KiB Mem:     5966764 total,   3117512 free
KiB Swap:   12572668 total,  12572668 free
Timestamp of repository gentoo: Tue, 03 Nov 2015 11:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r2::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://really?/gentoo-portage
    priority: -1000
    eclass-overrides: nerdboy-local

nerdboy-local
    location: /usr/local/portage
    sync-type: git
    sync-uri: https://github.com/sarnold/portage-overlay.git
    masters: gentoo
    priority: 0

arm_support
    location: /usr/local/arm
    sync-type: git
    sync-uri: https://github.com/gentoo/arm.git
    masters: gentoo
    priority: 1

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    sync-type: laymansync
    sync-uri: git://github.com/dywisor/tlp-portage.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -mtune=westmere -O2 -flto=5 -ftree-vectorize -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -mtune=westmere -O2 -flto=5 -ftree-vectorize -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache cgroup config-protect-if-modified distcc 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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://whatever/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-march=corei7 -mtune=westmere -O2 -flto=5 -ftree-vectorize -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fuse-linker-plugin"
MAKEOPTS="-j17"
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"
USE="X a52 aac acl acpi ada alsa amd64 amr aspell berkdb bindist bluetooth branding bzip2 bzlib cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus dnotify dri dts dvd dvdr eds emboss encode exif fam firefox flac fortran gd gdbm gif glade glamor gmp gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtk3 iconv imagemagick inotify ipv6 jpeg json lcms ldap libav libnotify libsecret lua lz4 mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf pic png policykit ppds pulseaudio python qt3support qt5 readline sdl seccomp session sip spell sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vala vdpau vorbis webp wheel wifi wxwidgets x264 xa xattr xcb xml xv xvid xvmc zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio" 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 agfa_cl20 canon casio_qv clicksmart310 digigr8 digita dimagev directory fuji hp215 iclick jamcam kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 spca50x" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 ssse3 sse3 sse4_1 sse4_2" 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" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse joystick evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer wiki-publisher" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 mipsel ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 mipsel ppc ppc64 x86_64" RUBY_TARGETS="ruby22 ruby21 ruby20" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Steve Arnold archtester gentoo-dev 2015-11-04 05:08:44 UTC
Created attachment 416046 [details]
build log

this is the machine above, there's another Intel box with same failure (and simpler/more generic config, same plain flags fail)
Comment 2 Steve Arnold archtester gentoo-dev 2015-11-04 05:14:39 UTC
Nm, that's the Intel box; this is the AMD one:

# emerge --info =vlc-2.2.1-r1
Portage 2.2.23 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.22-r1, 4.2.0-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.0-gentoo-r1-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.2
KiB Mem:     4046600 total,    866796 free
KiB Swap:    8388604 total,   7683616 free
Timestamp of repository gentoo: Mon, 02 Nov 2015 11:30:01 +0000
sh bash 4.3_p42
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r2::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.6.3::gentoo, 4.7.3-r1::gentoo, 4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-umask: 022
    sync-uri: rsync://no.way/gentoo-portage
    sync-user: portage:portage
    priority: -1000
    eclass-overrides: nerdboy-local

nerdboy-local
    location: /usr/local/portage
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/sarnold/portage-overlay.git
    sync-user: portage:portage
    masters: gentoo
    priority: 0

arm_support
    location: /usr/local/arm
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/gentoo/arm.git
    sync-user: portage:portage
    masters: gentoo
    priority: 1

emc
    location: /var/lib/layman/emc
    sync-type: laymansync
    sync-umask: 022
    sync-uri: https://github.com/emcek/gentoo.mipl.git
    sync-user: portage:portage
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-umask: 022
    sync-user: portage:portage
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe -flto=5 -ftree-vectorize -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe -flto=5 -ftree-vectorize -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache cgroup config-protect-if-modified distcc 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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://not.really/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j15"
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"
USE="7zip X Xaw3d a52 aac aalib abiword accessibility acl acpi ada alsa ambiance amd64 amr amrnb ansi ao artworkextra aspell avahi avi berkdb bitmap-fonts bluetooth bluray branding browserplugin bzip2 bzlib cairo caps cdda cddb cdparanoia cdr cli consolekit corefonts cracklib crypt css cups curl cvs cxx daap dbus dga divx4linux djvu dnotify dri drm dts dv dvd dvdr dvdread dynagraph eds egl emboss emf enchant encode evo exif faac faad fam fame fbcon fftw firefox3 fits flac fluidsynth fontconfig fortran freetype freetype2 g3dvl gb gbm gcj gd gdbm geos gif gimp git glamor glib glx gmp gnome-keyring gnome-online-accounts gnutls go gphoto2 gpm gps graphite graphviz grass gs gsm gstreamer gtk gtk3 gtkhtml gtkspell guile howl iconv icq id3 id3tag ifp imagemagick imap imlib inotify ios ipod ipv6 jabber jack jasper java jbig jikes jpeg jpeg2k jpg json junit ladspa lame lapack lash latex lcms ldap libav libnotify libsamplerate libsecret lm_sensors logrotate lto lua lzma mad midi mjpeg mmx mmxext mng modules motif mp3 mp4 mpeg mplayer mtp multilib mythtv nas nautilus ncurses netcdf networking networkmanager nfs nls nolvmstatic normalize notification nptl nptlonly nsplugin numeric objc ogdi ogg oggvorbis opencl opengl openmp oss pam pango pcre pcsc-lite pda pdf perl phonon pic pkcs11 plotutils png policykit postgres ppds pulseaudio python qml qt5 quicktime r600-llvm-compiler readline real replaygain rtc ruby samba sasl sdl seamonkey seccomp session shorten slp sndfile snmp sox spamassassin speex spell sqlite sse sse2 ssh ssl startup-notification subtitles subversion svg system-cairo system-icu system-jpeg system-libvpx system-sqlite taglib tcl tcpd theora threads tiff timidity tk tls truetype truetype-fonts type1-fonts udev udisks unicode upower usb v4l v4l2 vaapi vala vcd vdpau vim vorbis vpx wav wavpack wayland webkit webp weston wheel wifi wmf wxwidgets x264 xanim xattr xcb xcomposite xext xine xinerama xml xmp xorg xpm xrandr xv xvid xvmc zeitgeist zeo zeroconf zip zlib zvbi" ABI_X86="64 32" ALSA_CARDS="emu10k1 hda-intel usb-audio" APACHE2_MODULES="actions alias auth_digest auth_basic authn_alias access_compat authn_core authn_dbd authz_core cache_disk cern_meta cgi cgid charset_lite 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 proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias unixd socache_shmcb" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z toshiba_pdrm11 topfield tp6801" 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="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ublox nmea nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer wiki-publisher" LINGUAS="en_US en" NETBEANS_MODULES="apisupport java javafx profiler websvccommon cnd dlight ergonomics groovy mobility webcommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 mipsel ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 mipsel ppc ppc64 x86_64" RUBY_TARGETS="ruby22 ruby21 ruby20" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="fbdev radeon r600" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


# cat /etc/portage/env/plain-flags.conf 
CC="x86_64-pc-linux-gnu-gcc"
CXX="x86_64-pc-linux-gnu-g++"
LD="x86_64-pc-linux-gnu-ld"
CFLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Comment 3 Nick Andrade 2015-11-04 06:31:34 UTC
Steve, could you provide "Package Settings" portion of the emerge --info =vlc-2.2.1-r1::gentoo (it was omitted in comment 2)?

So far I've tested building all your settings from plain-flags.conf and so far everything is still building fine for me.
Comment 4 Nick Andrade 2015-11-04 07:35:38 UTC
Steve, I was able to build VLC 2.2.1-r1 using the following:
CC="x86_64-pc-linux-gnu-gcc"
CXX="x86_64-pc-linux-gnu-g++"
LD="x86_64-pc-linux-gnu-ld"
CFLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j15"

FEATURES="assume-digests binpkg-logs buildpkg ccache cgroup config-protect-if-modified distcc 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 xattr"

USE="X a52 aalib alsa bluray cdda cddb dbus dts dvbpsi dvd encode faad flac fluidsynth fontconfig gcrypt gnutls jack jpeg libav libnotify libsamplerate live lua matroska mp3 mpeg mtp ogg opengl png pulseaudio qt5 rtsp samba sdl shout speex svg taglib theora truetype udev v4l vorbis vpx x264 xcb xml xv zeroconf zvbi -atmo -avcodec -avformat -bidi -chromaprint -dc1394 -debug -directfb -dvb -fdk -ffmpeg -gme -gnome -growl -httpd -ieee1394 -kate -kde -libass -libcaca -libtar -libtiger -linsys -lirc  -modplug -musepack -ncurses -omxil -opencv -optimisememory -opus -postproc -projectm -qt4 -rdp -run-as-root -schroedinger -sdl-image -sftp -sid -skins -swscale  -tremor -twolame -upnp -vaapi -vcdx -vdpau -vlm -vnc -wma-fixed -x265" CPU_FLAGS_X86="mmx sse"

Can you try rebuilding VLC 2.2.1 without the security patch that was added in -r1?  Just comment out "epatch "${FILESDIR}"//${P}-CVE-2015-5949.patch" (line 276) from the ebuild.  That will help us determine whether that patch is related (my gut feeling is that it's not).
Comment 5 Nick Andrade 2015-11-04 08:03:53 UTC
Besides testing the previous VLC release, would you mind also trying a build with "distcc" disabled from your FEATURES?  The error you're seeing, illegal instruction, is generally seen when you're trying to use an instruction set (i.e. sse4.2) not present on the system that's running it.  

I realize you're specifically calling -march/-mtune instead of using native to avoid this situation, but for troubleshooting purposes, I really would like to also eliminate distcc.
Comment 6 nobody 2015-11-04 13:58:24 UTC
No need to kill ditscc
1/ distcc was on but helper host wasn't
distcc[14206] ERROR: nonblocking connect to 192.168.0.2:3632 failed: No route to host
2/ i think the culprit is shown just 2 lines later
distcc[14206] Warning: failed to distribute /var/tmp/ccache/tmp/missing.stdout.rama.14107.tDi12T.i to horton.arnolds.bogus, running locally instead

If the intel box ask the amd one to build it, ccache on the amd box might have cache that result ; and that result is then cache on the amd box
Then you build on the amd box, and it re-inject the previous result (the intel cached result) ; and you endup with generated code with intel cflags inject into the amd build...

kill ccache first :)
Comment 7 Steve Arnold archtester gentoo-dev 2015-11-04 17:20:48 UTC
FEATURES="-ccache -distcc" emerge vlc doesn't do that?  I even threw in "-j1" and it still failed the same way.  Maybe I should nuke it all first (anything under /var/tmp and whatnot)...
Comment 8 Nick Andrade 2015-11-04 17:32:45 UTC
(In reply to Steve Arnold from comment #7)
> FEATURES="-ccache -distcc" emerge vlc doesn't do that?  I even threw in
> "-j1" and it still failed the same way.  Maybe I should nuke it all first
> (anything under /var/tmp and whatnot)...

Yeah, let's clean up as much of the old build as possible just in case (in addition to disabling ccache & distcc).  As I mentioned in the other bug, the only CFLAGS that prevent me from building 2.2.1-r1 on ~amd64 are the Graphite flags and the LTO flag.  Removing those and keeping everything else (i.e. C[XX]FLAGS="-march=athlon64 -mtune=amdfam10 -O2 -pipe -ftree-vectorize -ftree-loop-distribution" works fine for me).  Now I will note that all my compilation is being done on an ivybridge Intel machine as I don't own an AMD at this time, but I'm hoping that won't matter.
Comment 9 Steve Arnold archtester gentoo-dev 2015-11-04 19:24:51 UTC
There's no difference without ccache, distcc, flags above sse2, etc.  It's the same error every time, and it probably sounds like every other bug on here but I'm literally under water *and* ass-deep in alligators so I can't troubleshoot VLC's issues right now (except test one or two things if I could think of something I haven't tried).  Does it absolutely have to generate the plugin cache during the build?  I'd buy that as a workaround for now but alligators and all...
Comment 10 Steve Arnold archtester gentoo-dev 2015-11-04 19:47:11 UTC
So far if disabled pretty much everything from parallel make to ccache, manually rm'd everything under /var/tmp and still no joy.  And it's not like these flags are new; although I do have a growing list of no-lto.conf packages, VLC built fine the last time around (maybe 2 months ago or less) with just the no-lto thing.  So I'd really like to know what changed (and I'm thinking upstream).

I just tried again on the Intel machine with as vanilla config as possible with the same results.  Let me know if I can grab another log file or something, but I *really* need to get some work done...  Plus give away 5 kitties...

../doltlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99  -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden  -march=corei7 -mtune=westmere -O2 -pipe -Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/ -o vlc-wrapper rootwrap.o
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -march=corei7 -mtune=westmere -O2 -pipe -Wl,-O1 -o vlc-wrapper rootwrap.o  -Wl,--as-needed -L/usr/lib64/sidplay/builders/
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DHAVE_DBUS -I../include -I../include  -I/usr/include/samba-4.0  -DTOP_BUILDDIR=\"$(cd ".."; pwd)\" -DTOP_SRCDIR=\"$(cd ".."; pwd)\"  -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -c -o vlc_static-vlc.o `test -f 'vlc.c' || echo './'`vlc.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DHAVE_DBUS -I../include -I../include  -I/usr/include/samba-4.0  -DTOP_BUILDDIR=\"$(cd ".."; pwd)\" -DTOP_SRCDIR=\"$(cd ".."; pwd)\"  -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -c -o vlc_static-override.o `test -f 'override.c' || echo './'`override.c
../doltlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99  -DTOP_BUILDDIR=\"$(cd ".."; pwd)\" -DTOP_SRCDIR=\"$(cd ".."; pwd)\"  -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden   -no-install -static -march=corei7 -mtune=westmere -O2 -pipe -Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/ -o vlc-static vlc_static-vlc.o vlc_static-override.o ../lib/libvlc.la -lpthread  -ldl
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -DTOP_BUILDDIR=\"/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1\" -DTOP_SRCDIR=\"/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1\" -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -march=corei7 -mtune=westmere -O2 -pipe -Wl,-O1 -o vlc-static vlc_static-vlc.o vlc_static-override.o  -Wl,--as-needed -L/usr/lib64/sidplay/builders/ ../lib/.libs/libvlc.so /var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/src/.libs/libvlccore.so -lrt -lidn -ldbus-1 -lm -lpthread -ldl -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/lib/.libs -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/src/.libs
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -DHAVE_DBUS -I../include -I../include  -I/usr/include/samba-4.0  -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -c -o cachegen.o cachegen.c
../doltlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99  -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden  -march=corei7 -mtune=westmere -O2 -pipe -Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/ -o vlc-cache-gen cachegen.o  ../compat/libcompat.la ../lib/libvlc.la
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -march=corei7 -mtune=westmere -O2 -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -march=corei7 -mtune=westmere -O2 -pipe -Wl,-O1 -o .libs/vlc-cache-gen cachegen.o  -Wl,--as-needed -L/usr/lib64/sidplay/builders/ ../compat/.libs/libcompat.a ../lib/.libs/libvlc.so /var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/src/.libs/libvlccore.so -lrt -lidn -ldl -ldbus-1 -lpthread -lm
rm -f ../modules/plugins.dat
if test "x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu"; then \
        ./vlc-cache-gen ../modules ; \
else \  
        echo "Cross-compilation: cache generation skipped!" ; \
fi
/bin/sh: line 4: 13509 Illegal instruction     ./vlc-cache-gen ../modules
Makefile:1524: recipe for target '../modules/plugins.dat' failed
make[2]: *** [../modules/plugins.dat] Error 132
make[2]: Leaving directory '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1/bin'
Makefile:2262: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/vlc-2.2.1-r1/work/vlc-2.2.1'
Makefile:2147: recipe for target 'all' failed
make: *** [all] Error 2
Comment 11 Nick Andrade 2015-11-04 19:50:46 UTC
I'll look into a way for you to bypass that during the build, but I don't see any options out of the box (i.e. no obvious configure flag), nor do I know the impact of bypassing that step during build.  If I need to create a patch do it, I probably won't be able to post it until tomorrow.

If you get a chance before then and assuming one of these failing systems still has VLC installed, could you try running: /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins   (it would also be interesting to see if there's a vlc-cache-gen in /var/tmp/portage... and to try that version on /usr/lib/vlc/plugins).
Comment 12 Nick Andrade 2015-11-04 23:35:14 UTC
Created attachment 416090 [details, diff]
vlc-2.2.1-disable_cache_gen_during_build.patch

I was able to create the patch that I believe disables the vlc-cache-gen ../modules step in the build, and I've successfully completed a build with it applied via epatch_user. I did a quick look over my build.log and it seems to have worked.  Vlc-cache-gen still gets compiled, but it's not executed during the build. 

In addition to throwing the patch into epatch_user, you'll also want to comment out the entire pkg_postinst() section of the ebuild (or at least the part of the if statement that also tries to run vlc-cache-gen).

I haven't tested VLC after the build as I'm not in a position to do so.  With that said, please give the patch a go and let us know the results.
Comment 13 Nick Andrade 2015-11-13 04:14:04 UTC
Any update on this Steve?
Comment 14 Jason Schulz 2015-12-09 04:37:23 UTC
I'm not certain this is the same or similar to the issue I ran into... /bin/sh: line 4: ##### Segmentation fault ./vlc-cache-gen ../modules.  However, I was able to resolve it by re-emerging 'media-libs/libvpx' from source.  I'm not sure why it wasn't caught through the emerge update.

I'm also not sure disabling cache-gen for vlc will fix this problem.
Comment 15 Larry the Git Cow gentoo-dev 2018-01-18 00:27:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63861c0d8e631387566113508b80cfc93930ca43

commit 63861c0d8e631387566113508b80cfc93930ca43
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-01-18 00:23:13 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-01-18 00:27:29 +0000

    media-video/vlc: Disable vlc-cache-gen during build
    
    Tested-by: Andrius Štikonas <andrius@stikonas.eu>
    Closes: https://bugs.gentoo.org/608256
    Closes: https://bugs.gentoo.org/564842
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-video/vlc/vlc-2.2.8-r1.ebuild |  8 ++++++++
 media-video/vlc/vlc-2.2.9999.ebuild | 10 +++++++++-
 media-video/vlc/vlc-3.0.9999.ebuild | 10 +++++++++-
 media-video/vlc/vlc-9999.ebuild     | 10 +++++++++-
 4 files changed, 35 insertions(+), 3 deletions(-)