Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 11 down vote accepted

On x86_64 with debian / ubuntu / mint:

apt-get install gcc-multilib

This fixed it for me.

share|improve this answer

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.

share|improve this answer
    
No, 32bit, already had. –  TheGatorade Jun 4 '12 at 9:21
    
This no longer applies in Ubuntu 12.04 - the above answer works though. –  e_x_p Sep 19 '12 at 23:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.