New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 683349 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Mac and iOS builds with ToT clang broken by libc++ const call operator diagnostic change

Project Member Reported by r...@chromium.org, Jan 20 2017

Issue description

Example build:
https://build.chromium.org/p/chromium.fyi/builders/ClangToTiOS/builds/10010

Error message:
FAILED: clang_x64/obj/third_party/protobuf/protoc_lib/java_file.o 
...
In file included from ../../third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc:41:
In file included from /b/build/slave/ClangToTiOS/build/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/set:389:
/b/build/slave/ClangToTiOS/build/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/__tree:1815:22: error: the specified comparator type does not provide a const call operator [-Werror,-Wuser-defined-warnings]
                     __trigger_diagnostics()), "");
                     ^
/b/build/slave/ClangToTiOS/build/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/set:400:28: note: in instantiation of member function 'std::__1::__tree<const google::protobuf::FieldDescriptor *, google::protobuf::compiler::java::(anonymous namespace)::FieldDescriptorCompare, std::__1::allocator<const google::protobuf::FieldDescriptor *> >::~__tree' requested here
class _LIBCPP_TEMPLATE_VIS set
                           ^
/b/build/slave/ClangToTiOS/build/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/__tree:966:7: note: from 'diagnose_if' attribute on '__trigger_diagnostics':
      _LIBCPP_DIAGNOSE_WARNING(!__invokable<_Compare const&, _Tp const&, _Tp const&>::value,
      ^                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/b/build/slave/ClangToTiOS/build/src/third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/__config:1036:20: note: expanded from macro '_LIBCPP_DIAGNOSE_WARNING'
    __attribute__((diagnose_if(__VA_ARGS__, "warning")))
                   ^           ~~~~~~~~~~~
1 error generated.

This was introduced a week ago in r291969.
 

Comment 1 by thakis@chromium.org, Jan 23 2017

turning it off in https://codereview.chromium.org/2649163002/
Project Member

Comment 2 by bugdroid1@chromium.org, Jan 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/59c02c3aa8f983c2adecb654bd71e2ada5fb4d8e

commit 59c02c3aa8f983c2adecb654bd71e2ada5fb4d8e
Author: thakis <thakis@chromium.org>
Date: Mon Jan 23 17:45:48 2017

clang tot: Disable -Wuser-defined-warnings

BUG= 683349 
TBR=hans

Review-Url: https://codereview.chromium.org/2649163002
Cr-Commit-Position: refs/heads/master@{#445401}

[modify] https://crrev.com/59c02c3aa8f983c2adecb654bd71e2ada5fb4d8e/build/config/compiler/BUILD.gn

Comment 3 by pkl@chromium.org, Jan 23 2017

Status: Assigned (was: Untriaged)

Comment 4 by krasin@chromium.org, Jan 26 2017

Cc: krasin@chromium.org
Owner: ----
Status: Available (was: Assigned)
Unassigning from myself: I don't have an access to a MacOS machine anyway.
Project Member

Comment 5 by sheriffbot@chromium.org, Feb 12 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: justincohen@chromium.org
Status: Assigned (was: Untriaged)
This was over a year ago, and I haven't run into any issues like this in a while.  Justin, could you verify that this no longer reproduces?
Cc: justincohen@chromium.org
Owner: thakis@chromium.org
thakis@ is there anything else to do here after disabling user-defined-warnings? 
Owner: tikuta@chromium.org
Status: Started (was: Assigned)
I'm interested in this.
Project Member

Comment 10 by bugdroid1@chromium.org, Oct 17

The following revision refers to this bug:
  https://chromium.googlesource.com/v8/v8.git/+/6f218934448da30cabb3f3150c611554987f603a

commit 6f218934448da30cabb3f3150c611554987f603a
Author: Takuto Ikuta <tikuta@chromium.org>
Date: Wed Oct 17 11:40:50 2018

Specify const for operator() in LiveRangeOrdering

This is a preparation CL to remove -Wno-user-defined-warnings warning suppression.

Bug:  chromium:683349 
Change-Id: If883c24ebac66292329abaf01c5d328bfd51c5c9
Reviewed-on: https://chromium-review.googlesource.com/c/1286391
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56727}
[modify] https://crrev.com/6f218934448da30cabb3f3150c611554987f603a/src/compiler/register-allocator.h

Project Member

Comment 11 by bugdroid1@chromium.org, Oct 19

Project Member

Comment 12 by bugdroid1@chromium.org, Nov 7

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3c61076353affd2a8f7df40388e8568cf17299d3

commit 3c61076353affd2a8f7df40388e8568cf17299d3
Author: Takuto Ikuta <tikuta@chromium.org>
Date: Wed Nov 07 01:03:00 2018

Roll src/third_party/sfntly/src/ 280414815..b55ff303e (3 commits)

https://chromium.googlesource.com/external/github.com/googlei18n/sfntly.git/+log/2804148152d2..b55ff303ea2f

$ git log 280414815..b55ff303e --date=short --no-merges --format='%ad %ae %s'
2018-10-17 tikuta Specify const for operator()
2018-09-27 nyshadhr Add tests for EOT's 255SHORT encoding
2018-09-26 nyshadhr Fix encoding for EOT's 255SHORT

Created with:
  roll-dep src/third_party/sfntly/src

Also removed unnecessary flag.

TBR: thestig@chromium.org
Bug:  683349 
Change-Id: I0a00b965126ad4ff10855ae24835706c397dc8af
Reviewed-on: https://chromium-review.googlesource.com/c/1320989
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605902}
[modify] https://crrev.com/3c61076353affd2a8f7df40388e8568cf17299d3/DEPS
[modify] https://crrev.com/3c61076353affd2a8f7df40388e8568cf17299d3/third_party/sfntly/BUILD.gn
[modify] https://crrev.com/3c61076353affd2a8f7df40388e8568cf17299d3/third_party/sfntly/README.chromium

Status: Fixed (was: Started)

Sign in to add a comment