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

Bug 628782

Summary: www-client/chromium-61.0.3163.49 with sys-libs/glibc-2.26 - …/breakpad/src/client/linux/handler/exception_handler.h:194:21: error: field ‘context’ has incomplete type ‘google_breakpad::ucontext’
Product: Gentoo Linux Reporter: iGentoo <AlphatPC>
Component: Current packagesAssignee: Chromium Project <chromium>
Status: RESOLVED FIXED    
Severity: normal CC: mike
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.mozilla.org/show_bug.cgi?id=1385667
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 628768    
Attachments: chromium-61.0.3163.49-build.log.xz
rename struct ucontext to ucontext_t

Description iGentoo 2017-08-24 04:56:19 UTC
FAILED: obj/breakpad/client/microdump_writer.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/breakpad/client/microdump_writer.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../breakpad -I../../breakpad/src -I../../breakpad/src/client -I../../breakpad/src/third_party/linux/include -I../.. -Igen -I../../breakpad/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -Wno-narrowing -Wall -march=native -O2 -pipe -frecord-gcc-switches -fno-delete-null-pointer-checks -c ../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc -o obj/breakpad/client/microdump_writer.o
In file included from ../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:41:0:
../../breakpad/src/client/linux/handler/exception_handler.h:194:21: error: field ‘context’ has incomplete type ‘google_breakpad::ucontext’
     struct ucontext context;
                     ^~~~~~~
In file included from ../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:40:0:
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:44:49: note: forward declaration of ‘struct google_breakpad::ucontext’
   static uintptr_t GetStackPointer(const struct ucontext* uc);
                                                 ^~~~~~~~
../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc: In member function ‘{anonymous}::MicrodumpWriter::CaptureResult {anonymous}::MicrodumpWriter::CaptureCrashingThreadStack(int)’:
../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:245:63: error: no matching function for call to ‘google_breakpad::UContextReader::GetStackPointer(const {anonymous}::ucontext* const&)’
     stack_pointer_ = UContextReader::GetStackPointer(ucontext_);
                                                               ^
In file included from ../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:40:0:
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:44:20: note: candidate: static uintptr_t google_breakpad::UContextReader::GetStackPointer(const google_breakpad::ucontext*)
   static uintptr_t GetStackPointer(const struct ucontext* uc);
                    ^~~~~~~~~~~~~~~
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:44:20: note:   no known conversion for argument 1 from ‘const {anonymous}::ucontext* const’ to ‘const google_breakpad::ucontext*’
../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:270:67: error: no matching function for call to ‘google_breakpad::UContextReader::GetInstructionPointer(const {anonymous}::ucontext* const&)’
     uintptr_t pc = UContextReader::GetInstructionPointer(ucontext_);
                                                                   ^
In file included from ../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:40:0:
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:46:20: note: candidate: static uintptr_t google_breakpad::UContextReader::GetInstructionPointer(const google_breakpad::ucontext*)
   static uintptr_t GetInstructionPointer(const struct ucontext* uc);
                    ^~~~~~~~~~~~~~~~~~~~~
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:46:20: note:   no known conversion for argument 1 from ‘const {anonymous}::ucontext* const’ to ‘const google_breakpad::ucontext*’
../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc: In member function ‘void {anonymous}::MicrodumpWriter::DumpCPUState()’:
../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:402:65: error: no matching function for call to ‘google_breakpad::UContextReader::FillCPUContext(google_breakpad::RawContextCPU*, const {anonymous}::ucontext* const&, const fpstate_t* const&)’
     UContextReader::FillCPUContext(&cpu, ucontext_, float_state_);
                                                                 ^
In file included from ../../breakpad/src/client/linux/microdump_writer/microdump_writer.cc:40:0:
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:52:15: note: candidate: static void google_breakpad::UContextReader::FillCPUContext(google_breakpad::RawContextCPU*, const google_breakpad::ucontext*, const _libc_fpstate*)
   static void FillCPUContext(RawContextCPU *out, const ucontext *uc,
               ^~~~~~~~~~~~~~
../../breakpad/src/client/linux/dump_writer_common/ucontext_reader.h:52:15: note:   no known conversion for argument 2 from ‘const {anonymous}::ucontext* const’ to ‘const google_breakpad::ucontext*’
ninja: build stopped: subcommand failed.



Portage 2.3.8 (python 3.6.1-final-0, default/linux/amd64/17.0, gcc-7.2.0, glibc-2.26, 4.12.8-gentoo.x86_64 x86_64)
=================================================================
System uname: Linux-4.12.8-gentoo.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:     6118040 total,   3466516 free
KiB Swap:    6291452 total,   5907452 free
Head commit of repository gentoo: aab9730e3b8bec487676634893e3646694dcd214

sh dash 0.5.9.1-r2
ld GNU gold (Gentoo 2.29 p1.0 2.29) 1.14
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.26.0::gentoo
dev-lang/python:          2.7.13::gentoo, 3.6.1-r1::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/sandbox:         2.11-r5::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            7.2.0::local-repo
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.12::local-repo (virtual/os-headers)
sys-libs/glibc:           2.26::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    sync-user: portage
    priority: -1000
    eclass-overrides: local-repo

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

Installed sets: @local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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"
CXXFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color=n --keep-going --oneshot"
FCFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="V=1 -j5"
PKGDIR="/var/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9T0"
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 acl amd64 audit berkdb bzip2 cli cracklib crypt cxx dbus dri egl fortran gdbm gles2 iconv icu ipv6 jpeg modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre pic png policykit pulseaudio readline seccomp session ssl systemd tcpd unicode vdpau vim-syntax wayland xattr zlib" ABI_X86="64 32 x32" ALSA_CARDS="hda-intel" 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="mmx mmxext sse sse2 sse3 sse4_1 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="libinput" KERNEL="linux" L10N="zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 iGentoo 2017-08-24 05:00:05 UTC
Created attachment 490374 [details]
chromium-61.0.3163.49-build.log.xz
Comment 2 iGentoo 2017-08-24 05:02:12 UTC
Created attachment 490376 [details, diff]
rename struct ucontext to ucontext_t

See also:

https://sourceware.org/git/?p=glibc.git;h=251287734e89a52da3db682a8241eb6bccc050c9
Comment 3 cyrillic 2017-08-27 21:46:45 UTC
This patch worked for me.
Thank you.
Comment 4 Larry the Git Cow gentoo-dev 2017-09-07 12:44:46 UTC
Bug has been referenced in the following commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2901239ea2039344c5302d8812db0f5530a3b766

commit 2901239ea2039344c5302d8812db0f5530a3b766
Author:     Pawel Hajdan, Jr <phajdan.jr@gentoo.org>
AuthorDate: 2017-09-07 12:44:30 +0000
Commit:     Pawel Hajdan, Jr <phajdan.jr@gentoo.org>
CommitDate: 2017-09-07 12:44:30 +0000

    www-client/chromium: dev channel bump (62.0.3202.9)
    
    Build with system libxml. Fix build with glibc-2.26.
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=616818
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=628782
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.1

 www-client/chromium/Manifest                       |   2 +-
 www-client/chromium/chromium-62.0.3192.0.ebuild    | 644 ---------------------
 ...192.0-r1.ebuild => chromium-62.0.3202.9.ebuild} |  11 +-
 .../chromium/files/chromium-glibc2.26-r1.patch     | 220 +++++++
 4 files changed, 227 insertions(+), 650 deletions(-)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2017-10-31 21:22:04 UTC
Looks like we can close this then.