Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 456028

Summary: [x11 overlay] media-libs/mesa-9999 ld fails after EGIT_COMMIT=4e42e569dd5643
Product: Gentoo Linux Reporter: Wyatt Epp <wyatt.epp>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: head and tail -200 of a failed build log (llvm USEs disabled)
A full build log (1.7M uncompressed)
Another build log (7.6M uncompressed)

Description Wyatt Epp 2013-02-07 14:42:46 UTC
I haven't been able to build mesa since around the time they messed with the build system.
USE combinations tried:
amd64 egl elibc_glibc gallium gles1 gles2 kernel_linux nptl osmesa shared-glapi userland_GNU video_cards_r600
amd64 egl elibc_glibc gallium kernel_linux llvm nptl osmesa r600-llvm-compiler shared-glapi userland_GNU video_cards_r600
amd64 egl elibc_glibc gallium kernel_linux llvm nptl r600-llvm-compiler shared-glapi userland_GNU video_cards_r600
amd64 egl elibc_glibc gallium kernel_linux nptl osmesa shared-glapi userland_GNU video_cards_r600
amd64 egl elibc_glibc gallium kernel_linux nptl shared-glapi userland_GNU video_cards_r600
amd64 egl elibc_glibc gallium kernel_linux nptl userland_GNU video_cards_r600

Reproducible: Always

Steps to Reproduce:
1. emerge -1 mesa
Actual Results:  
Lots of linker errors.  See attached build log.

Expected Results:  
A new mesa build with the patches that may fix my GPU stalls

Portage 2.2.0_alpha141 (default/linux/amd64/10.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.5.3-gentoo x86_64)
=================================================================
System uname: Linux-3.5.3-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-gentoo-2.1
Timestamp of tree: Thu, 07 Feb 2013 08:00:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     1.3.7-r1, 2.1.11-r3
dev-lang/python:          2.6.8, 2.7.3-r2, 3.1.5, 3.2.3
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5, 1.6.3::<unknown repository>, 1.7.9-r2, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.5, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde mozilla proaudio x11 voyageur zugaina gamerlay ext-devlibs kde-sunset ezod roslin Local-Overlay g-ctan Trinity-Overlay
Installed sets: @driver-stack, @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -g -x none"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/tde/3.5/env /usr/tde/3.5/share/config /usr/tde/3.5/shutdown /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-x none -march=native -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/mozilla /var/lib/layman/pro-audio /var/lib/layman/x11 /var/lib/layman/voyageur /var/lib/layman/zugaina /var/lib/layman/gamerlay /var/lib/layman/ext-devlibs /var/lib/layman/kde-sunset /var/lib/layman/ezod /var/lib/layman/roslin /usr/local/portage /var/lib/g-ctan /var/lib/layman/tde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa amd64 amr anthy apng bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdinstall cdparanoia cdr cjk cli console consolekit cracklib crypt css cups cxx dbus divx dri drm dts dvd dvdnav dvdr emboss enca encode exif fam fat ffmpeg firefox flac fortran ftp fuse gallium gdbm gif gmedia gphoto2 gpm gstreamer gtk hddtemp hfs highlight history hpn iconv ieee1394 imagemagick imlib inkjar ipod ipv6 jabber jack java javascript jingle joystick jpeg jpeg2k kde ladspa lame lastfm lcms ldap libnotify lm_sensors logrotate mad matroska mikmod mime mmap mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap multilib musepack musicbrainz ncurses nls nocd nptl nsplugin nxclient offensive ogg openal opengl openmp oscar pam pango pcre pdf perl pgo png policykit posix postgres ppds python qt3support qt4 readline samba sasl scanner sdl semantic-desktop server session smp sndfile soap sockets spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg tcpd tellico theora threads tiff timidity truetype udev udisks unicode upower usb vcd videos vorbis webkit wifi wmf wxwidgets wxwindows x264 xcb xcomposite xinerama xml xpm xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ja" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon r600 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Wyatt Epp 2013-02-07 14:45:50 UTC
Created attachment 338236 [details]
head and tail -200 of a failed build log (llvm USEs disabled)
Comment 2 Wyatt Epp 2013-02-07 15:23:44 UTC
Created attachment 338244 [details]
A full build log (1.7M uncompressed)
Comment 3 Matt Turner gentoo-dev 2013-02-07 18:26:10 UTC
(In reply to comment #0)
> I haven't been able to build mesa since around the time they messed with the
> build system.

Great. Glad to know you appreciate the work I did to complete the transition to automake.
Comment 4 Wyatt Epp 2013-02-08 01:21:16 UTC
(In reply to comment #3)
> Great. Glad to know you appreciate the work I did to complete the transition
> to automake.

Would you prefer "hacked on"?  I'm sorry if that came off as rude or unappreciative of the work you do; I simply couldn't remember what was done-- autotools is more opaque than the kernel itself to me.  From my perspective as an end user, some hacking happened, the build system changed in a way I quite honestly don't comprehend, and now it doesn't link.  After asking about it, I decided to file a bug.

Setting that aside, is there some information I can offer or action I can take to help resolve this?  Thank you.
Comment 5 Matt Turner gentoo-dev 2013-02-12 03:42:23 UTC
(In reply to comment #4)
> Setting that aside, is there some information I can offer or action I can
> take to help resolve this?  Thank you.

Does 9.1_rc1 fail in the same way? (I imagine that it does)

I'll try to build with your configuration tonight and see if I can reproduce it.
Comment 6 Wyatt Epp 2013-02-12 10:39:46 UTC
(In reply to comment #5) 
> Does 9.1_rc1 fail in the same way? (I imagine that it does)

Yes, the failures look roughly identical.

> I'll try to build with your configuration tonight and see if I can reproduce

Much appreciated.
Comment 7 Wyatt Epp 2013-02-16 09:54:01 UTC
Just as an additional note, I tried with gcc-4.5.5 and gcc-4.6.3 too, and the same failures happened.

In that vein, is there maybe something I should update or remerge that might fix it?
Comment 8 Matt Turner gentoo-dev 2013-02-17 20:54:57 UTC
Oh. It's stupid egl_gallium failing. Since you're not building openvg I don't imagine you have any specific need for the gallium EGL backend? (The DRI2 backend works with gallium drivers as well).

I'm thinking we shouldn't build egl_gallium unless openvg is requested.
Comment 9 Matt Turner gentoo-dev 2013-02-18 00:29:57 UTC
(In reply to comment #8)
> Oh. It's stupid egl_gallium failing. Since you're not building openvg I
> don't imagine you have any specific need for the gallium EGL backend? (The
> DRI2 backend works with gallium drivers as well).
> 
> I'm thinking we shouldn't build egl_gallium unless openvg is requested.

Oof. Can't do that, since gbm-gallium needs egl-gallium, and OpenCL stuff is going to need gbm-gallium.
Comment 10 Wyatt Epp 2013-02-18 12:06:20 UTC
(In reply to comment #8)
> Since you're not building openvg I
> don't imagine you have any specific need for the gallium EGL backend?

I tried to disable egl when I was first testing things, but cairo demands it for USE=opengl.  I have to imagine that's pretty common.

Also, note that the log here is with USE="-llvm -r600-llvm-compiler".  The log with them enabled is significantly longer.  Not sure if it'll be helpful, but I'll attach one of those for reference.
Comment 11 Wyatt Epp 2013-02-18 12:07:41 UTC
Created attachment 339236 [details]
Another build log (7.6M uncompressed)
Comment 12 Matt Turner gentoo-dev 2013-06-21 16:52:57 UTC
Does this bug still affect your builds? I wonder if something fixed it in the mean time.
Comment 13 Wyatt Epp 2013-08-01 03:56:38 UTC
(In reply to Matt Turner from comment #12)
> Does this bug still affect your builds? I wonder if something fixed it in
> the mean time.

Sorry to be so late getting back to you.  I think I made a comment about this on a different bug, but forgot to also mention it here: this, or something similar to it seems to still happens unless I have

CFLAGS="-lstdc++"

..in /etc/portage/env/media-libs/mesa
Comment 14 Matt Turner gentoo-dev 2015-02-21 18:59:42 UTC
Please give something newer a try.