public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building and Installing gcc-4.7.0 on Ubuntu 12.04
@ 2012-06-06  5:49 Anup Ghatage
  2012-06-06  8:00 ` Jonathan Wakely
  0 siblings, 1 reply; 7+ messages in thread
From: Anup Ghatage @ 2012-06-06  5:49 UTC (permalink / raw)
  To: gcc-help

Hello,

I installed a mint Ubuntu 12.04, ran the updates and then downloaded
the tar for gcc-4.7.0.

Untar'ed it.
./configure
make -j4

then it showed this:
make[4]: Leaving directory `/home/UserPC/Downloads/gcc-4.
7.0/i686-pc-linux-gnu/libgcc'
In file included from /usr/include/stdio.h:28:0,
                 from ../.././libgcc/../gcc/tsystem.h:88,
                 from ../.././libgcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
file or directory
compilation terminated.
make[3]: *** [_negdi2.o] Error 1
In file included from /usr/include/stdio.h:28:0,
                 from ../.././libgcc/../gcc/tsystem.h:88,
                 from ../.././libgcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
file or directory
compilation terminated.
make[3]: *** [_lshrdi3.o] Error 1
make[3]: Leaving directory
`/home/UserPC/Downloads/gcc-4.7.0/i686-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/UserPC/Downloads/gcc-4.7.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/UserPC/Downloads/gcc-4.7.0'
make: *** [all] Error 2
UserPC@UserPC-desktop:~/Downloads/gcc-4.7.0$

I did some background search, the predefs.h error seems to occur when
trying to install a 32 bit binary on a 64 bit Linux.
But My Linux is 32 bit, I double checked that with uname -m, it was i686.

Also something worth mentioning, when I installed GMP from source, its
configuration file showed a waring saying : gmp.h and libgmp are of
different versions 5.0.5 and 5.0.2 respectively.

Pretty clueless right now, would really appreciate it if anyone could
help. Also, apologies, if this is a repost.

Regards

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-07  0:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06  5:49 Building and Installing gcc-4.7.0 on Ubuntu 12.04 Anup Ghatage
2012-06-06  8:00 ` Jonathan Wakely
2012-06-06 10:02   ` David Given
2012-06-06 12:17     ` Jonathan Wakely
2012-06-06 23:34       ` David Given
2012-06-07  0:00         ` Jonathan Wakely
2012-06-07  0:04           ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).