From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7493 invoked by alias); 10 Jan 2013 00:45:16 -0000 Received: (qmail 7458 invoked by uid 22791); 10 Jan 2013 00:45:13 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RP_MATCHES_RCVD,TW_LG,TW_MG X-Spam-Check-By: sourceware.org Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Jan 2013 00:45:06 +0000 Received: from [192.168.1.178] (192.168.1.178) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.1.436.0; Wed, 9 Jan 2013 18:45:05 -0600 Message-ID: <50EE0F11.8020804@oarcorp.com> Date: Thu, 10 Jan 2013 00:45:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121121 Thunderbird/10.0.11 MIME-Version: 1.0 To: Igor Pashev CC: "binutils@sourceware.org" , nick clifton Subject: Re: v850 ld error References: <50EDB7DE.7070902@oarcorp.com> <50EDF303.3070107@gmail.com> In-Reply-To: <50EDF303.3070107@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00132.txt.bz2 On 01/09/2013 04:45 PM, Igor Pashev wrote: > 09.01.2013 22:33, Joel Sherrill пишет: >> Hi >> >> Testing binutils and gcc heads, I am getting this error when >> linking the autoconf probe for RTEMS when the CPU CFLAG >> -mgcc-abi is used: >> >> $ cat m.c >> main() >> { >> } >> [joel@rtbf64a test-gcc]$ v850-rtems4.11-gcc -mgcc-abi m.c >> >> >> /users/joel/test-gcc/install-svn/libexec/gcc/v850-rtems4.11/4.8.0/collect2 >> -m v850 >> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi/crt0.o >> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi >> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi >> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0 >> -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib >> /tmp/ccuPHsB7.o -lgcc -lc -lgcc >> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/bin/ld: >> skipping incompatible >> /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi/libgcc.a >> when searching for -lgcc >> >> I don't have any patches to gcc or binutils. >> >> Any suggestions on what to look for? >> > Well, libgcc_s is not of that arch which ld expects. Well Doh! The gcc-abi and 8byte multilib variants appeared to have been added around 2012-11-20 by Nick Clifton. I think he missed changing the ASM_SPEC in gcc/config/v850/rtems.h when he added it. v850-rtems-gcc wasn't passing in the expected cpu specification flags. Nick.. how does this patch to gcc/config/v850/rtems.h look? Index: rtems.h =================================================================== --- rtems.h (revision 195054) +++ rtems.h (working copy) @@ -26,4 +26,8 @@ /* Map mv850e1 and mv850es to mv850e to match MULTILIB_MATCHES */ #undef ASM_SPEC -#define ASM_SPEC "%{mv850es:-mv850e} %{mv850e1:-mv850e} %{!mv850es:%{!mv850e1:%{mv*:-mv%*}}}" +#define ASM_SPEC "%{mv850es:-mv850e} \ +%{mv850e1:-mv850e} \ +%{!mv850es:%{!mv850e1:%{mv*:-mv%*}} \ +%{m8byte-align:-m8byte-align} \ +%{mgcc-abi:-mgcc-abi}}" -- Joel Sherrill, Ph.D. Director of Research& Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35806 Support Available (256) 722-9985