From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20118 invoked by alias); 6 Jun 2008 14:51:28 -0000 Received: (qmail 20103 invoked by uid 22791); 6 Jun 2008 14:51:27 -0000 X-Spam-Check-By: sourceware.org Received: from el-out-1112.google.com (HELO el-out-1112.google.com) (209.85.162.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jun 2008 14:51:02 +0000 Received: by el-out-1112.google.com with SMTP id m34so133242ele.16 for ; Fri, 06 Jun 2008 07:51:00 -0700 (PDT) Received: by 10.114.158.1 with SMTP id g1mr160452wae.203.1212763859525; Fri, 06 Jun 2008 07:50:59 -0700 (PDT) Received: by 10.114.109.17 with HTTP; Fri, 6 Jun 2008 07:50:59 -0700 (PDT) Message-ID: Date: Fri, 06 Jun 2008 14:51:00 -0000 From: "Nick England" To: gcc-help@gcc.gnu.org Subject: Compiling instructions unclear gcc-4.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 2008-06/txt/msg00069.txt.bz2 the instructions on http://gcc.gnu.org/install/configure.html say: To configure GCC: % mkdir objdir % cd objdir % srcdir/configure [options] [target] However, in the insctutions on building it only says to do a make. If I do a make in objdir I get "make: *** No targets specified and no makefile found. Stop." If I do a make in the srcdir then I am building in the srcdir, which the instructions advise against. What is the correct command to run to build GCC in a non-src dir? gcc-4.3.0: (Incidently I get an error message when building in the src dir Many similar lines saying functions are mulitpliy defined .... libs/in_unpack_generic.o: In function `putc_unlocked': /usr/include/bits/stdio.h:87: multiple definition of `putc_unlocked' .libs/backtrace.o:/usr/include/bits/stdio.h:87: first defined here .libs/in_unpack_generic.o: In function `fputc_unlocked': /usr/include/bits/stdio.h:77: multiple definition of `fputc_unlocked' .libs/backtrace.o:/usr/include/bits/stdio.h:77: first defined here .libs/in_unpack_generic.o: In function `putchar': /usr/include/bits/stdio.h:68: multiple definition of `putchar' .libs/backtrace.o:/usr/include/bits/stdio.h:68: first defined here .libs/in_unpack_generic.o: In function `getchar_unlocked': /usr/include/bits/stdio.h:59: multiple definition of `getchar_unlocked' .libs/backtrace.o:/usr/include/bits/stdio.h:59: first defined here .libs/in_unpack_generic.o: In function `getc_unlocked': /usr/include/bits/stdio.h:52: multiple definition of `getc_unlocked' .libs/backtrace.o:/usr/include/bits/stdio.h:52: first defined here .libs/in_unpack_generic.o: In function `getchar': /usr/include/bits/stdio.h:43: multiple definition of `getchar' .libs/backtrace.o:/usr/include/bits/stdio.h:43: first defined here .libs/in_unpack_generic.o: In function `vprintf': /usr/include/bits/stdio.h:36: multiple definition of `vprintf' .libs/backtrace.o:/usr/include/bits/stdio.h:36: first defined here collect2: ld returned 1 exit status make[3]: *** [libgfortran.la] Error 1 ) Help would be apprechiated!