New issue
Advanced search Search tips

Issue 869318 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 31
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

build fails with gcc 7.2.0

Reported by re...@rezso.net, Jul 31

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Steps to reproduce the problem:
try to build with gcc 7.2.0

What is the expected behavior?

What went wrong?
FAILED: obj/content/browser/browser/background_fetch_context.o 
g++ -MMD -MF obj/content/browser/browser/background_fetch_context.o.d -DENABLE_SCREEN_CAPTURE=1 -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCONTENT_IMPLEMENTATION -DV8_USE_EXTERNAL_STARTUP_DATA -DATK_LIB_DIR=\"/usr/lib\" -DUSE_ATK_BRIDGE -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_54 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DLEVELDB_PLATFORM_CHROMIUM=1 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DGTEST_RELATIVE_PATH -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DNO_MAIN_THREAD_WRAPPING -I../.. -Igen -I../../third_party/libwebp/src -I../../third_party/khronos -I../../gpu -I../../third_party/libyuv/include -Igen/shim_headers/flac_shim -I../../third_party/protobuf/src -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/libwebm/source -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/webrtc_overrides -I../../testing/gtest/include -I../../third_party/webrtc -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/metrics_proto -I../../third_party/boringssl/src/include -I../../v8/include -Igen/v8/include -I../../third_party/mesa/src/include -I../../third_party/perfetto/include -Igen/third_party/perfetto/protos -I../../third_party/angle/src/common/third_party/base -Igen/angle -I../../third_party/brotli/include -I../../third_party/re2/src -I../../third_party/zlib -I../../third_party/fontconfig/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 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wno-unused-function -isystem../../../../../../usr/include/atk-1.0 -isystem../../../../../../usr/include/at-spi2-atk/2.0 -isystem../../../../../../usr/include/at-spi-2.0 -isystem../../../../../../usr/include/dbus-1.0 -isystem../../../../../../usr/lib/dbus-1.0/include -isystem../../../../../../usr/include/glib-2.0 -isystem../../../../../../usr/lib/glib-2.0/include -isystem../../../../../../usr/include/glib-2.0 -isystem../../../../../../usr/lib/glib-2.0/include -isystem../../../../../../usr/include/pango-1.0 -isystem../../../../../../usr/include/harfbuzz -isystem../../../../../../usr/include/pango-1.0 -isystem../../../../../../usr/include/cairo -isystem../../../../../../usr/include/glib-2.0 -isystem../../../../../../usr/lib/glib-2.0/include -isystem../../../../../../usr/include/pixman-1 -isystem../../../../../../usr/include/uuid -isystem../../../../../../usr/include/libdrm -isystem../../../../../../usr/include/libpng16 -isystem../../../../../../usr/include/nss3 -isystem../../../../../../usr/include/nspr4 -isystem../../../../../../usr/include/dbus-1.0 -isystem../../../../../../usr/lib/dbus-1.0/include -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../content/browser/background_fetch/background_fetch_context.cc -o obj/content/browser/browser/background_fetch_context.o
In file included from /usr/include/c++/7.2.0/x86_64-gnu-linux/bits/c++allocator.h:33:0,
                 from /usr/include/c++/7.2.0/bits/allocator.h:46,
                 from /usr/include/c++/7.2.0/bits/stl_tree.h:64,
                 from /usr/include/c++/7.2.0/map:60,
                 from ../../content/browser/background_fetch/background_fetch_context.h:8,
                 from ../../content/browser/background_fetch/background_fetch_context.cc:5:
/usr/include/c++/7.2.0/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _Args = {const std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<content::BackgroundFetchJobController, std::default_delete<content::BackgroundFetchJobController> > >&}; _Tp = std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >]':
/usr/include/c++/7.2.0/bits/alloc_traits.h:475:4:   required from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _Args = {const std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<content::BackgroundFetchJobController, std::default_delete<content::BackgroundFetchJobController> > >&}; _Tp = std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > > >]'
/usr/include/c++/7.2.0/bits/stl_tree.h:626:32:   required from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_construct_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, _Args&& ...) [with _Args = {const std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<content::BackgroundFetchJobController, std::default_delete<content::BackgroundFetchJobController> > >&}; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >*]'
/usr/include/c++/7.2.0/bits/stl_tree.h:643:21:   required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {const std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<content::BackgroundFetchJobController, std::default_delete<content::BackgroundFetchJobController> > >&}; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >*]'
/usr/include/c++/7.2.0/bits/stl_tree.h:556:62:   required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Alloc_node::operator()(_Arg&&) const [with _Arg = const std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >&; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >*]'
/usr/include/c++/7.2.0/bits/stl_tree.h:1753:29:   required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, _Arg&&, _NodeGen&) [with _Arg = const std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >&; _NodeGen = std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > > >::_Alloc_node; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]'
/usr/include/c++/7.2.0/bits/stl_tree.h:2096:26:   required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >&; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >]'
/usr/include/c++/7.2.0/bits/stl_map.h:796:41:   required from 'std::pair<typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<std::pair<const _Key, _Tp> >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = std::unique_ptr<content::BackgroundFetchJobController>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<std::pair<const _Key, _Tp> >::other>::iterator = std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> > >; std::map<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, std::unique_ptr<content::BackgroundFetchJobController> >]'
../../content/browser/background_fetch/background_fetch_context.cc:221:61:   required from here
/usr/include/c++/7.2.0/ext/new_allocator.h:136:4: error: use of deleted function 'std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const std::__cxx11::basic_string<char>; _T2 = std::unique_ptr<content::BackgroundFetchJobController>]'
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7.2.0/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/7.2.0/bits/stl_tree.h:63,
                 from /usr/include/c++/7.2.0/map:60,
                 from ../../content/browser/background_fetch/background_fetch_context.h:8,
                 from ../../content/browser/background_fetch/background_fetch_context.cc:5:
/usr/include/c++/7.2.0/bits/stl_pair.h:292:17: note: 'std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const std::__cxx11::basic_string<char>; _T2 = std::unique_ptr<content::BackgroundFetchJobController>]' is implicitly deleted because the default definition would be ill-formed:
       constexpr pair(const pair&) = default;
                 ^~~~
/usr/include/c++/7.2.0/bits/stl_pair.h:292:17: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = content::BackgroundFetchJobController; _Dp = std::default_delete<content::BackgroundFetchJobController>]'
In file included from /usr/include/c++/7.2.0/memory:80:0,
                 from ../../content/browser/background_fetch/background_fetch_context.h:9,
                 from ../../content/browser/background_fetch/background_fetch_context.cc:5:
/usr/include/c++/7.2.0/bits/unique_ptr.h:388:7: note: declared here
       unique_ptr(const unique_ptr&) = delete;
       ^~~~~~~~~~

Did this work before? N/A 

Chrome version: 68.0.3440.75  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 29.0 r0
 
Labels: Needs-Feedback
I'm guessing this is GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82522

Work around was added here: https://chromium.googlesource.com/chromium/src/+/823d20044c74ff8524954b2f3b01a51f390567b0

What is your HEAD at?
Thank you, I try it.
I don't know the HEAD, because I try to compile the 68.0.3440.75 release tarball (chromium-68.0.3440.75.tar.xz from commondatastorage.googleapis.com/chromium-browser-official/), which doesn't contains any .git directory.
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 31

Cc: dtapu...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
the 68 tree is branched off of https://chromium.googlesource.com/chromium/src/+/010ddcfda246975d194964ccf20038ebbdec6084

It doesn't contain that change so you should try applying that patch to your branch.

Sign in to add a comment