Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455762 - www-client/chromium-26* - error: declaration of C function 'void GLES2ShaderSource(GLuint, GLsizei, const char**, const GLint*)' conflicts
Summary: www-client/chromium-26* - error: declaration of C function 'void GLES2ShaderS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Chromium Project
URL:
Whiteboard: ht-wanted
Keywords:
: 455928 458272 459530 459944 (view as bug list)
Depends on:
Blocks: 458552
  Show dependency tree
 
Reported: 2013-02-05 23:42 UTC by Enne Eziarc
Modified: 2013-03-05 15:06 UTC (History)
50 users (show)

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


Attachments
`cave info chromium` output (cave-info-chromium.txt,7.41 KB, text/plain)
2013-02-05 23:42 UTC, Enne Eziarc
Details
build log (chrome_build.gz,22.60 KB, application/x-gzip)
2013-02-19 12:40 UTC, Kelzhadant
Details
emerge --info (file_455762.txt,4.97 KB, text/plain)
2013-02-27 12:28 UTC, fantasticfears
Details
Fix signature of GLES2ShaderSource (0001-Fix-GLES2ShaderSource-prototype.patch,524 bytes, text/plain)
2013-02-28 15:40 UTC, chris salch
Details
Build Log with Fix signature of GLES2ShaderSource patch (file_455762.txt,18.57 KB, text/plain)
2013-02-28 19:17 UTC, James
Details
fix ShaderSource signature (chromium-mesa-gles2.patch,12.50 KB, patch)
2013-03-01 14:02 UTC, linedot
Details | Diff
chromium-mesa-r0.patch.out (chromium-mesa-r0.patch.out,35.61 KB, text/plain)
2013-03-04 01:41 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2013-02-05 23:42:21 UTC
Created attachment 338038 [details]
`cave info chromium` output

Have tried building using -j1, didn't help. Package manager info output attached as file.

End of build output:
================================================================================
  x86_64-pc-linux-gnu-g++ '-D_FILE_OFFSET_BITS=64' '-DUSE_LINUX_BREAKPAD' '-DNO_TCMALLOC' '-DCHROMIUM_BUILD' '-DUSE_DEFAULT_RENDER_THEME=1' '-DUSE_LIBJPEG_TURBO=1' '-DUSE_NSS=1' '-DENABLE_ONE_CLICK_SIGNIN' '-DGTK_DISABLE_SINGLE_INCLUDES=1' '-DENABLE_REMOTING=1' '-DENABLE_WEBRTC=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_PEPPER_THREADING' '-DENABLE_CONFIGURATION_POLICY' '-DENABLE_INPUT_SPEECH' '-DENABLE_NOTIFICATIONS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DUSE_SKIA=1' '-DENABLE_TASK_MANAGER=1' '-DENABLE_WEB_INTENTS=1' '-DENABLE_EXTENSIONS=1' '-DENABLE_PLUGIN_INSTALLATION=1' '-DENABLE_PLUGINS=1' '-DENABLE_SESSION_SERVICE=1' '-DENABLE_THEMES=1' '-DENABLE_BACKGROUND=1' '-DENABLE_AUTOMATION=1' '-DENABLE_GOOGLE_NOW=1' '-DENABLE_LANGUAGE_DETECTION=1' '-DENABLE_PRINTING=1' '-DENABLE_CAPTIVE_PORTAL_DETECTION=1' '-DENABLE_MANAGED_USERS=1' '-DGLES2_C_LIB_IMPLEMENTATION' '-DGL_GLEXT_PROTOTYPES' '-D__STDC_CONSTANT_MACROS' '-D__STDC_FORMAT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' '-D_FORTIFY_SOURCE=2' -Iout/Release/obj/gen/shim_headers/libpng/target -Iout/Release/obj/gen/shim_headers/mesa_headers/target -Iout/Release/obj/gen/shim_headers/zlib/target -Iout/Release/obj/gen/shim_headers/khronos_headers/target -Iout/Release/obj/gen/shim_headers/nspr/target -Iout/Release/obj/gen/shim_headers/libevent/target -Iout/Release/obj/gen/khronos_symlinks -Igpu -I. -Iout/Release/obj/gen/shim_headers/icuuc/target -Iout/Release/obj/gen/shim_headers/icui18n/target  -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-exceptions -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -MMD -MF out/Release/.deps/out/Release/obj.target/gles2_c_lib/gpu/command_buffer/client/gles2_c_lib.o.d.raw -O2 -pipe -march=native -c -o out/Release/obj.target/gles2_c_lib/gpu/command_buffer/client/gles2_c_lib.o gpu/command_buffer/client/gles2_c_lib.cc
In file included from gpu/command_buffer/client/gles2_c_lib.cc:20:0:
gpu/command_buffer/client/../client/gles2_c_lib_autogen.h: In function 'void GLES2ShaderSource(GLuint, GLsizei, const char**, const GLint*)':
gpu/command_buffer/client/../client/gles2_c_lib_autogen.h:358:72: error: declaration of C function 'void GLES2ShaderSource(GLuint, GLsizei, const char**, const GLint*)' conflicts with
out/Release/obj/gen/khronos_symlinks/GLES2/gl2.h:571:1: error: previous declaration 'void GLES2ShaderSource(GLuint, GLsizei, const GLchar* const*, const GLint*)' here
make: *** [out/Release/obj.target/gles2_c_lib/gpu/command_buffer/client/gles2_c_lib.o] Error 1
make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!

!!! ERROR in www-client/chromium-26.0.1403.0::gentoo:
!!! In /usr/libexec/paludis/utils/emake at line 30
!!! emake returned error 2

!!! Call stack:
!!!    * paludis_die_or_error_func (/usr/libexec/paludis/die_functions.bash:67)
!!!    * main (/usr/libexec/paludis/utils/emake:30)

diefunc: making ebuild PID 9256 exit with error
die trap: exiting with error.

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =www-client/chromium-26.0.1403.0:0::gentoo --destination installed --replacing =www-client/chromium-25.0.1364.5:0::installed --x-of-y 1 of 1:
  * When installing 'www-client/chromium-26.0.1403.0:0::gentoo' replacing { 'www-client/chromium-25.0.1364.5:0::installed' }:
  * When running an ebuild command on 'www-client/chromium-26.0.1403.0:0::gentoo':
  * Install failed for 'www-client/chromium-26.0.1403.0:0::gentoo' (paludis::ActionFailedError)


Failed install to / for www-client/chromium-26.0.1403.0:0::gentoo replacing 25.0.1364.5:0::installed
================================================================================
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-06 03:49:50 UTC
Please attach the entire build log to this bug report.
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-02-06 07:24:00 UTC
(In reply to comment #0)
> In file included from gpu/command_buffer/client/gles2_c_lib.cc:20:0:
> gpu/command_buffer/client/../client/gles2_c_lib_autogen.h: In function 'void
> GLES2ShaderSource(GLuint, GLsizei, const char**, const GLint*)':
> gpu/command_buffer/client/../client/gles2_c_lib_autogen.h:358:72: error:
> declaration of C function 'void GLES2ShaderSource(GLuint, GLsizei, const
> char**, const GLint*)' conflicts with
> out/Release/obj/gen/khronos_symlinks/GLES2/gl2.h:571:1: error: previous
> declaration 'void GLES2ShaderSource(GLuint, GLsizei, const GLchar* const*,
> const GLint*)' here

What version of media-libs/mesa do you have? Have you tried with latest (9.0.1)?
Comment 3 Mike Lothian 2013-02-06 10:05:02 UTC
I'm getting this too with mesa-9999 updated again last night
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-02-06 12:42:05 UTC
(In reply to comment #3)
> I'm getting this too with mesa-9999 updated again last night

Packages not in portage are not supported, same for -9999 versions anyway. Please test with mesa-9.0.1.

Of course that means this is going to break with the next release of mesa or so, but then we would have a non-moving target.
Comment 5 Enne Eziarc 2013-02-06 17:06:21 UTC
Yes mesa-9999 looks like the cause, the build went fine with 9.0.1. I'll stick with that for now.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-07 03:10:39 UTC
*** Bug 455928 has been marked as a duplicate of this bug. ***
Comment 7 Kelzhadant 2013-02-19 12:39:41 UTC
Same problem with =www-client/chromium-26.0.1410.5.

media-libs/mesa-9.1_rc2  USE="classic egl gallium gles2 llvm nptl pic shared-glapi -bindist -debug -gbm -gles1 -openvg -osmesa -pax_kernel -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xorg -xvmc" VIDEO_CARDS="intel -i915 -i965 -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"


Portage 2.2.0_alpha163 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.7.6-gentoo x86_64)
=================================================================
System uname: Linux-3.7.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3632QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:    16321660 total,   1340088 free
KiB Swap:    4194300 total,   4168020 free
Timestamp of tree: Tue, 19 Feb 2013 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gamerlay games multimedia seden x-port
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-O2 -march=native -mtune=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --autounmask=y --autounmask-write=y --quiet-build=y --deep --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/ rsync://gentoo.kiev.ua/gentoo-distfiles ftp://gentoo.kiev.ua/ http://gentoo.iteam.net.ua/ ftp://portage.org.ua/ rsync://gentoo.mirrors.tds.net/gentoo rsync://gentoo.cs.uni.edu/gentoo-distfiles ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://gentoo.mirrors.tds.net/gentoo"
LANG="ru_RU.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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/gamerlay /var/lib/layman/games /var/lib/layman/multimedia /var/lib/layman/seden /home/mahmud/port"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr chm cli consolekit cracklib crypt crypto cryptsetup cups cxx dbus declarative djvu dri dri2 dts dvd dvdr ebook emboss encode exif fam fbcondecor ffmpeg firefox flac fortran gdbm gif gpm iconv ipv6 jpeg jpeg2k kde kipi laptop lcms ldap libnotify lm_sensors lzma mad midi mmx mng modules mp3 mp4 mpeg mudflap multilib natspec ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 raw readline sasl sdl semantic-desktop session sna spell sse sse2 sse3 sse4 sse4.1 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis webkit wmf wxwidgets x264 xcb xcomposite xine xinerama xml xscreensaver xv xvid zip zlib" ABI_X86="64" 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" 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" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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 8 Kelzhadant 2013-02-19 12:40:18 UTC
Created attachment 339364 [details]
build log
Comment 9 Enne Eziarc 2013-02-24 11:58:23 UTC
Problem is now happening with media-libs/mesa-9.1_rc2:0::gentoo, so reopening.
Comment 10 Seong-ho Cho 2013-02-27 06:50:18 UTC
we should better to change a version 26.0.1403.0 to 26.0.* on the summary, because 26.0.1410.5 and 26.0.1410.12 has a same problem.
Comment 11 Ivan Iraci 2013-02-27 10:23:22 UTC
Same problem here with mesa-9.1 and chromium-26.0.1410.12.
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-27 11:17:08 UTC
*** Bug 458272 has been marked as a duplicate of this bug. ***
Comment 13 fantasticfears 2013-02-27 12:28:35 UTC
Created attachment 340306 [details]
emerge --info

same problem with mesa 9.1 gles2 use flag
Comment 14 John Rowley 2013-02-27 13:47:15 UTC
Same problem with =www-client/chromium-26.0.1410.12 and =media-libs/mesa-9.1.

chromium-25.* compile fine without requiring the gles2 USE flag on mesa.


Portage 2.1.11.52 (default/linux/amd64/13.0, gcc-4.7.2, glibc-2.16.0, 3.8.0-zen-BORON-g636753a-dirty x86_64)
=================================================================
System uname: Linux-3.8.0-zen-BORON-g636753a-dirty-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8150308 total,   2710576 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 27 Feb 2013 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo dottout steam-overlay roslin gentoo-zh
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -fomit-frame-pointer -flto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=native -fomit-frame-pointer -flto"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=9.50 --quiet-build=y --autounmask-write=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://91.121.124.139/gentoo-distfiles/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://91.121.125.139/gentoo-distfiles/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto"
MAKEOPTS="-j9 -l9.50"
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/dottout /var/lib/layman/steam /var/lib/layman/roslin /var/lib/layman/gentoo-zh"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apm avx bash-completion berkdb bindist bzip2 cli consolekit cracklib crypt cxx dbus dedicated dri dts dvd dvdr ffmpeg flac fontconfig fortran ftp gdbm geoip gif gnutls gpm gstreamer gtk gzip iconv icu imap imlib jpeg kde libnotify lzo mad matroska minimal mmx modules mozilla mp3 mp4 mpeg mplayer msn mudflap multilib ncurses nls nocd nptl nvidia ogg openal opengl openmp pam pcre pdf png policykit pulseaudio qt3support qt4 readline session sse sse2 sse3 sse4_1 ssl ssse3 startup-notification systemd tcpd threads truetype udev udisks unicode usb vdpau vnc vorbis webkit x264 xcomposite xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 15 enichols 2013-02-27 21:34:37 UTC
Will not build with Mesa-9.1 and www-client/chromium-26.0.1410.12
Portage 2.1.11.52 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.6-gentoo x86_64)
=================================================================
System uname: Linux-3.7.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16390924 total,   1275048 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 27 Feb 2013 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.llarian.net/ rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg kde kerberos kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 16 Ben Kohler gentoo-dev 2013-02-27 21:43:28 UTC
http://crbug.com/178589
Comment 17 Ben Kohler gentoo-dev 2013-02-27 23:35:35 UTC
*** Bug 459530 has been marked as a duplicate of this bug. ***
Comment 18 Ionuț Leonte 2013-02-28 11:42:52 UTC
I'm still getting this with www-client/chromium-27.0.1423.0 and media-libs/mesa-9.1
Comment 19 Michael Buchfink 2013-02-28 15:21:17 UTC
In Mesa 9.1 they changed the GLES2 api http://cgit.freedesktop.org/mesa/mesa/commit/?id=88ec004381b39d461f2772972d722f7cf24f4f4a

So we have to wait on http://crbug.com/178589 or downgrade mesa. Downgrading to media-libs/mesa-9.0.3 did the trick for me.
Comment 20 chris salch 2013-02-28 15:40:18 UTC
Created attachment 340514 [details]
Fix signature of GLES2ShaderSource

Is it just me or should something like this patch fix the problem.  Those two types look compatible as far as my meager skills in C can tell me ...
Comment 21 James 2013-02-28 19:17:29 UTC
Created attachment 340546 [details]
Build Log with Fix signature of GLES2ShaderSource patch

Build fails with Fix signature of GLES2ShaderSource patch as well, it errors out slightly differently, so I've attached the end of the log for comparison.  It seems to me that there may be some mismatched data types or something that could be fixed, 'though I am not a programmer and the problem may be far deeper.
Comment 22 chris salch 2013-02-28 19:58:15 UTC
(In reply to comment #21)
> Created attachment 340546 [details]
> Build Log with Fix signature of GLES2ShaderSource patch
> 
> Build fails with Fix signature of GLES2ShaderSource patch as well, it errors
> out slightly differently, so I've attached the end of the log for
> comparison.  It seems to me that there may be some mismatched data types or
> something that could be fixed, 'though I am not a programmer and the problem
> may be far deeper.

Looks like there's more than that one signature to fix (and my machine is taking it's sweet time attempting to compile.)
Comment 23 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-02-28 20:11:39 UTC
Please don't worry, I'm working on upstream https://code.google.com/p/chromium/issues/detail?id=178589 and I'm going to backport the patches. I have a patch in progress.
Comment 24 linedot 2013-03-01 14:02:23 UTC
Created attachment 340634 [details, diff]
fix ShaderSource signature

I fixed this for me with this patch. I've changed the parameter list in some headers and in ui/gl/generate_bindings.py 

I also changed how the parameters are interpreted in generate_bindings.py, so that "const GLchar* const* str" as parameter doesn't produce garbage.

I've noticed there is a GR_USE_NEW_GL_SHADER_SOURCE_SIGNATURE guard in third_party/skia/include/gpu/gl/GrGLFunctions.h that would produce the correct declaration in this header if defined, so it would probably be a better solution to add something like this in all affected headers and set it dependent on which mesa version is used.
Comment 25 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-03-01 17:40:29 UTC
(In reply to comment #24)
> Created attachment 340634 [details, diff] [details, diff]
> fix ShaderSource signature
> 
> I fixed this for me with this patch. I've changed the parameter list in some
> headers and in ui/gl/generate_bindings.py 

This is pretty good! I actually landed the fix upstream in https://code.google.com/p/chromium/issues/detail?id=178589 and will be working on backporting in to Gentoo (including chromium-26.x).

This was really a non-trivial thing to fix by the way. If you want to try some more, feel free to take a look at https://bugs.gentoo.org/show_bug.cgi?id=457130 - it's x86-specific (you can set up a 32-bit chroot) and currently the ebuild just uses bundled mesa on x86. But if you want to give that one a try - it would be cool. :)
Comment 26 Andrei F. 2013-03-01 23:32:35 UTC
Hello,

www-client/chromium-27.0.1425.0 still fails to build with the exact same error:


gpu/command_buffer/client/gles2_c_lib.cc:1:0: note: this is the location of the previous definition
In file included from gpu/command_buffer/client/gles2_c_lib.cc:21:0:
gpu/command_buffer/client/../client/gles2_c_lib_autogen.h: In function 'void GLES2ShaderSource(GLuint, GLsizei, const char**, const GLint*)':
gpu/command_buffer/client/../client/gles2_c_lib_autogen.h:358:72: error: declaration of C function 'void GLES2ShaderSource(GLuint, GLsizei, const char**, const GLint*)' conflicts with
In file included from out/Release/obj/gen/shim_headers/khronos_headers/target/GLES2/gl2.h:6:0,
                 from gpu/command_buffer/client/../client/../client/gles2_interface.h:8,
                 from gpu/command_buffer/client/../client/gles2_lib.h:10,
                 from gpu/command_buffer/client/gles2_c_lib.cc:9:
out/Release/obj/gen/khronos_symlinks/GLES2/gl2.h:571:1: error: previous declaration 'void GLES2ShaderSource(GLuint, GLsizei, const GLchar* const*, const GLint*)' here
In file included from gpu/command_buffer/client/gles2_c_lib.cc:21:0:
gpu/command_buffer/client/../client/gles2_c_lib_autogen.h: At global scope:
gpu/command_buffer/client/../client/gles2_c_lib_autogen.h:888:21: error: overloaded function with no contextual type information
make: *** [out/Release/obj.target/gles2_c_lib/gpu/command_buffer/client/gles2_c_lib.o] Error 1
Comment 27 Mike Gilbert gentoo-dev 2013-03-02 15:40:00 UTC
*** Bug 459944 has been marked as a duplicate of this bug. ***
Comment 28 Alexandr Gluzskiy 2013-03-03 03:09:03 UTC
patch works for me
www-client/chromium-27.0.1425.0
thx.
Comment 29 Andrei F. 2013-03-03 08:54:10 UTC
(In reply to comment #28)
> patch works for me
> www-client/chromium-27.0.1425.0
> thx.

Which patch are you referring to?
Comment 30 Philipp Leonhardt 2013-03-03 11:46:17 UTC
applying patch "fix ShaderSource signature" on www-client/chromium-27.0.1425.0 worked for me.

thx guys
Comment 31 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-03-03 23:51:52 UTC
This is fixed now in chromium-26.0.1410.19, chromium-27.0.1425.0 and chromium-9999-r1 (backported upstream patch).
Comment 32 Ben Kohler gentoo-dev 2013-03-04 01:41:27 UTC
Created attachment 340906 [details]
chromium-mesa-r0.patch.out

 * Applying chromium-gpsd-r0.patch ...
 [ ok ]
 * Applying chromium-mesa-r0.patch ...

 * Failed Patch: chromium-mesa-r0.patch !
 *  ( /var/db/portage/www-client/chromium/files/chromium-mesa-r0.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/www-client/chromium-26.0.1410.19/temp/chromium-mesa-r0.patch.out

 * ERROR: www-client/chromium-26.0.1410.19 failed (prepare phase):
 *   Failed Patch: chromium-mesa-r0.patch!
Comment 33 Mike Gilbert gentoo-dev 2013-03-04 01:55:31 UTC
  04 Mar 2013; Mike Gilbert <floppym@gentoo.org> files/chromium-mesa-r0.patch,
  files/chromium-mesa-r1.patch:
  Remove CVS keywords from mesa patches. Thanks to Ben Kohler for reporting on
  bug 455762.
Comment 34 André Terpstra 2013-03-05 14:58:36 UTC
Works for me!