From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26073 invoked by alias); 14 Sep 2007 07:16:01 -0000 Received: (qmail 26059 invoked by uid 22791); 14 Sep 2007 07:16:00 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.175) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Sep 2007 07:15:55 +0000 Received: by ug-out-1314.google.com with SMTP id o38so531716ugd for ; Fri, 14 Sep 2007 00:15:52 -0700 (PDT) Received: by 10.66.249.16 with SMTP id w16mr3472490ugh.1189754152349; Fri, 14 Sep 2007 00:15:52 -0700 (PDT) Received: by 10.66.242.2 with HTTP; Fri, 14 Sep 2007 00:15:52 -0700 (PDT) Message-ID: Date: Fri, 14 Sep 2007 08:54:00 -0000 From: "IVAN ANGELOV" To: gcc-help@gcc.gnu.org Subject: C++ compiler cannot create executables In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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/msg00169.txt.bz2 ---------- 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 collect2: ld returned 1 exit status configure:2116: $? = 1 configure: failed program was: Some information about versions of software: $ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /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 Thread model: posix gcc version 4.3.0 20070913 (experimental) (GCC) $ $ uname -a Linux ubuntu-710 2.6.22.6 #5 PREEMPT Tue Sep 11 20:16:43 EEST 2007 i686 GNU/Linux $ $ dpkg -l libc6 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=====================-=====================-========================================================== ii libc6 2.6.1-1ubuntu4 GNU C Library: Shared libraries $ The distro is ubuntu gutsy gibbon regularly updated and I simply add custom software for a change like gcc now.