Closed
Bug 1666108
Opened 3 years ago
Closed 2 years ago
GCC9 cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox84 fixed)
RESOLVED
FIXED
84 Branch
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: smurfd, Assigned: sfink)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Hey
So this below is my mozconfig file
export CC="/usr/bin/gcc-9"
export CXX="/usr/bin/g++-9"
mk_add_options PYTHON=/usr/bin/python3.6
ac_add_options --disable-elf-hack
# Debug builds
ac_add_options --enable-debug
ac_add_options --enable-debug-symbols
# Stricter builds
ac_add_options --enable-warnings-as-errors
# To fix _FORTIFY_SOURCE issues
ac_add_options --disable-hardening
#ac_add_options --enable-optimize
Steps to reproduce : Build with GCC9 (atleast on linux)
Actual results :
I receive ALOT(about 1600 warnings of a fresh m-c build) of these warnings :
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
Expected results : No warnings
Workaround : Seems that if i change to GCC8 i will not receive these warnings.
Comment 1•3 years ago
|
||
Regressed by: Wimplicit-function-declaration
Updated•3 years ago
|
Has Regression Range: --- → yes
Comment 2•3 years ago
|
||
note: it breaks the build with --enable-warnings-as-errors
To make it build, I am using this ugly workaround:
sed -i -e "s|-Wno-unreachable-code-return||g" security/sandbox/linux/moz.build
As it is a bug in gcc, it doesn't break firefox (it is still possible to build it), I will just close this bug.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 3•2 years ago
|
||
The hazard build logs are getting spammed with this, so I would prefer to fix it.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee | ||
Updated•2 years ago
|
Assignee: nobody → sphink
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 4•2 years ago
|
||
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ed74fab9add Eliminate -Wimplicit-function-declaration warnings r=firefox-build-system-reviewers,glandium
Comment 6•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago → 2 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Updated•2 years ago
|
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•