Closed
Bug 1514781
(build-gcc-9)
Opened 6 years ago
Closed 3 years ago
[meta] Build with gcc 9
Categories
(Developer Infrastructure :: Source Code Analysis, task, P3)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Sylvestre, Unassigned)
References
(Depends on 4 open bugs, Blocks 1 open bug)
Details
(Keywords: meta)
+++ This bug was initially created as a clone of Bug #1409283 +++
Using Debian temporary packages available here:
https://people.debian.org/~doko/tmp/gcc-9/
(should be uploaded soon)
Reporter | ||
Updated•6 years ago
|
Alias: build-gcc-9
Reporter | ||
Comment 1•6 years ago
|
||
With the following options (not a perfect list), I am able to build fx with gcc 9:
export CXXFLAGS="-Wno-error=class-memaccess -Wno-error=format-overflow -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-error=attributes -Wno-error=deprecated-copy -Wno-error=pessimizing-move"
export CFLAGS="-Wno-error=class-memaccess -Wno-error=format-overflow -Wno-error=stringop-truncation -Wno-stringop-overflow"
Comment 2•6 years ago
|
||
I have got first LTO/PGO build with GCC 9 working today using the official try server
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e1e0472c3f68e47b9741d7814ef4417759cde24c&selectedJob=219635865
I am now going to resolve some performance issues that shows up without PGO (due to somewhat crazy flags) but with PGO+LTO performance and code size looks good if one replaces Skia by clang version. Skia contains some hand written vector code that is using Clang only extensions http://hubicka.blogspot.com/2018/12/even-more-fun-with-building-and.html
I am in contact with Skia maintainers and plan to port
I ended up disabling following warings in addition to ones disabled for GCC 8:
-Wno-error=stringop-overflow (I reported log to bug 1514782), -Wno-error=deprecated-copy (log reported to bug 1517230), stringop-truncation (log reported to bug 1517225), -Wno-error=pesimizing-move (log reported to bug 1517220) and removed alloc size attribute (bug 1517212), -Wno-error=type-limits.
I realize that some of the bugs are duplicates of bugs here because i did not know of this tracking bug. I will try to merge them and submit some patches where fix is easy.
Reporter | ||
Updated•6 years ago
|
Priority: -- → P3
Reporter | ||
Comment 3•6 years ago
|
||
Update of comment #1:
I need the following to build with gcc 9:
export CXXFLAGS="-Wno-error=class-memaccess -Wno-error=format-overflow -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-error=attributes -Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=type-limits -Wno-error=deprecated"
export CFLAGS="-Wno-error=class-memaccess -Wno-error=format-overflow -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-error=type-limits -Wno-error=deprecated"
Comment 4•5 years ago
|
||
Depends on: 1601707
Reporter | ||
Updated•5 years ago
|
See Also: → build-gcc-10
Reporter | ||
Updated•4 years ago
|
See Also: → build-gcc-11
Reporter | ||
Updated•4 years ago
|
Type: enhancement → task
Reporter | ||
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•