New issue
Advanced search Search tips

Issue 871078 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Chromium-Packagers


Sign in to add a comment

70.0.3510.0 (dev channel): error: no template named 'unique_ptr' in namespace 'std'

Reported by sl1pk...@gmail.com, Aug 5

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.12 Safari/537.36

Steps to reproduce the problem:
1. download chrome dev channel from https://commondatastorage.googleapis.com/chromium-browser-official/chromium-70.0.3510.0.tar.xz
2. use bundled clang with `tools/clang/scripts/update.py --without-android`
3. start build

What is the expected behavior?
build ok

What went wrong?
fail build:

FAILED: obj/ui/message_center/message_center/message_popup_collection.o 
/tmp/makepkg/chromium-dev/src/chromium-70.0.3510.0/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/ui/message_center/message_center/message_popup_collection.o.d -DMESSAGE_CENTER_IMPLEMENTATION -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 -DOFFICIAL_BUILD -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 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DTOOLKIT_VIEWS=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I../.. -Igen -Igen/shim_headers/libpng_shim -I../../third_party/libwebp/src -Igen/shim_headers/zlib_shim -Igen/shim_headers/libdrm_shim -I../../third_party/khronos -I../../gpu -I../../third_party/libyuv/include -I../../third_party/vulkan/include -Igen/shim_headers/re2_shim -Igen/shim_headers/opus_shim -Igen/shim_headers/snappy_shim -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/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/vulkan/include -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/ced/src -I../../third_party/protobuf/src -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -no-canonical-prefixes -flto=thin -fwhole-program-vtables -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -fno-omit-frame-pointer -fsanitize=cfi-vcall -fsanitize-blacklist=../../tools/cfi/blacklist.txt -fsanitize=cfi-icall -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang enforce-in-thirdparty-webkit -Xclang -plugin-arg-find-bad-constructs -Xclang check-enum-max-value -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -isystem../../../../../../../usr/include/glib-2.0 -isystem../../../../../../../usr/lib/glib-2.0/include -std=gnu++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -D_FORTIFY_SOURCE=2 -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -DNO_UNWIND_TABLES -march=native -O2 -pipe -fstack-protector-strong  -Wno-builtin-macro-redefined -fno-unwind-tables -fno-asynchronous-unwind-tables -c ../../ui/message_center/views/message_popup_collection.cc -o obj/ui/message_center/message_center/message_popup_collection.o
In file included from ../../ui/message_center/views/message_popup_collection.cc:5:
../../ui/message_center/views/message_popup_collection.h:179:14: error: no template named 'unique_ptr' in namespace 'std'
  const std::unique_ptr<gfx::LinearAnimation> animation_;
        ~~~~~^
../../ui/message_center/views/message_popup_collection.cc:32:37: error: cannot initialize a parameter of type 'message_center::MessageCenterObserver *' with an rvalue of type 'message_center::MessagePopupCollection *'
  MessageCenter::Get()->AddObserver(this);
                                    ^~~~
../../ui/message_center/message_center.h:66:51: note: passing argument to parameter 'observer' here
  virtual void AddObserver(MessageCenterObserver* observer) = 0;
                                                  ^
../../ui/message_center/views/message_popup_collection.cc:39:40: error: cannot initialize a parameter of type 'message_center::MessageCenterObserver *' with an rvalue of type 'message_center::MessagePopupCollection *'
  MessageCenter::Get()->RemoveObserver(this);
                                       ^~~~
../../ui/message_center/message_center.h:67:54: note: passing argument to parameter 'observer' here
  virtual void RemoveObserver(MessageCenterObserver* observer) = 0;
                                                     ^
In file included from ../../ui/message_center/views/message_popup_collection.cc:7:
In file included from ../../ui/gfx/animation/linear_animation.h:10:
In file included from ../../ui/gfx/animation/animation.h:10:
In file included from ../../base/memory/ref_counted.h:18:
In file included from ../../base/sequence_checker.h:10:
In file included from ../../base/sequence_checker_impl.h:8:
In file included from /usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0/memory:80:
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0/bits/unique_ptr.h:831:34: error: no matching constructor for initialization of 'gfx::LinearAnimation'
    { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
                                 ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ui/message_center/views/message_popup_collection.cc:30:23: note: in instantiation of function template specialization 'std::make_unique<gfx::LinearAnimation, message_center::MessagePopupCollection *>' requested here
    : animation_(std::make_unique<gfx::LinearAnimation>(this)),
                      ^
../../ui/gfx/animation/linear_animation.h:29:12: note: candidate constructor not viable: no known conversion from 'message_center::MessagePopupCollection *' to 'gfx::AnimationDelegate *' for 1st argument
  explicit LinearAnimation(AnimationDelegate* delegate,
           ^
../../ui/gfx/animation/linear_animation.h:89:28: note: candidate constructor not viable: no known conversion from 'message_center::MessagePopupCollection *' to 'const gfx::LinearAnimation' for 1st argument
  DISALLOW_COPY_AND_ASSIGN(LinearAnimation);
                           ^
../../base/macros.h:34:17: note: expanded from macro 'DISALLOW_COPY_AND_ASSIGN'
  DISALLOW_COPY(TypeName);                 \
                ^
../../base/macros.h:27:3: note: expanded from macro 'DISALLOW_COPY'
  TypeName(const TypeName&) = delete
  ^
../../ui/gfx/animation/linear_animation.h:33:3: note: candidate constructor not viable: requires 3 arguments, but 1 was provided
  LinearAnimation(base::TimeDelta duration,
  ^
In file included from ../../ui/message_center/views/message_popup_collection.cc:5:
../../ui/message_center/views/message_popup_collection.h:179:47: warning: private field 'animation_' is not used [-Wunused-private-field]
  const std::unique_ptr<gfx::LinearAnimation> animation_;
                                              ^
1 warning and 4 errors generated.

Did this work before? N/A 

Chrome version: 69.0.3497.12  Channel: n/a
OS Version: 
Flash Version:
 
Labels: Needs-Triage-M69
Components: Internals
Labels: Triaged-ET TE-NeedsTriageHelp
The issue seems to be related to build which is out of TE-scope. Hence, adding label TE-NeedsTriageHelp for further investigation from dev team.

Thanks...!!
Cc: tetsui@chromium.org
Labels: -Needs-Triage-M69
From #0 it seems the report uses libstdc++ to build chromium while officially only libc++ is supported for Linux.


sl1pkn07@:

Probably #include <memory> in message_popup_collection.h will fix this?

Could you verify if it works, as the build error didn't reproduce on our commit queue? If so, either I will submit a patch or you can create a patch and we can approve that.

https://www.chromium.org/developers/contributing-code
also need add in extensions/browser/verified_contents.h

FAILED: obj/extensions/browser/browser_sources/verified_contents.o 
/tmp/makepkg/chromium-dev/src/chromium-70.0.3510.0/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/extensions/browser/browser_sources/verified_contents.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 -DOFFICIAL_BUILD -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 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DTOOLKIT_VIEWS=1 -DV8_USE_EXTERNAL_STARTUP_DATA -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_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DLEVELDB_PLATFORM_CHROMIUM=1 -DV8_DEPRECATION_WARNINGS -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DGTEST_RELATIVE_PATH -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_WRAPPING -I../.. -Igen -Igen/shim_headers/zlib_shim -Igen/shim_headers/libpng_shim -I../../third_party/libwebp/src -Igen/shim_headers/re2_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/libdrm_shim -I../../third_party/libyuv/include -Igen/shim_headers/opus_shim -I../../third_party/khronos -I../../gpu -I../../third_party/vulkan/include -Igen/shim_headers/openh264_shim -Igen/shim_headers/minizip_shim -Igen/shim_headers/flac_shim -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I../../third_party/boringssl/src/include -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/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/vulkan/include -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/libwebm/source -I../../v8/include -Igen/v8/include -I../../third_party/webrtc_overrides -I../../third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/perfetto/include -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -no-canonical-prefixes -flto=thin -fwhole-program-vtables -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -fno-omit-frame-pointer -fsanitize=cfi-vcall -fsanitize-blacklist=../../tools/cfi/blacklist.txt -fsanitize=cfi-icall -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang enforce-in-thirdparty-webkit -Xclang -plugin-arg-find-bad-constructs -Xclang check-enum-max-value -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -isystem../../../../../../../usr/include/glib-2.0 -isystem../../../../../../../usr/lib/glib-2.0/include -Wno-header-guard -isystem../../../../../../../usr/include/nss -isystem../../../../../../../usr/include/nspr -std=gnu++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -D_FORTIFY_SOURCE=2 -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -DNO_UNWIND_TABLES -march=native -O2 -pipe -fstack-protector-strong -fno-plt -Wno-builtin-macro-redefined -fno-unwind-tables -fno-asynchronous-unwind-tables -c ../../extensions/browser/verified_contents.cc -o obj/extensions/browser/browser_sources/verified_contents.o
In file included from ../../extensions/browser/verified_contents.cc:5:
../../extensions/browser/verified_contents.h:34:15: error: no template named 'unique_ptr' in namespace 'std'
  static std::unique_ptr<VerifiedContents> Create(
         ~~~~~^
1 error generated.

but seems is different commit/review/bug

now in build process

greetings
sl1pkn07@:

It seems we don't officially support libstdc++. Is it possible to configure makepkg to use libc++?
Yes, is possible, but idk in what part need set it.

Is a GN option?, Compiler flag? Edit file in the chromium code?

Greetings
with 'use_custom_libcxx=true'

[34985/34985] /usr/bin/python2 "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- /tmp/makepkg/chromium-dev/src/chromium-70.0.3528.4/third_party/llvm-build/Release+Asserts/bin/clang++ -pie -Wl,--version-script=../../build/linux/chrome.map -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10\%:cache_size_bytes=10g:cache_size_files=100000 -Wl,--lto-O0 -fwhole-program-vtables -rdynamic -nostdlib++ -fsanitize=cfi-vcall -fsanitize=cfi-icall -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group   -ldl -lpthread -lrt -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lXtst -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lm -lcrypt -lxml2 -lexpat -lfontconfig -ldbus-1 -latomic -lXss -lpng16 -lfreetype -lharfbuzz -ldrm -lXrandr -lresolv -lopenh264 -lopus -lre2 -lasound -lpulse -lsnappy -lpangocairo-1.0 -lpango-1.0 -lcairo -lpci -latk-1.0 -latk-bridge-2.0 -lminizip -lFLAC -lgtk-3 -lgdk-3 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lxslt 
FAILED: chrome 
/usr/bin/python2 "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- /tmp/makepkg/chromium-dev/src/chromium-70.0.3528.4/third_party/llvm-build/Release+Asserts/bin/clang++ -pie -Wl,--version-script=../../build/linux/chrome.map -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10\%:cache_size_bytes=10g:cache_size_files=100000 -Wl,--lto-O0 -fwhole-program-vtables -rdynamic -nostdlib++ -fsanitize=cfi-vcall -fsanitize=cfi-icall -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group   -ldl -lpthread -lrt -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lXtst -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz -lm -lcrypt -lxml2 -lexpat -lfontconfig -ldbus-1 -latomic -lXss -lpng16 -lfreetype -lharfbuzz -ldrm -lXrandr -lresolv -lopenh264 -lopus -lre2 -lasound -lpulse -lsnappy -lpangocairo-1.0 -lpango-1.0 -lcairo -lpci -latk-1.0 -latk-bridge-2.0 -lminizip -lFLAC -lgtk-3 -lgdk-3 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lxslt 
ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by gpu_control_list.cc
>>>               thinlto-cache/Thin-9a2bb1.tmp.o:(gpu::(anonymous namespace)::StringMismatch(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by schema.cc
>>>               thinlto-cache/Thin-095b4a.tmp.o:(policy::Schema::InternalStorage::CompileRegex(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const)

ld.lld: error: undefined symbol: re2::RE2::Replace(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, re2::RE2 const&, re2::StringPiece const&)
>>> referenced by webrequest_action.cc
>>>               thinlto-cache/Thin-a1f411.tmp.o:(extensions::WebRequestRedirectByRegExAction::CreateDelta(extensions::WebRequestData const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::Time const&) const)

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by form_data_parser.cc
>>>               thinlto-cache/Thin-40cfcc.tmp.o:(extensions::FormDataParser::CreateFromContentTypeHeader(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const*))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by form_data_parser.cc
>>>               thinlto-cache/Thin-40cfcc.tmp.o:(_ZN4base8internal23LeakyLazyInstanceTraitsIN10extensions12_GLOBAL__N_18PatternsEE3NewEPv$a7787932b5b0064ceaebc4bc3e484c5e.cfi)

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by form_data_parser.cc
>>>               thinlto-cache/Thin-40cfcc.tmp.o:(_ZN4base8internal23LeakyLazyInstanceTraitsIN10extensions12_GLOBAL__N_18PatternsEE3NewEPv$a7787932b5b0064ceaebc4bc3e484c5e.cfi)

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchDynamicInterstitial(net::SSLInfo const&, bool))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchDynamicInterstitial(net::SSLInfo const&, bool))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchKnownMITMSoftware(scoped_refptr<net::X509Certificate> const&))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchKnownMITMSoftware(scoped_refptr<net::X509Certificate> const&))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchKnownMITMSoftware(scoped_refptr<net::X509Certificate> const&))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchKnownMITMSoftware(scoped_refptr<net::X509Certificate> const&))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by ssl_error_assistant.cc
>>>               thinlto-cache/Thin-76d39c.tmp.o:(SSLErrorAssistant::MatchKnownMITMSoftware(scoped_refptr<net::X509Certificate> const&))

ld.lld: error: undefined symbol: re2::RE2::Replace(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, re2::RE2 const&, re2::StringPiece const&)
>>> referenced by local_files_ntp_source.cc
>>>               thinlto-cache/Thin-ecf630.tmp.o:(local_ntp::FlattenLocalInclude(base::RepeatingCallback<void (scoped_refptr<base::RefCountedMemory>)> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, scoped_refptr<base::RefCountedMemory>))

ld.lld: error: undefined symbol: re2::FilteredRE2::Compile(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*)
>>> referenced by regex_set_matcher.cc
>>>               thinlto-cache/Thin-0b3da6.tmp.o:(url_matcher::RegexSetMatcher::RebuildMatcher())

ld.lld: error: undefined symbol: re2::FilteredRE2::AllMatches(re2::StringPiece const&, std::__1::vector<int, std::__1::allocator<int> > const&, std::__1::vector<int, std::__1::allocator<int> >*) const
>>> referenced by regex_set_matcher.cc
>>>               thinlto-cache/Thin-0b3da6.tmp.o:(url_matcher::RegexSetMatcher::Match(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::set<int, std::__1::less<int>, std::__1::allocator<int> >*) const)

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by url_matcher_factory.cc
>>>               thinlto-cache/Thin-dd9045.tmp.o:(url_matcher::URLMatcherFactory::CreateFromURLFilterDictionary(url_matcher::URLMatcherConditionFactory*, base::DictionaryValue const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*))

ld.lld: error: undefined symbol: re2::RE2::GlobalReplace(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, re2::RE2 const&, re2::StringPiece const&)
>>> referenced by address_rewriter.cc
>>>               thinlto-cache/Thin-b64aed.tmp.o:(autofill::AddressRewriter::Rewrite(std::__1::basic_string<unsigned short, base::string16_internals::string16_char_traits, std::__1::allocator<unsigned short> > const&) const)

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by download_query.cc
>>>               thinlto-cache/Thin-1b8da4.tmp.o:((anonymous namespace)::BuildRegexFilter(base::Value const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > (*)(download::DownloadItem const&)))

ld.lld: error: undefined symbol: re2::RE2::RE2(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
>>> referenced by developer_private_api.cc
>>>               thinlto-cache/Thin-5e57db.tmp.o:(extensions::(anonymous namespace)::GetManifestError(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::FilePath const&, base::OnceCallback<void (base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>))

ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


using system re2 from my distribution https://www.archlinux.org/packages/extra/x86_64/re2/

now in test use bundled re2

in this thime, using chromium-dev 70.0.3528.4

greetings
ok. with bundled R2 build ok

greetings
sig

[119254.656827] traps: chromium-dev[44701] trap invalid opcode ip:562d4702b7e0 sp:7ffed19a66f8 error:0 in chromium-dev[562d46f4f000+6760000]
[119254.656861] audit: type=1701 audit(1535237269.932:343): auid=1000 uid=1000 gid=100 ses=1 pid=44701 comm="chromium-dev" exe="/usr/lib/chromium-dev/chromium-dev" sig=4 res=1

when start chromium. clean profile not help

Sign in to add a comment