Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628130 - media-libs/mesa-17.2.0_rc4 is not merging
Summary: media-libs/mesa-17.2.0_rc4 is not merging
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-17 17:57 UTC by Renich Bon Ciric
Modified: 2017-08-31 15:37 UTC (History)
3 users (show)

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


Attachments
build log (build.log.gz,235.23 KB, application/gzip)
2017-08-17 19:33 UTC, Renich Bon Ciric
Details
mesa build log (build.log.gz,56.80 KB, application/gzip)
2017-08-17 20:48 UTC, Renich Bon Ciric
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Renich Bon Ciric 2017-08-17 17:57:23 UTC
I will attach the build log.
Comment 1 Renich Bon Ciric 2017-08-17 17:57:49 UTC
Here's my info:

# emerge --info
Portage 2.3.7 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r3, 4.12.3-gentoo x86_64)
=================================================================
System uname: Linux-4.12.3-gentoo-x86_64-AMD_Ryzen_7_1800X_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    65964240 total,  17783560 free
KiB Swap:    8264768 total,   8264248 free
Timestamp of repository gentoo: Wed, 16 Aug 2017 06:23:54 +0000
Head commit of repository gentoo: 8fb123fa5f2296d86e832ccff293cd1bfcca966a

Head commit of repository bitwig-overlay: 1111991e75c5fcd3cf7c9cc96b5f187255e7dc83

sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

bitwig-overlay
    location: /usr/local/portage/bitwig-overlay
    sync-type: git
    sync-uri: https://github.com/renich/bitwig-overlay.git
    masters: gentoo

local-overlay
    location: /usr/local/portage/local
    masters: gentoo

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

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

tengine-overlay
    location: /var/lib/layman/tengine-overlay
    masters: gentoo
    priority: 50

Installed sets: @steam
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=znver1 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup clean-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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j17 -l17.0"
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="/var/tmp"
USE="X a52 aac acl acpi aio alsa amd64 ao apm atm audiofile audit bash-completion bcmath berkdb bluetooth branding bzip2 cairo calendar caps cdda cdr cleartype cli colord corefonts cracklib crypt css cups cxx dbus dga dhclient dri dri3 dts dv dvd dvdr eds egl emboss encode evdev evo exif fam fastcgi firefox flac fortran gd gdbm geoip geolocation ggi gif git glamor gles gmp gnome gnome-keyring gnome-online-accounts gnutls gpm gps gstreamer gtk gzip hddtemp iconv icu idn imagick inotify introspection ipv6 jemalloc jit jpeg jpeg2k ladspa lame lapack lash lcms ldap libffi libnotify libsecret lv2 lzma lzo mad matroska memlimit mhash mikmod mime mmap mng modplug modules mp3 mp4 mpeg mpi mtp multilib musicbrainz nas nautilus ncurses networkmanager nls nptl offensive ogg openal openexr opengl openmp orc osc pam pango pcntl pcre pdf png policykit posix postscript ppds pulseaudio python qt3support qt4 quicktime raw rdesktop readline realtime rss ruby savedconfig sdl seccomp session sharedmem shorten simplexml smbclient smp sockets socks5 sound sox speex spell sqlite ssh ssl startup-notification suid svg symlink systemd szip taglib tcmalloc tcpd theora threads tidy tiff timidity tracker truetype type1 udev udisks unicode upnp upnp-av upower usb v4l vaapi vdpau vim-syntax virbis vnc vorbis wavpack wayland wddx webkit wifi wmf wxwidgets x264 xa xattr xcb xft xinerama xml xmlrpc xmp xpm xv xvid xvmc yaz zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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" KERNEL="linux" L10N="en es en-US es-MX es-LA" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es en_US es_MX es_LA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Ben Kohler gentoo-dev 2017-08-17 19:30:27 UTC
Did you forget about build.log?
Comment 3 Renich Bon Ciric 2017-08-17 19:33:17 UTC
Created attachment 489460 [details]
build log

Yes, my bad. Sorry! O_O`
Comment 4 Ben Kohler gentoo-dev 2017-08-17 19:37:57 UTC
This appears to be a build log for net-libs/webkit-gtk-2.4.11-r200
Comment 5 Renich Bon Ciric 2017-08-17 20:45:41 UTC
ah, sorry, let me try that again. I am having problems with that as well. Sorry..
Comment 6 Renich Bon Ciric 2017-08-17 20:48:28 UTC
Created attachment 489462 [details]
mesa build log
Comment 7 Steve Arnold gentoo-dev 2017-08-18 18:45:19 UTC
Can you compile other non-trivial packages?  Is your machine overheating?  Did you try it without parallel make and/or ccache?  It's pretty impossible for us to diagnose a segfault without more info...
Comment 8 Ben Kohler gentoo-dev 2017-08-18 18:48:13 UTC
This sounds like more of those ryzen-related segfaults that have been reported all over the place... I don't think it's going to be anything mesa or webkit-gtk specific
Comment 9 Renich Bon Ciric 2017-08-18 18:52:36 UTC
(In reply to Steve Arnold from comment #7)
> Can you compile other non-trivial packages?  
Yes; I've updated 104 packages before mesa failed. 

> Is your machine overheating? 
Not at all.

> Did you try it without parallel make and/or ccache?
No. I will try with MAKEOPTS="-j1" and see if that helps.

> It's pretty impossible for us to diagnose a segfault without more info...
Let me know what I can provide.

Here are some recent facts:

* I changed the motherboard and CPU. From a Phenom II X6 1100T to a Ryzen 1800x. The motherboard was Asus CrossHair V and it's Asus CrossHair VI Hero Wifi-AC.

* I had major issues with my BtrFS drives getting full (software RAID5) so I had to delete tons of stuff. I have plenty of space now.

* Yesterday, I switched from radeon to AMDGPU. Everything works fine. Actually, the recompile is attempting to remove the radeon use flag from mesa.  

* I upgraded to GNOME 2.24 yesterday as well. No problems there.

I do have problems merging:
* media-libs/liblo-0.29
* media-libs/mesa-17.2.0_rc4
* net-libs/webkit-gtk-2.4.11-r200

All these have been impossible.
Comment 10 Renich Bon Ciric 2017-08-18 18:53:03 UTC
(In reply to Ben Kohler from comment #8)
> This sounds like more of those ryzen-related segfaults that have been
> reported all over the place... I don't think it's going to be anything mesa
> or webkit-gtk specific

could be but other stuff compiles fine. Kernel, gnome 2.24, etc.
Comment 11 Ben Kohler gentoo-dev 2017-08-18 18:58:31 UTC
https://www.google.com/search?q=ryzen+compile+segfault

I don't mean to trivialize your problem-- but I believe this more related to current state of ryzen support on linux.  I think some people have reported better success on gcc-7.

I don't know where this bug should go but most likely it won't be specifically the mesa or webkit maintainers with a fix.
Comment 12 Renich Bon Ciric 2017-08-18 19:01:23 UTC
(In reply to Ben Kohler from comment #11)
> https://www.google.com/search?q=ryzen+compile+segfault
> 
> I don't mean to trivialize your problem-- but I believe this more related to
> current state of ryzen support on linux.  I think some people have reported
> better success on gcc-7.
> 
> I don't know where this bug should go but most likely it won't be
> specifically the mesa or webkit maintainers with a fix.

OK man. You gave it a shot. I appreciate it. Thanks!
Comment 13 Ben Kohler gentoo-dev 2017-08-18 19:05:44 UTC
Oh here's some more information too: https://wiki.gentoo.org/wiki/Ryzen#Segmentation_faults_during_compilation
Comment 14 Renich Bon Ciric 2017-08-18 19:08:27 UTC
(In reply to Ben Kohler from comment #13)
> Oh here's some more information too:
> https://wiki.gentoo.org/wiki/Ryzen#Segmentation_faults_during_compilation

Awesome. Thanks!

I think I have disabled all overclocking. At the moment, I am recompiling mesa with MAKEOPTS="-j1" to see if that helps. It's gone slow but far. I dunno if it reached the point of the segfault. 

Fingers crossed.
Comment 15 Renich Bon Ciric 2017-08-18 19:26:08 UTC
FYI, there is a comment on the Gentoo questionnaire: https://docs.google.com/forms/d/e/1FAIpQLScKE5Fr3WCeUSmR0tzKOJwd8AdnLYbx3TrsORHCbEoHG1chfw/viewanalytics

It reads:

"Mesa compilation almost always segfaults when using many jobs >4
My system sometimes freezes completely, it used to happen more often but has gotten better. I'm guessing becuase of bios updates."

I will try upgrading the UEFI/BIOS.
Comment 16 Renich Bon Ciric 2017-08-18 22:42:27 UTC
OK, FYI, it just finished and MAKEOPTS="-j1" worked fine.
Comment 17 josef.95 2017-08-22 09:03:23 UTC
I think you should for this (broken) CPU make a RMA request by AMD
For this Error does not help a BIOS-Update :-/
See on https://community.amd.com/message/2816382#comment-2816382#2816382

Good luck
Comment 18 Renich Bon Ciric 2017-08-22 23:52:11 UTC
(In reply to josef.95 from comment #17)
> I think you should for this (broken) CPU make a RMA request by AMD
> For this Error does not help a BIOS-Update :-/
> See on https://community.amd.com/message/2816382#comment-2816382#2816382
> 
> Good luck

Thank you for the info. I've used the form mentioned in this article: https://phoronix.com/scan.php?page=news_item&px=Ryzen-Segv-Response