Closed Bug 1514781 (build-gcc-9) Opened 4 years ago Closed 1 year ago
[meta] Build with gcc 9
+++ 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)
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"
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.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.