Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-8483

riscv: Parallel compilation with GCC sometimes fails with ICE

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • None
    • None

      Sometimes, when compiling with more than one job on my hifive unmatched board with gcc 9.2.0 I get an ICE (see attached build log):

      malloc(): unaligned tcache chunk detected

      So far it doesn't happen with all packages, but only with some, and even then it's doesn't always happen with each package where it does happen.
      The only two packages I've noticed it happen every time are glibc and gcc itself.

      My temporary workaround is to use ebuild /path/to/ebuild merge to finish emerging the failing package without starting over. I could set MAKEOPTS="-j1" for those packages, as well, but I would consider that to be the last resort if there's no fix to be found in the intermediate future.

      My first idea would be to compile Gentoo's GCC 9.3.0 and see if it also occurs there.

            calrama calrama
            calrama calrama
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: