Rockbox

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bugs
  • Category Infrastructure → Build environment
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by Stefan Ott - 2019-11-04

FS#13180 - Cross-compiling the toolchain fails with GCC 9.2

Trying to cross-compile GCC for the ipod with GCC 9.2 I keep running into errors:

In file included from ../../gcc-4.4.4/gcc/diagnostic.h:25,

               from ../../gcc-4.4.4/gcc/tree-mudflap.c:43:

../../gcc-4.4.4/gcc/pretty-print.h: At top level:
../../gcc-4.4.4/gcc/pretty-print.h:310:6: error: ‘cgraph_node’ is not defined as a type

310 |      ATTRIBUTE_GCC_PPDIAG(2,3);
    |      ^~~~~~~~~~~~~~~~~~~~

This would seem to be the same issue as the one described on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90677

The attached patch against GCC seems to fix the problem for me.

Admin
Solomon Peachy commented on 2020-04-09 15:40

THis might help GCC, but the binutils build is still broken.

Stefan Ott commented on 2020-04-09 15:43

I haven't had any issues building binutils, only GCC

Admin
Solomon Peachy commented on 2020-07-03 22:19

Looking at the upstream ticket it's apparently fixed in GCC 9.3+ and 10.1+ …

With git master (905e19905) I'm able to successfully build all toolchains on a gcc 10.1-equipped Fedora 32 system. What's the distro you're using? Will they update to gcc 9.3?

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing