Open Bug 1516758 Opened 6 years ago Updated 2 years ago

-Wodr: C++ One Definition Rule violations in Firefox

Categories

(Firefox Build System :: General: Unsupported Platforms, defect, P5)

64 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: jh, Unassigned)

References

Details

Attachments

(1 file)

Attached file odr.txt (deleted) —
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 Steps to reproduce: I built Firefox with GCC 8 and LTO Actual results: I got warnings about ODR vilations Expected results: There should be no warnigs
Blocks: 1455279
Here is the kind of warnings: /aux/hubicka/firefox-2018/release/security/ct/CTLogVerifier.h:29:7: warning: type ‘struct CTLogVerifier’ violates the C++ One Definition Rule [-Wodr]
Blocks: build-gcc-8
No longer blocks: 1455279
Summary: C++ One Definition Rule violations in Firefox → -Wodr: C++ One Definition Rule violations in Firefox
Component: Untriaged → General: Unsupported Platforms
Product: Firefox → Firefox Build System
Note that the log I attached is produced by GCC9 where I made the warning hopefully more understandable. Some of issues are easy to fix because they are caused by misplaced forward declarations that should be in proper name-space. I will try to get around preparing patch for them.
Blocks: build-gcc-9
No longer blocks: build-gcc-8
Priority: -- → P5

Hi! I am new here, how can I do to build Firefox with GCC 8 and LTO to replicate the warning?

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: