From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31659 invoked by alias); 14 Sep 2007 13:35:39 -0000 Received: (qmail 31651 invoked by uid 22791); 14 Sep 2007 13:35:38 -0000 X-Spam-Check-By: sourceware.org Received: from smtp102.sbc.mail.re2.yahoo.com (HELO smtp102.sbc.mail.re2.yahoo.com) (68.142.229.103) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 14 Sep 2007 13:35:33 +0000 Received: (qmail 91529 invoked from network); 14 Sep 2007 13:35:31 -0000 Received: from unknown (HELO ?68.122.13.33?) (timothyprince@sbcglobal.net@68.122.13.33 with plain) by smtp102.sbc.mail.re2.yahoo.com with SMTP; 14 Sep 2007 13:35:31 -0000 X-YMail-OSG: c9g8JyYVM1liLiy.9DoMHCBtMiZmWk_S.hMDqXG8K.lnR4Mxbj8Gy3VvbFDWOpsLFdWOw97w1Sz8gUZl46CqtbqB9s4UvwTSLsmlCwqTh24VlZgWb7PxTUPLmumDCel6_QDnKKkQdqUQBw-- Message-ID: <46EA8E25.9090508@computer.org> Date: Fri, 14 Sep 2007 15:20:00 -0000 From: Tim Prince User-Agent: Thunderbird 2.0.0.4 (X11/20070613) MIME-Version: 1.0 To: IVAN ANGELOV CC: gcc-help@gcc.gnu.org Subject: Re: C++ compiler cannot create executables References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-09/txt/msg00172.txt.bz2 IVAN ANGELOV wrote: > ---------- Forwarded message ---------- > From: IVAN ANGELOV > Date: 14.09.2007 10:11 > Subject: C++ compiler cannot create executables > To: gcc-help@gcc.gnu.org > > Yesterday (13.09.2007) I downloaded the full GCC trunk from svn. It > was around 300 mb in size. I followed the installation instructions as > much as I could. > I made objdir on my desktop and I ran : > /home/ivan/Desktop/gcc/configure --prefix=/usr/local/gcc/gcc- 4.3.0 > --enable-shared --enable-threads=posix --enable-tls > --with-gmp=/usr/lib --with-mpfr=/usr/lib > > then I ran make bootsrap and went to bed. I didn't have enough > patience to wait for the tests make -k check process and I commited > make install :) > then I symbolically linked gcc , cpp , g++ c++ gccbug gcj gcov > gfortran from :/usr/local/gcc/gcc-4.3.0/bin to /usr/bin > then I simply tried to ./configure a piece of code and the shell said: > > checking for C++ compiler default output file name... configure: > error: C++ compiler cannot create executables > See `config.log' for more details. > > The config.log points out: > > configure:2113: g++ conftest.cc >&5 > /usr/bin/ld: crtbegin.o: No such file: No such file or directory The part about symlink surely wasn't in the installation instructions. You don't want to set up a build in such a way that your original gcc can be trashed. Test your new compiler in a separate installation from the original, or before installing. Then, if you want to replace the compiler in /usr/bin, reconfigure with -prefix=usr and install.