From: Anup Ghatage <ghatage@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Building and Installing gcc-4.7.0 on Ubuntu 12.04
Date: Wed, 06 Jun 2012 05:49:00 -0000 [thread overview]
Message-ID: <CAENQVVBfOVrSiT2yEyCPOKBA7Va5MjUDxaY8=6CdTM-sv18fkg@mail.gmail.com> (raw)
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
next reply other threads:[~2012-06-06 5:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 5:49 Anup Ghatage [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAENQVVBfOVrSiT2yEyCPOKBA7Va5MjUDxaY8=6CdTM-sv18fkg@mail.gmail.com' \
--to=ghatage@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).