Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627720 - www-client/chromium-61.0.3163.39 w/ gcc-7.1.0: error: there are no arguments to ‘SwapAnchor’ that depend on a template parameter, so a declaration of ‘SwapAnchor’ must be available
Summary: www-client/chromium-61.0.3163.39 w/ gcc-7.1.0: error: there are no arguments ...
Status: RESOLVED DUPLICATE of bug 626970
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: 2017-08-12 20:12 UTC by Michał Górny
Modified: 2017-09-15 12:43 UTC (History)
5 users (show)

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


Attachments
www-client:chromium-61.0.3163.39:20170812-182103.log.xz (www-client:chromium-61.0.3163.39:20170812-182103.log.xz,268.17 KB, application/x-xz)
2017-08-12 20:12 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-12 20:12:20 UTC
Created attachment 488708 [details]
www-client:chromium-61.0.3163.39:20170812-182103.log.xz

So I've upgraded to gcc-7.1.0 because of #627414, and now I get:

FAILED: obj/third_party/WebKit/Source/platform/heap/heap/PersistentNode.o 
x86_64-pc-linux-gnu-g++-7.1.0 -MMD -MF obj/third_party/WebKit/Source/platform/heap/heap/PersistentNode.o.d -DBLINK_PLATFORM_IMPLEMENTATION=1 -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 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -I../.. -Igen -I../../third_party/WebKit/Source -I../../third_party/WebKit -Igen/blink -Igen/third_party/WebKit -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../v8/include -Igen/v8/include -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-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -pipe -march=core-avx-i -fno-delete-null-pointer-checks -c ../../third_party/WebKit/Source/platform/heap/PersistentNode.cpp -o obj/third_party/WebKit/Source/platform/heap/heap/PersistentNode.o
distcc[14823] ERROR: compile ../../third_party/WebKit/Source/platform/heap/PersistentNode.cpp on localhost failed
In file included from ../../third_party/WebKit/Source/platform/heap/ThreadingTraits.h:14:0,
                 from ../../third_party/WebKit/Source/platform/heap/ThreadState.h:37,
                 from ../../third_party/WebKit/Source/platform/heap/PersistentNode.h:10,
                 from ../../third_party/WebKit/Source/platform/heap/PersistentNode.cpp:5:
../../third_party/WebKit/Source/platform/wtf/LinkedHashSet.h: In member function ‘void WTF::LinkedHashSet<Value, HashFunctions, HashTraits, Allocator>::Swap(WTF::LinkedHashSet<Value, HashFunctions, HashTraits, Allocator>&)’:
../../third_party/WebKit/Source/platform/wtf/LinkedHashSet.h:691:3: error: there are no arguments to ‘SwapAnchor’ that depend on a template parameter, so a declaration of ‘SwapAnchor’ must be available [-fpermissive]
   SwapAnchor(anchor_, other.anchor_);
   ^~~~~~~~~~
../../third_party/WebKit/Source/platform/wtf/LinkedHashSet.h:691:3: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Comment 1 Ostashevskyi Viktor 2017-08-15 07:49:40 UTC
Adding

cflags += [ "-fpermissive" ]

to third_party/WebKit/Source/BUILD.gn can be considered as a workaround.
Comment 2 Konstantin (elxa) 2017-08-21 16:35:02 UTC
Upstream patch here https://chromium-review.googlesource.com/c/616563
Comment 3 Konstantin (elxa) 2017-08-21 18:21:25 UTC
The patch worked for me, after the build failed I did
patch -p1 < patch.diff
ebuild <path to chromium-61.0.3163.39 ebuild> merge
installation completed without errors
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-09-15 12:43:07 UTC
Duping gcc-7 issues to one bug.

*** This bug has been marked as a duplicate of bug 626970 ***