Gentoo gcc recipe for target ‘s-attrtab’ failed

When updating to gcc-4.9.3 the build was failing with error

Makefile:2129: recipe for target 's-attrtab' failed

The internet was sparse on details, but as it turns out my virtual machine was running out of memory causing the build to crash.
By increasing the amount of memory from 512Mb to 1.5Gb, I was finally able to upgrade gcc.

  1. #1 by andré on March 18, 2016 - 6:02 pm

    The only place where I could find pertinent info about this error. You saved me a couple of hours for sure. Thanks!

  2. #2 by Peter VARGA on July 30, 2016 - 1:55 pm

    Yes, thanks a lot for this post! You helped me a lot. A hint that it was caused by a system problem is the message that is was killed!

  3. #3 by ganto on December 24, 2016 - 3:45 am

    Thanks a lot for the hint from me too.

    Actually, I was seeing the issue for gcc-4.9.4 with 2Gb of memory and MAKEOPTS=”-j3″. If I emerge with less parallelism (MAKEOPTS=”-j2″), I could work around the issue without adjusting the memory size.

(will not be published)