Gcc Install Error 2
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site
Gcc Make Error 2
About Us Learn more about Stack Overflow the company Business Learn more about stage1-bubble error 2 gcc hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
How To Install Gcc On Linux
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 Make exits with “Error 2” install gcc from source when trying to install gcc-4.8.1 up vote 9 down vote favorite 4 I'm trying to install gcc-4.8.1 on an AWS ec2 "Other Linux" distribution. I downloaded gcc-4.6.2.tar.gz and then followed these instructions under the 'Configuration' heading from http://gcc.gnu.org/wiki/InstallingGCC (modified for 4.8.1 instead of 4.6.2): tar xzf gcc-4.8.1.tar.gz cd gcc-4.8.1 ./contrib/download_prerequisites cd .. mkdir objdir cd objdir $PWD/../gcc-4.8.1/configure --prefix=$HOME/gcc-4.8.1 make make install When I run 'make', recipe for target 'stage1-bubble' failed the program runs for some time but eventually exits with this error: build/genattrtab /home/ec2-user/gcc-4.8.1_install/objdir/../gcc-4.8.1/gcc/config/i386/i386.md insn-conditions.md \ -Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c make[3]: *** [s-attrtab] Killed make[3]: Leaving directory `/home/ec2-user/gcc-4.8.1_install/objdir/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/ec2-user/gcc-4.8.1_install/objdir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/ec2-user/gcc-4.8.1_install/objdir' make: *** [all] Error 2 Can anyone shed any insight into why this might be happening? I don't understand the error message at all. I'm building it with gcc4.6.1 and /home/ec2-user/gcc-4.8.1_install is the directory I ran the commands from within. gcc amazon-ec2 makefile ec2-ami gcc4.8 share|improve this question asked Aug 22 '13 at 19:51 MattG 1,1042927 add a comment| 1 Answer 1 active oldest votes up vote 18 down vote accepted I was doing a few things wrong. First, I didn't have the latest binutils installed. This particular error, however, was the OOM killer at work. The peak RAM used during installation is greater than that of EC2 micro instance. Use a larger instance or use swap: SWAP=/tmp/swap dd if=/dev/zero of=$SWAP bs=1M count=500 mkswap $SWAP sudo swapon $SWAP This will swap in 500 MB, which was ample for my installation. share|improve this answer edited Oct 11 '13 at 12:13 Tshe
filtered due to spam. Bug48378 - gcc 4.6.0
Configure: Error: C++ Compiler Missing Or Inoperational
fails to build from source Summary: gcc 4.6.0 fails to cannot compute suffix of object files build from source Status: RESOLVED WORKSFORME Alias: None Product: gcc Classification: Unclassified Component: other (show
Cygwin
other bugs) Version: 4.6.0 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2011-03-31 00:01 http://stackoverflow.com/questions/18389612/make-exits-with-error-2-when-trying-to-install-gcc-4-8-1 UTC by nbi Modified: 2011-04-03 02:48 UTC (History) CC List: 0 users See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: 2011-03-31 09:54:09 Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48378 bug. Description nbi 2011-03-31 00:01:56 UTC Obtained http://ftp.de.debian.org/debian/pool/main/g/gcc-4.6/gcc-4.6_4.6.0.orig.tar.gz from http://packages.debian.org/sid/gcc-4.6 Prerequisite libraries (gmp, mpfr, mpc) build ok without any problems. './configure' succeeds for gcc-4.6 'make' fails with: make[3]: Entering directory `/usr/src/gcc-4.6-4.6.0.orig/gcc-4.6.0/host-x86_64-unknown-linux-gnu/gcc' build/genhooks \ ../.././gcc/doc/tm.texi.in > tmp-tm.texi (null): No place specified to document hook TARGET_ASM_OPEN_PAREN make[3]: *** [s-tm-texi] Error 1 make[3]: Leaving directory `/usr/src/gcc-4.6-4.6.0.orig/gcc-4.6.0/host-x86_64-unknown-linux-gnu/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/usr/src/gcc-4.6-4.6.0.orig/gcc-4.6.0' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/usr/src/gcc-4.6-4.6.0.orig/gcc-4.6.0' make: *** [all] Error 2 How can this be corrected? Thanks. Comment 1 Richard Biener 2011-03-31 09:54:09 UTC Do not build in the source directory. Comment 2 Jonathan Wakely 2011-03-31 10:38:30 UTC this is documented at http://gcc.gnu.org/install/configure.html and http://gcc.gnu.org/wiki/FAQ#configure Comment 3 nbi 2011-03-31 17:35:44 UTC My apologies, I should know better to RTFM for something of GCC's complexity. Have gotten too used to packages for which only in place configure & make are neccessary. Will update upon building the co
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin https://ubuntuforums.org/showthread.php?t=2274086 Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community error 2 Other Discussion and Support Other OS Support and Projects Other Operating Systems MINT [SOLVED] LFS 7.7 - Error when building GCC first pass Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 3 gcc install error of 3 Thread: LFS 7.7 - Error when building GCC first pass Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode April 17th, 2015 #1 yuri8 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Apr 2015 Beans 2 LFS 7.7 - Error when building GCC first pass I posted this here already: http://www.linuxquestions.org/questi...ss-4175540009/ But I'm also posting here because I'm using Linux Mint 17.1 to compile it. While building a LFS system, I got an error when building GCC. The error was generated by "make" (page 37 - LFS 7.7 systemd). These are the last lines of the output: Code: In file included from ./tm.h:35:0, from ../../gcc-4.9.2/gcc/c-family/c-cppbuiltin.c:23: ../../gcc-4.9.2/gcc/c-family/c-cppbuiltin.c: In function 'void c_cpp_builtins(cpp_reader*)': ../../gcc-4.9.2/gcc/config/i386/linux-common.h:25:39: error: 'GNU_USER_TARGET_OS_CPP_BUILTINS' was not declared in this scope GNU_USER_TARGET_OS_CPP_BUILTINS(); \ ^ ../../gcc-4.9.2/gcc/c-family/c-cppbuiltin.c:1062:3: note: in expansion of macro 'TARGET_OS_CPP_BUILTINS' TARGET_OS_CPP_BUILTINS (); ^ make[2]: *** [c-family/c-cppbuiltin.o] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gc