I'm trying to Linux From Scratch, I'm compiling GCC.
I get this error:

In file included from /usr/include/stdio.h:28:0,
from ../.././gcc-4.7.0/libgcc/../gcc/tsystem.h:88,
from ../.././gcc-4.7.0/libgcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.

I don't know how to fix this. I'm using GCC version 4.7.0
Anyone knows how to fix this?

2 Answers 2


On x86_64 with debian / ubuntu / mint:

apt-get install gcc-multilib

This fixed it for me.


If you are building on a 64-bit machine, ensure you also have the 32-bit libraries (libc, in this case) available.

Something like sudo apt-get install libc6-dev-i386 should get you what you need.

Source: "[SOLVED] Missing predefs.h" from the Ubuntu forums.

  • No, 32bit, already had.
    – Vi Pau
    Jun 4, 2012 at 9:21
  • This no longer applies in Ubuntu 12.04 - the above answer works though.
    – e_x_p
    Sep 19, 2012 at 23:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .