From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26112 invoked by alias); 20 Dec 2012 15:34:22 -0000 Received: (qmail 26057 invoked by uid 22791); 20 Dec 2012 15:34:21 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from tetra.codeconfidence.com (HELO tetra.codeconfidence.com) (94.229.66.225) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Dec 2012 15:34:07 +0000 Received: from cog.dallaway.org.uk (cpc1-cmbg10-0-0-cust34.5-4.cable.virginmedia.com [81.102.132.35]) by tetra.codeconfidence.com (Postfix) with ESMTP id 86F3A234C035; Thu, 20 Dec 2012 15:34:06 +0000 (GMT) Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id qBKFY6AH030673; Thu, 20 Dec 2012 15:34:06 GMT Message-ID: <50D32FEE.8070309@dallaway.org.uk> Date: Thu, 20 Dec 2012 15:34:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121120 Thunderbird/10.0.11 MIME-Version: 1.0 To: Michael Jones CC: eCos Discussion References: <50D2CCFE.4030800@dallaway.org.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Eclipse / CDT without Makefile Project X-SW-Source: 2012-12/txt/msg00045.txt.bz2 Mike On 20/12/12 15:15, Michael Jones wrote: > Thanks, now it is closer. I have provided the output showing the final failure: > > /opt/ecos/gnutools/arm-eabi/lib/gcc/arm-eabi/4.6.3/../../../../arm-eabi/bin/ld: cannot find crt0.o: No such file or directory > /opt/ecos/gnutools/arm-eabi/lib/gcc/arm-eabi/4.6.3/../../../../arm-eabi/bin/ld: cannot find -lg > /opt/ecos/gnutools/arm-eabi/lib/gcc/arm-eabi/4.6.3/../../../../arm-eabi/bin/ld: cannot find -lc > collect2: ld returned 1 exit status > make: *** [Sources/hello.o] Error 1 > > 07:56:20 Build Finished (took 929ms) > > What is interesting is that even with the -L option, it does not show up in the compile output. > > The rule it makes in the makefile is > > hello_world: $(OBJS) $(USER_OBJS) > @echo 'Building target: $@' > @echo 'Invoking: Cross GCC Linker' > arm-eabi-gcc -nostartfiles -nodefaultlibs -nostdlib -static -mcpu=cortex-m3 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -v -nostdlib -L../../ecos/TWR-K60D100M_install/lib -T../../ecos/TWR-K60D100M_install/lib/target.ld -o "hello_world" $(OBJS) $(USER_OBJS) $(LIBS) > @echo 'Finished building target: $@' > @echo ' ' > > Somehow it does not get passed on to the linker. I believe your build is not getting as far as the above makefile rule. You are missing the "-c" flag on your _compilation_ line, so GCC is attempting to both compile and link (using a default linker script) the first time it is invoked. I hope this helps... John Dallaway eCos maintainer http://www.dallaway.org.uk/john -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss