From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22771 invoked by alias); 7 Jun 2010 13:34:45 -0000 Received: (qmail 22761 invoked by uid 22791); 7 Jun 2010 13:34:44 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from perry.mc0.hosteurope.de (HELO perry.mc0.hosteurope.de) (80.237.138.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Jun 2010 13:34:39 +0000 Received: from server08.webmailer.hosteurope.de ([10.9.0.187]); by mailout.hosteurope.de (perry.mc0.hosteurope.de) running EXperimental Internet Mailer with esmtps (TLSv1:AES256-SHA:256) id 1OLcTd-0003VQ-F3; Mon, 07 Jun 2010 15:34:53 +0200 Received: from nobody by server08.webmailer.hosteurope.de with local (Exim 4.69) (envelope-from ) id 1OLcTN-0002iZ-0G; Mon, 07 Jun 2010 15:34:37 +0200 X-Squirrel-UserHash: EhVcXl1CTQJeRwgeDAw= X-Squirrel-FromHash: XAdeV1tFEQo= Message-ID: In-Reply-To: <285937.98277.qm@web28506.mail.ukl.yahoo.com> References: <961323.52443.qm@web28502.mail.ukl.yahoo.com> <7c01c91296c0beecfe4d6761073628bb-EhVcXl1CTQJeRwgeDAw3AF9BdAJSS1xcXV9EBF41WEVGVFENQV5+BEtdXjBeQ0IHWVxaSF9d-webmailer2@server04.webmailer.hosteurope.de> <285937.98277.qm@web28506.mail.ukl.yahoo.com> Date: Mon, 07 Jun 2010 14:28:00 -0000 Subject: Re: Re : [GCC front end] trying to install sample_fe but fail in make From: "Andi Hellmund" To: "charfi asma" Cc: mail@andihellmund.com, gcc-help@gcc.gnu.org Reply-To: mail@andihellmund.com User-Agent: Host Europe Webmailer/1.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-HE-Access: Yes 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: 2010-06/txt/msg00079.txt.bz2 Hey, > I modified the sfe1.c as you suggested. previous error disappears > but I get 2 other errors generated while calling make bootstrap okay, that's not good. Usually, when working on a front-end, I disable the bootstrapping (using --disable-bootstrap) option to accelerate the build to get the new front-end as fast as possible. Even though the Make-lang.in of sample_fe isn't complete, it should be able to handle the bootstrap case But this error doesn't currenlty look like a problem to the bootstrapping. Which version of GCC are you using for your tests? Still 4.1.0? If you're still using 4.1.0, then the sample_fe might not work/build properly because it was "developped" and tested for 4.4.0. If you face these problems although you switched to 4.4.0, I need to re-check the bootstrapping case. If you however insist on using 4.1.0, I could prepare sample_fe for this version? > /usr/lib/crt1.o: In function `_start': > ../sysdeps/i386/elf/start.S:115: undefined reference to `main' > collect2: ld returned 1 exit status > make[2]: *** [gsfe] Erreur 1 > make[2]: Leaving directory `/home/charfi/Desktop/gccobj/gcc' > make[1]: *** [stage2_build] Erreur 2 > make[1]: Leaving directory `/home/charfi/Desktop/gccobj/gcc' > make: *** [bootstrap] Erreur 2 The linker is missing the 'main' function which isn't - as of 4.4.0 - not provided by the driver code, but by the GCC infrastructure (IIRC, gcc.c). So, I assume that just a different object file is missing for the final linking. Andi