From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31435 invoked by alias); 27 Sep 2012 03:46:25 -0000 Received: (qmail 31426 invoked by uid 22791); 27 Sep 2012 03:46:25 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from outbound001.roc2.bluetie.com (HELO outbound001.roc2.bluetie.com) (208.89.132.141) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Sep 2012 03:46:07 +0000 Received: from web002.roc2.bluetie.com ([10.200.2.96]) by outbound001.roc2.bluetie.com with bizsmtp id 43m61k00224HP3e013m6xE; Wed, 26 Sep 2012 23:46:06 -0400 X-CMAE-OUT-Analysis: v=2.0 cv=D/fF24tj c=1 sm=1 a=AMyyMibY-2kA:10 a=i-wQWBNYtOgA:10 a=IkcTkHD0fZMA:10 a=FmX3VfpdAAAA:8 a=QoHJ8kPOAAAA:8 a=pcYwm1AUEFgA:10 a=pdOJp4Sszx5Znje1nDIA:9 a=QEXdDO2ut3YA:10 a=41l5LDBFByitqw60Fh41mg==:117 X-CMAE-OUT-Score: 0.00 Received: from web002.roc2.bluetie.com (localhost.localdomain [127.0.0.1]) by web002.roc2.bluetie.com (Postfix) with ESMTP id A7B293F0165 for ; Wed, 26 Sep 2012 23:46:06 -0400 (EDT) Message-ID: <20120926234606.868@web002.roc2.bluetie.com> X-HTTP-Received: from kenkyee.excite [64.145.41.114] by web002.roc2.bluetie.com (BlueTie WebMail ); Wed, 26 Sep 2012 23:46:06 -0400 Date: Thu, 27 Sep 2012 03:46:00 -0000 Cc: To: ecos-discuss@ecos.sourceware.org From: "Ken Yee" Content-transfer-encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 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] possible bug in configtool or whatever is generating "target.ld" file X-SW-Source: 2012-09/txt/msg00033.txt.bz2 When you link your app, the symptom is you see this when you link your appl= ication: /home/ecos/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.6.2/../../../../arm-= eabi/bin/ld:target.ld:17: syntax error collect2: ld returned 1 exit status It's a bit of a cryptic error because target.ld is not in the path indicate= d. It's actually in your your ecos_install/lib directory. If you open the target.ld file, you'll see this: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ... SECTIONS { .debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug= _pubnames) } .debug_info 0 : { *(.debug_info) } .debug_abbrev 0 : { *(.debu= g_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_= frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } = .debug_macinfo 0 : { *(.debug_macinfo) } .note.arm.ident 0 : { KEEP (*(.not= e.arm.ident)) } /DISCARD/ 0 : { *(.fini_array*) } .fixed_vectors 0x20 : { . =3D .; KEEP (*(.fixed_vectors)) } > sram SECTION_sram_code (sram, ALIGN (0x4), ) .rom_vectors 0x02008000 : { __rom_vectors_vma =3D ABSOLUTE(.); . =3D .;= KEEP (*(.vectors)) } > ram __rom_vectors_lma =3D LOADADDR(.rom_vectors); ... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The offending line 17 is the one that starts with SECTION_sram_code; delete= this line to fix the link error. That looks like the syntax for the .ldi file instead of the target.ld file. Anyways, thought I'd mention how to find/fix this so the mailing list searc= h engine can find it. I found a few cases where other people hit the same = quirky linker error and didn't know what to do to fix it... p.s., I can supply the ecos.ecc file if that would help anyone reproduce/fi= x the bug... -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss