From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8312 invoked by alias); 4 Jun 2013 12:22:20 -0000 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 Received: (qmail 8301 invoked by uid 89); 4 Jun 2013 12:22:20 -0000 X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_GD autolearn=ham version=3.3.1 Received: from mail-we0-f177.google.com (HELO mail-we0-f177.google.com) (74.125.82.177) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 04 Jun 2013 12:22:18 +0000 Received: by mail-we0-f177.google.com with SMTP id m19so128120wev.8 for ; Tue, 04 Jun 2013 05:22:16 -0700 (PDT) X-Received: by 10.180.89.140 with SMTP id bo12mr1236892wib.22.1370348536800; Tue, 04 Jun 2013 05:22:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.178.229 with HTTP; Tue, 4 Jun 2013 05:21:56 -0700 (PDT) In-Reply-To: <51ADCCC1.3040208@siva.com.mk> References: <515FFBD2.6060400@siva.com.mk> <51ADCCC1.3040208@siva.com.mk> From: Davide Pippa Date: Tue, 04 Jun 2013 12:22:00 -0000 Message-ID: To: Ilija Kocho Cc: ecos-discuss@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [ECOS] GCC toolchain with HW floating-point enabled X-SW-Source: 2013-06/txt/msg00010.txt.bz2 I had passed the flags "-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=vfpv4-d16" to both compiler and linker (which both are arm-eabi-g++"), but problem was still there. I got things compiled this way: I had to copy all the libraries located in: gnutools/arm-eabi/lib/gcc/arm-eabi/4.6.3/thumb/thumb2/fpu/fpv4spd16 into the directory: gnutools/arm-eabi/lib/gcc/arm-eabi/4.6.3/ where the libraries that are linked by gcc are located. I don't know exactly if it is the same issue, but googling I found that there is some issue with gcc linker in the selection of the libraries, suggesting various workarounds... 2013/6/4 Ilija Kocho : > On 04.06.2013 12:41, Davide Pippa wrote: >> Hi! > > [SNIP] > > >> arm-eabi-g++ -I"H:/Works/Arm/PyIde/roms/04001_TWR-K70F120M/include" >> -O0 -Wall -Wa,-adhlns="main.o.lst" -fno-exceptions -fno-rtti -c >> -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -mcpu=cortex-m4 >> -mthumb -mfloat-abi=hard -mfpu=vfpv4-d16 -g3 -gdwarf-2 -o "main.o" >> "../main.cpp" >> >> I've seen there is many libgcc versions in the toolchain directory >> (gnuttols/arm-eabi/lib/gcc/), which should I pick? >> Is there some compiler flags to indicate which version to pick, or >> should I just copy files over the version that currently is being >> linked? >> > > GCC will select correct libraries on a base of floating point flags. > Therefore you need to provide same floating point flags for compilation > and linking. > > HTH > > Ilija > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss