Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716478 - www-client/chromium ui/gfx/linux/drm_util_linux.h:16:26: error: ‘uint32_t’ was not declared in this scope
Summary: www-client/chromium ui/gfx/linux/drm_util_linux.h:16:26: error: ‘uint32_t’ wa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-04-06 17:42 UTC by andy
Modified: 2020-04-11 16:43 UTC (History)
0 users

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


Attachments
build.log (chromium.tar.gz,83.01 KB, application/gzip)
2020-04-06 17:44 UTC, andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2020-04-06 17:42:46 UTC
all chromium fails to build.here is one of them.


mya51 /home/hedmo # emerge --info
Portage 2.3.96 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.0.1, glibc-2.30-r7, 5.6.2-xanmod1-x86_64 x86_64)
=================================================================
System uname: Linux-5.6.2-xanmod1-x86_64-x86_64-Intel-R-_Core-TM-_i7-9700_CPU_@_3.00GHz-with-gentoo-2.7
KiB Mem:    32684884 total,  19151564 free
KiB Swap:    2047996 total,   1435132 free
Head commit of repository nvidia-vulkan: 37106b824845209a56221e44c5df1d94ca92ab0c

Timestamp of repository poly-c: Sun, 05 Apr 2020 11:46:52 +0000
Timestamp of repository gentoo: Mon, 06 Apr 2020 14:39:10 +0000
Head commit of repository gentoo: 91bad28cfc2456f73d34bd7f513214820bb35290

sh bash 5.0_p16
ld GNU ld (Gentoo 2.34 p1) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.9 [enabled]
app-shells/bash:          5.0_p16::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo, 3.8.2-r1::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            10.0.1_pre9999::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r7::gentoo
Repositories:

nvidia-vulkan
    location: /var/db/repos/nvidia-vulkan
    sync-type: git
    sync-uri: https://github.com/kakra/nvidia-vulkan.git
    masters: gentoo

x-hedmo
    location: /var/lib/local/hedmo
    masters: gentoo
    priority: 0

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

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

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

mv
    location: /var/lib/layman/mv
    masters: gentoo
    priority: 50

poly-c
    location: /var/lib/layman/poly-c
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    masters: gentoo
    priority: 50

raiagent
    location: /var/lib/layman/raiagent
    masters: gentoo
    priority: 50

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

waebbl
    location: /var/lib/layman/waebbl
    masters: gentoo raiagent
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 1000

Installed sets: @llvm, @steam, @telephony
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake  -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=9 -fuse-linker-plugin  -falign-functions=32 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
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"
CXXFLAGS="-march=skylake  -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=9 -fuse-linker-plugin  -falign-functions=32 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 5 --load-average 8"
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"
FCFLAGS="-march=skylake  -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=9 -fuse-linker-plugin  -falign-functions=32 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake  -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=9 -fuse-linker-plugin  -falign-functions=32 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j41 -l9"
PKGDIR="/var/cache/binpkgs"
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 activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr egl elogind emboss encode exif ffmpeg flac fortran gdbm gif glamor gles gpm gstreamer gtk iconv icu ipv6 joystick jpeg kde kipi kwallet lcms ldap libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ofono-headset ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt4 qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965 nouveau" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

mya51 /home/hedmo #
Comment 1 andy 2020-04-06 17:44:20 UTC
Created attachment 630868 [details]
build.log
Comment 2 Mike Gilbert gentoo-dev 2020-04-06 17:51:59 UTC
FAILED: obj/ui/gfx/linux/drm/drm_util_linux.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/ui/gfx/linux/drm/drm_util_linux.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -I../.. -Igen -I../../third_party/boringssl/src/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libdrm -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=skylake -pipe -Wl,-O1 -Wl,--as-needed -O2 -c ../../ui/gfx/linux/drm_util_linux.cc -o obj/ui/gfx/linux/drm/drm_util_linux.o
In file included from ../../ui/gfx/linux/drm_util_linux.cc:5:
../../ui/gfx/linux/drm_util_linux.h:16:26: error: ‘uint32_t’ was not declared in this scope
   16 | bool IsValidBufferFormat(uint32_t current_format);
      |                          ^~~~~~~~
../../ui/gfx/linux/drm_util_linux.cc:90:49: error: ‘bool ui::IsValidBufferFormat(uint32_t)’ redeclared as different kind of entity
   90 | bool IsValidBufferFormat(uint32_t current_format) {
      |                                                 ^
In file included from ../../ui/gfx/linux/drm_util_linux.cc:5:
../../ui/gfx/linux/drm_util_linux.h:16:6: note: previous declaration ‘bool ui::IsValidBufferFormat’
   16 | bool IsValidBufferFormat(uint32_t current_format);
      |      ^~~~~~~~~~~~~~~~~~~
Comment 3 Larry the Git Cow gentoo-dev 2020-04-08 15:30:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68ee7ce691b80d8a62881b80b7916d9a81d57065

commit 68ee7ce691b80d8a62881b80b7916d9a81d57065
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2020-04-08 07:59:32 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-04-08 15:30:00 +0000

    www-client/chromium: fix build with gcc-10 for M81
    
    Bug: https://bugs.gentoo.org/716478
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/15265

 www-client/chromium/chromium-81.0.4044.92.ebuild   |   1 +
 www-client/chromium/files/chromium-81-gcc-10.patch | 116 +++++++++++++++++++++
 2 files changed, 117 insertions(+)
Comment 4 andy 2020-04-11 07:43:51 UTC
I can confirm that the patch works for =www-client/chromium-83.0.4100.3
Comment 5 Larry the Git Cow gentoo-dev 2020-04-11 16:43:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a15744e17581ce14ea2db4dc38dd68c7d395da7

commit 9a15744e17581ce14ea2db4dc38dd68c7d395da7
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2020-04-11 07:30:20 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-04-11 16:43:01 +0000

    www-client/chromium: dev channel bump to 83.0.4103.7
    
    Closes: https://bugs.gentoo.org/716478
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/Manifest                       |  2 +-
 ...0.4100.3.ebuild => chromium-83.0.4103.7.ebuild} |  2 +
 .../chromium/files/chromium-82-gcc-constexpr.patch |  8 +--
 .../files/chromium-82-gcc-incomplete-type.patch    | 29 +++++++---
 www-client/chromium/files/chromium-83-gcc-10.patch | 64 ++++++++++++++++++++++
 .../chromium/files/chromium-83-gcc-include.patch   | 50 +++++++++++++++++
 .../chromium/files/chromium-83-gcc-iterator.patch  | 41 ++++++++++++++
 .../files/chromium-83-gcc-permissive.patch         |  5 +-
 .../chromium/files/chromium-83-gcc-template.patch  |  8 ++-
 9 files changed, 191 insertions(+), 18 deletions(-)