From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6793 invoked by alias); 21 Oct 2009 13:59:06 -0000 Received: (qmail 6785 invoked by uid 22791); 21 Oct 2009 13:59:05 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f223.google.com (HELO mail-fx0-f223.google.com) (209.85.220.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Oct 2009 13:58:58 +0000 Received: by fxm23 with SMTP id 23so8302723fxm.30 for ; Wed, 21 Oct 2009 06:58:55 -0700 (PDT) Received: by 10.204.34.84 with SMTP id k20mr7959316bkd.199.1256133535775; Wed, 21 Oct 2009 06:58:55 -0700 (PDT) Received: from localhost ([86.57.137.251]) by mx.google.com with ESMTPS id 14sm221815bwz.5.2009.10.21.06.58.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Oct 2009 06:58:54 -0700 (PDT) Date: Wed, 21 Oct 2009 13:59:00 -0000 From: Sergei Gavrikov To: =?iso-8859-1?Q?=D8yvind?= Harboe Cc: eCos Disuss Message-ID: <20091021140357.GA18725@sg-ubuntu.local> Mail-Followup-To: =?iso-8859-1?Q?=D8yvind?= Harboe , eCos Disuss References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes 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: Re: [ECOS] extern __inline__ and optimisation problems X-SW-Source: 2009-10/txt/msg00139.txt.bz2 On Wed, Oct 21, 2009 at 11:57:40AM +0200, Øyvind Harboe wrote: > What does "extern __inline__" mean? > > When I build w/linux synthetic target I get lots of linker > errors: > > > ./.libs/libopenocd.a(non_cfi.o): In function `difftime': > /tmp/ecosboard/synth/install/include/cyg/libc/time/time.inl:583: > multiple definition of `difftime' > ecosboard.o:/tmp/ecosboard/synth/install/include/cyg/libc/time/time.inl:583: > first defined here Hi, Nobody knows what your optimization does means, -Os, -O3, or CDLs, e.g. cdl_option CYGIMP_LIBC_TIME_DIFFTIME_INLINE { user_value 0 } ... etc. I just tried ecosconfig new linux all vi ecos.ecc ;# tweak the _guessed_ optim CDLs ... make -C language/c/libc/time/current tests and I could not reproduce the issue. eCos LIBC time tests were built sucessfully even with CYGIMP_LIBC_TIME_DIFFTIME_INLINE == {0,1} && -Os. But, I noticed .libs/libopenocd.a the above (it seems for me that is the gnu's autotools imprint), may be that build used the host's , e.g., if HAVE_SYS_TIME_H defined, or host's . May be you use a mixture of headers in the builds libopenocd.a and libtarget.a (i.e. host's & eCos'es) ? > Also when I tried to upgrade from an older arm-elf to arm-eabi, I ran > into the same problem. I'm sorry, but, you do not provide enough of details to reproduce the issue with any toolchain. Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss