Error Bits/predefs.h No Such File
Contents |
here for a quick overview of the site Help Center Detailed bits/predefs.h missing answers to any questions you might have Meta Discuss
/usr/include/features.h:324:26: Fatal Error: Bits/predefs.h: No Such File Or Directory
the workings and policies of this site About Us Learn more about Stack Overflow the
Fatal Error: Features.h: No Such File Or Directory
company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Cannot Find Crti.o: No Such File Or Directory
Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gcc cannot find bits/predefs.h on i686 up vote 68 down vote favorite 18 Okay, so, I switched from ubuntu 12.04 bits/c++config.h no such file or directory 64-bit to 32-bit and installed build-essential. I then compiled and installed GMP-5.0.5, MPFR-3.1.1, MPC-1.0, ISL-0.10 and CLOOG-0.17.0. I checked out a copy of the main gcc trunk and attempted to build it with the following configure line (from a separate directory): ../svnsrc/configure --prefix=/usr/GCC/svn --enable-__cxa_atexit --with-plugin-ld=/usr/bin/ld.gold --enable-threads=posix --enable-werror --enable-build-with-cxx --with-gmp=/usr/GCC/prereq/svn --with-mpfr=/usr/GCC/prereq/svn --with-mpc=/usr/GCC/prereq/svn --with-isl=/usr/GCC/prereq/svn --with-cloog=/usr/GCC/prereq/svn --enable-languages=c,c++ Configure ran fine and so I ran make && make check. This ran fine for a while, but then it failed with the following error: /home/matt/GCC/svnbuild/./gcc/xgcc -B/home/matt/GCC/svnbuild/./gcc/ -B/usr/GCC/svn/i686-pc-linux-gnu/bin/ -B/usr/GCC/svn/i686-pc-linux-gnu/lib/ -isystem /usr/GCC/svn/i686-pc-linux-gnu/include -isystem /usr/GCC/svn/i686-pc-linux-gnu/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -I. -I. -I../.././gcc -I../../../svnsrc/libgcc -I../../../svnsrc/libgcc/. -I../../../svnsrc/libgcc/../gcc -I../../../svnsrc/libgcc/../include -I../../../svnsrc/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../svnsrc/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS In file included from /usr/include/stdio.h:28:0, from ../../../svnsrc/libgcc/../gcc/tsystem.h:88, from ../../../svnsrc/libgcc/libgcc2.c:29: /usr/
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have cannot find lstdc++ Meta Discuss the workings and policies of this site About Us Learn gcc-multilib more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a http://stackoverflow.com/questions/12591629/gcc-cannot-find-bits-predefs-h-on-i686 minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Trouble compiling a 32 bit binary on a 64 bit machine up vote 6 down vote favorite 2 I'm trying to compile a c program as a 32 bit binary instead of http://askubuntu.com/questions/91909/trouble-compiling-a-32-bit-binary-on-a-64-bit-machine 64 bit. I started by just adding -m32 and got some errors. Googling around a little I came across a note to install ia32-libs. Running apt-get install ia32-libs resulted in a notification taht it was already installed and at the newest version. There is a chain of libraries each one including the next until it fails: /usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory It seems to be including 32 bit versions of the other includes /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/ ... What am I missing? 32-bit gcc share|improve this question asked Jan 1 '12 at 8:34 Matt 1911311 add a comment| 2 Answers 2 active oldest votes up vote 23 down vote accepted Lekensteyn's answer conflicted with lots of existing packages for me (on 64-bit oneiric). I instead did this, which pulled in the libc6-dev-i386 package: apt-get install gcc-multilib share|improve this answer answered Feb 21 '12 at 5:27 alberge 59639 1 Should be the accepted answer. –leighman Sep 28 '13 at 20:03 add a comment| Did you find this question interesting? Try our ne