[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] How to avoid this error "bits/predefs.h No such file or directory" when compiling XEN?

On Thu, Apr 26, 2012 at 2:09 PM, wang zhihao <accept.acm@xxxxxxxxx> wrote:
> Hi , All
> I try to compile xen-unstable.hg(25249:a4e7fce6ee2b) from source repo on
> ubuntu11.10-amd64. It complains "/usr/include/features.h:323:26 fatal error:
> bits/predefs.h No such file or directory". I wonder it's a thing related to
> 32bits and 64bits. How to solve this problem? Thank you.

I had the same problem; it appears that tgcbios needs a 32-bit libc to
compile in 32 bits (full error message below).  This solved it for me:

sudo apt-get install libc6-dev-i386

We should probably add that to one of the compile-time checks.  Roger,
do you have time to add that in?

Wang: BTW, in the future it's helpful to include more of the
compilation than just the final error message.


make -C tcgbios all
make[10]: Entering directory
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g
-fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wdeclaration-after-statement -Wno-unused-but-set-variable
-D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls
-mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions
-fno-builtin -msoft-float
-I.. -I../..  -c -o tcgbios.o tcgbios.c
In file included from /usr/include/stdint.h:26:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stdint.h:3,
                 from ../rombios_compat.h:8,
                 from tcgbios.c:24:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such
file or directory
compilation terminated.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.