Summary: | dev-cpp/abseil-cpp-20211102.0-r2 fails to compile (lto): flag_test.cc:45:1: error: FLAGS_mistyped_string_flag violates the C++ One Definition Rule [-Werror=odr] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | eschwartz93 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2022-08-24 05:30:46 UTC
Created attachment 800692 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: bin/absl_flags_flag_test /var/tmp/portage/dev-cpp/abseil-cpp-20211102.0-r2/work/abseil-cpp-20211102.0/absl/flags/flag_test.cc:45:1: error: ‘FLAGS_mistyped_string_flag’ violates the C++ One Definition Rule [-Werror=odr] // This file is used to test the mismatch of the flag type between definition // and declaration. These are definitions. flag_test.cc contains declarations. #include <string> #include "absl/flags/flag.h" ABSL_FLAG(int, mistyped_int_flag, 0, ""); ABSL_FLAG(std::string, mistyped_string_flag, "", ""); ABSL_FLAG(bool, flag_on_separate_file, false, ""); ABSL_RETIRED_FLAG(bool, retired_flag_on_separate_file, false, ""); And in another file: ABSL_DECLARE_FLAG(int64_t, mistyped_int_flag); ABSL_DECLARE_FLAG(std::vector<std::string>, mistyped_string_flag); This, erm, looks very deliberate. Testsuite checks out. :D |