https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77684
--- Comment #4 from Andi Kleen <andi-gcc at firstfloor dot org> --- Thanks for tracing that down. So perf runs out of memory for the locked trace buffers Increasing the limit is a good workaround ulimit -l may also work, but also needs root. We could just pass a smaller -m value to perf Does it work when you change the last line in config/i386/gcc-auto-profile to add -m 128k (or possibly other values, have to be power of two)