Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649758 - www-client/chromium-65.0.3325.106 with gcc-7.3.0 - error: ‘mojo::StructPtr<S>::StructPtr(const mojo::StructPtr<S>&) [with S = mojo::native::SerializedHandle]’ is private within this context
Summary: www-client/chromium-65.0.3325.106 with gcc-7.3.0 - error: ‘mojo::StructPtr<S>...
Status: RESOLVED OBSOLETE
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:
Depends on:
Blocks:
 
Reported: 2018-03-06 16:38 UTC by Mike Gilbert
Modified: 2018-11-08 02:53 UTC (History)
3 users (show)

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


Attachments
build log (www-client%3Achromium-65.0.3325.106%3A20180306-160952.log.xz,48.78 KB, application/x-xz)
2018-03-06 16:42 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2018-03-06 16:38:13 UTC
FAILED: obj/components/payments/mojom/mojom_shared_cpp_sources/payment_request_data.mojom-shared.o
x86_64-pc-linux-gnu-g++ -MMD -MF obj/components/payments/mojom/mojom_shared_cpp_sources/payment_request_data.mojom-shared.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_
SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTA
TIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -I../.. -Igen -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fst
ack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations
 -fno-delete-null-pointer-checks -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -std=gnu++14 -Wno-narrowing -fno-excepti
ons -fno-rtti -fvisibility-inlines-hidden -O2 -pipe -march=amdfam10 -c gen/components/payments/mojom/payment_request_data.mojom-shared.cc -o obj/components/payments/mojom/mojom_shared_cpp_sources/payment_request_data.mojom-sha
red.o
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/memory:64:0,
                 from ../../mojo/public/cpp/system/buffer.h:17,
                 from ../../mojo/public/cpp/system/core.h:8,
                 from ../../mojo/public/cpp/bindings/lib/bindings_internal.h:16,
                 from ../../mojo/public/cpp/bindings/lib/array_internal.h:18,
                 from ../../mojo/public/cpp/bindings/array_data_view.h:10,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.h:16,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.cc:10:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = mojo::StructPtr<mojo::native::SerializedHandle>; _Args = {const mojo::StructP
tr<mojo::native::SerializedHandle>&}]’:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_uninitialized.h:83:18:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _Forwa
rdIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const mojo::StructPtr<mojo::native::SerializedHandle>*, std::vector<mojo::StructPtr<mojo::native::SerializedHandle> > >; _ForwardIterator = mojo::StructPtr<mojo::
native::SerializedHandle>*; bool _TrivialValueTypes = false]’
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_uninitialized.h:134:15:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cx
x::__normal_iterator<const mojo::StructPtr<mojo::native::SerializedHandle>*, std::vector<mojo::StructPtr<mojo::native::SerializedHandle> > >; _ForwardIterator = mojo::StructPtr<mojo::native::SerializedHandle>*]’
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_uninitialized.h:289:37:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with
 _InputIterator = __gnu_cxx::__normal_iterator<const mojo::StructPtr<mojo::native::SerializedHandle>*, std::vector<mojo::StructPtr<mojo::native::SerializedHandle> > >; _ForwardIterator = mojo::StructPtr<mojo::native::Serialize
dHandle>*; _Tp = mojo::StructPtr<mojo::native::SerializedHandle>]’
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_vector.h:331:31:   required from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = mojo::StructPtr<mojo::native::SerializedHandle>; _A
lloc = std::allocator<mojo::StructPtr<mojo::native::SerializedHandle> >]’
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/type_traits:1406:12:   required from ‘struct std::is_trivially_copy_constructible<std::vector<mojo::StructPtr<mojo::native::SerializedHandle> > >’
../../base/optional.h:247:22:   required from ‘class base::internal::OptionalBase<std::vector<mojo::StructPtr<mojo::native::SerializedHandle> > >’
../../base/optional.h:264:7:   required from ‘class base::Optional<std::vector<mojo::StructPtr<mojo::native::SerializedHandle> > >’
gen/mojo/public/interfaces/bindings/native_struct.mojom.h:268:52:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_construct.h:75:7: error: ‘mojo::StructPtr<S>::StructPtr(const mojo::StructPtr<S>&) [with S = mojo::native::SerializedHandle]’ is private within this context
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../base/logging.h:21:0,
                 from ../../mojo/public/cpp/bindings/lib/array_internal.h:14,
                 from ../../mojo/public/cpp/bindings/array_data_view.h:10,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.h:16,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.cc:10:
../../mojo/public/cpp/bindings/struct_ptr.h:110:28: note: declared private here
   DISALLOW_COPY_AND_ASSIGN(StructPtr);
                            ^
../../base/macros.h:27:3: note: in definition of macro ‘DISALLOW_COPY’
   TypeName(const TypeName&) = delete
   ^~~~~~~~
../../mojo/public/cpp/bindings/struct_ptr.h:110:3: note: in expansion of macro ‘DISALLOW_COPY_AND_ASSIGN’
   DISALLOW_COPY_AND_ASSIGN(StructPtr);
   ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/memory:64:0,
                 from ../../mojo/public/cpp/system/buffer.h:17,
                 from ../../mojo/public/cpp/system/core.h:8,
                 from ../../mojo/public/cpp/bindings/lib/bindings_internal.h:16,
                 from ../../mojo/public/cpp/bindings/lib/array_internal.h:18,
                 from ../../mojo/public/cpp/bindings/array_data_view.h:10,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.h:16,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.cc:10:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_construct.h:75:7: error: use of deleted function ‘mojo::StructPtr<S>::StructPtr(const mojo::StructPtr<S>&) [with S = mojo::native::SerializedHandle]’
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../base/logging.h:21:0,
                 from ../../mojo/public/cpp/bindings/lib/array_internal.h:14,
                 from ../../mojo/public/cpp/bindings/array_data_view.h:10,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.h:16,
                 from gen/components/payments/mojom/payment_request_data.mojom-shared.cc:10:
../../mojo/public/cpp/bindings/struct_ptr.h:110:28: note: declared here
   DISALLOW_COPY_AND_ASSIGN(StructPtr);
                            ^
../../base/macros.h:27:3: note: in definition of macro ‘DISALLOW_COPY’
   TypeName(const TypeName&) = delete
   ^~~~~~~~
../../mojo/public/cpp/bindings/struct_ptr.h:110:3: note: in expansion of macro ‘DISALLOW_COPY_AND_ASSIGN’
   DISALLOW_COPY_AND_ASSIGN(StructPtr);
   ^~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Mike Gilbert gentoo-dev 2018-03-06 16:42:00 UTC
Created attachment 522516 [details]
build log
Comment 2 Yuriy Taraday 2018-03-09 23:52:17 UTC
I've ran into this bug while looking for solutions for NixOS. I've managed to make it work there, here's a list of commits I needed to backport for it: https://github.com/NixOS/nixpkgs/pull/36690/files#diff-f286bd0559a1a8a82983af7fe0830d69R154 - I guess you can do the same for Gentoo as well.
Comment 3 Mike Gilbert gentoo-dev 2018-03-10 14:12:43 UTC
(In reply to Yuriy Taraday from comment #2)

Nice, I'll keep you guys in mind for future patches.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2018-11-08 02:53:54 UTC
chromium-70.0.3538.67-r1 and chromium-71.0.3578.30 have been fixed (bug #669542).