Install-gcc Error 2
Contents |
here for a quick overview of the site Help Center Detailed stage1-bubble error 2 gcc answers to any questions you might have Meta Discuss the
Gcc Make Error 2
workings and policies of this site About Us Learn more about Stack Overflow the
Recipe For Target 'stage1-bubble' Failed
company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Configure: Error: C++ Compiler Missing Or Inoperational
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 Unable to install GCC-4.9.0 up vote 0 down vote favorite I am trying to install gcc-4.9.0 locally. I gave the following how to install gcc on linux command for configuring the install LD_LIBRARY_PATH=/home/user/gmp-6.0.0/lib:/home/user/mpfr-3.1.2/lib:/home/user/mpc- 1.0.2/lib ./configure --prefix=/home/user/gcc-4.9.0-latest --with- gmp=/home/user/gmp-6.0.0 --with-mpfr=/home/user/mpfr-3.1.2 --with- mpc=/home/user/mpc-1.0.2 --enable-languages=c,c++ --disable-multilib It configured without giving any errors and then when i do make install, i get the following error gcc-4.9.0> make install make[1]: Entering directory `/home/user/softwares/gcc-4.9.0/build/gcc- 4.9.0' /bin/sh ./mkinstalldirs /home/user/gcc-4.9.0-latest /home/user/gcc-4.9.0-latest /bin/sh: line 0: cd: host-x86_64-unknown-linux-gnu/fixincludes: No such file or directory make[1]: *** [install-fixincludes] Error 1 make[1]: Leaving directory `/home/user/software/gcc-4.9.0/build/gcc-4.9.0' make: *** [install] Error 2 Can anyone help me solve this? The machine is running RHEL 4 and the linux kernel is 2.6.9-67.ELsmp EDIT: I found errors in the config.log file configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc conftest.cpp >&5 g++: unrecognized option `-static-libstdc++' conftest.cpp:11:2: #error -static-libstdc++ not implemented configure:4987: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE
filtered due to spam. Bug48378 - gcc 4.6.0 fails to build from source Summary: gcc 4.6.0 fails to build install gcc from source from source Status: RESOLVED WORKSFORME Alias: None Product: gcc Classification: Unclassified Component: other gcc download (show other bugs) Version: 4.6.0 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: cannot compute suffix of object files Keywords: Depends on: Blocks: Reported: 2011-03-31 00:01 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: http://stackoverflow.com/questions/24488828/unable-to-install-gcc-4-9-0 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 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 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48378 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 correct way. Comment 4 nbi 2011-04-01 03:12:26 UTC Followed the instructions for separate build directory. 'make' fails with the same error as before! Yes, I did a 'make distclean' before 'make'. Comment 5 Jonathan Wakely 2011-04-01 08:36:20 UTC Building in a separate dir has the advantage you don't need to make clean, you just remove the whole dir and start with an empty dir again. I'm not sure 'make dis
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 About Us Learn more about Stack http://unix.stackexchange.com/questions/92862/gcc-make-install-error Overflow the company Business Learn more about hiring developers or posting ads with us https://github.com/Homebrew/homebrew-versions/issues/515 Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted error 2 up and rise to the top gcc make install error [closed] up vote 2 down vote favorite 1 I'm trying to compile gcc with make install to a drive wich is an linux from scrach bulid to a directory called tools and it gives me this: make[1]: Entering directory `/media/BOSS/sources/gcc-build' /bin/bash ../gcc-4.8.1/mkinstalldirs /tools /tools /bin/bash: line 3: cd: ./fixincludes: No such file or directory make[1]: *** [install-fixincludes] Error 1 make[1]: Leaving directory `/media/BOSS/sources/gcc-build' install-gcc error 2 make: *** [install] Error 2 I'm currently compiling it for lfs also I'm in a separate directory on a 32 bit computer on Emmabuntüs Log file soon linux make gcc lfs share|improve this question edited Oct 1 '13 at 1:42 asked Sep 29 '13 at 15:21 mymindstorm 1113 closed as unclear what you're asking by Gilles, slm♦, Anthon, Renan, derobert Sep 30 '13 at 20:35 Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question. Do you have a ./fixincludes directory? –terdon♦ Sep 29 '13 at 15:37 @terdon Yes I do have a ./fixincludes directory –mymindstorm Sep 29 '13 at 16:01 1 In your link, there are so many steps before this one, requiring (possibly) installing packages, and (definitely) entering the commands precisely as is. I bet something went wrong there. –gnometorule Sep 29 '13 at 17:20 @gnometorule all that i have done is made a partition, create 2 folders on it (sources and toools), and make a symbolic link betwen tools and the
Sign in Pricing Blog Support Search GitHub This repository Watch 31 Star 514 Fork 728 Homebrew/homebrew-versions Code Issues 8 Pull requests 6 Projects 0 Pulse Graphs New issue gcc46 failed to build on 10.10 #515 Closed amirahaile opened this Issue Sep 4, 2014 · 56 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 25 participants and others amirahaile commented Sep 4, 2014 First, my gist is here. I'm trying to install Ruby via rvm (my system's is 2.1.1 but I'm trying to install others). When I run rvm requirements I get Error running 'requirements_osx_brew_libs_install gcc46'. I've tried to install gcc46 manually with brew install gcc46 but keep getting: ==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.6.4/gcc-4.6.4.tar.bz2 Already downloaded: /Library/Caches/Homebrew/gcc46-4.6.4.tar.bz2 ==> ../configure --build=x86_64-apple-darwin14.0.0 --prefix=/usr/local/Cellar/gcc46/4.6.4 - ==> make bootstrap make[3]: *** Waiting for unfinished jobs.... rm gcc.pod make[2]: *** [all-stage1-gcc] Error 2 make[1]: *** [stage1-bubble] Error 2 make: *** [bootstrap] Error 2 I don't have XCode as an app on my computer (I'm running OS X Yosemite, so XCode 5 doesn't work and I don't have access to download XCode 6). However, when I run xcode-select -p I get /Library/Developer/CommandLineTools which means I have CLT, right? And I think it's up to date… jacknagel commented Sep 4, 2014 Can you run brew gist-logs gcc46 --config --doctor and post the link? Thanks. amirahaile commented Sep 4, 2014 Sure thing. https://gist.github.com/99da34c0aeef3b4e4439 mistydemeo commented Sep 4, 2014 /bin/sh: line 1: 98533 Segmentation fault: 11 /private/tmp/gcc46-fC5Vez/gcc-4.6.4/build/./gcc/xgcc -B/private/tmp/gcc46-fC5Vez/gcc-4.6.4/build/./gcc/ -dumpspecs > tmp-specs Looks like the xgcc compiler crashed. Just to check, are you running on a real Mac or a hackintosh? amirahaile commented Sep 4, 2014 The real deal. Macbook Pro, Early 2013 larryisthere commented Sep 5, 2014 I've suffered for days as well. Gcc46 Failed To Install on Yosemite 10.10 PB 2 https://gist.github.com/larryisthere/21797245bee523aa8fb7 Homebrew/legacy-homebrew#31918 jk779 commented Sep 5, 2014 can confirm on 10.10 PB2, https://gist.github.com/jk779/58e6d8f01ac0748f3ca9 mistydemeo referenced this issue in Homebrew/legacy-homebrew Sep 5, 2014 Closed Gcc46 Failed To Install on Yosemite 10.10 PB 2