Hi Chuck,
I think I have solved it.
I had to add the $(FP_FLAGS) to the linking flags as well as the compile
ones didn't think of that ;-)
Thanks for the help,
Bernie
On Sat, Jul 11, 2015 at 6:29 PM, Bernard Mentink wrote:
> Hi Chuck,
>
> By transcript you mean the output of the linking
Hi Chuck,
By transcript you mean the output of the linking stage?
I am using gcc as a frontend to do the linking.
All my libs are compiled with the same float flags, it is the tools lib
that doesn't seem to support hard float
Here is the output from the linker stage ..
Well your next step here is to capture the entire link transcript with
nothing suppress and show it to us. Basically what that error is telling
you is that the linker is linking differently than your compiler is
compiling. You see it called out that your 'noddy.elf' file was compiled
with hard floa
Yes, I did.
On Sat, Jul 11, 2015 at 5:53 PM, Chuck McManis
wrote:
> Just checking but you put your FP_FLAGS on that link line as well right?
> --Chuck
>
>
> On Fri, Jul 10, 2015 at 10:14 PM, Bernard Mentink
> wrote:
>
>> Nope, that still did not work .. same error.
>>
>> On Sat, Jul 11, 2015 at
Just checking but you put your FP_FLAGS on that link line as well right?
--Chuck
On Fri, Jul 10, 2015 at 10:14 PM, Bernard Mentink
wrote:
> Nope, that still did not work .. same error.
>
> On Sat, Jul 11, 2015 at 4:57 PM, Chuck McManis
> wrote:
>
>> Nope, your ARCH is wrong, use the same -mcpu
Nope, that still did not work .. same error.
On Sat, Jul 11, 2015 at 4:57 PM, Chuck McManis
wrote:
> Nope, your ARCH is wrong, use the same -mcpu and it will grab the correct
> architecture.
> --Chuck
>
>
> On Fri, Jul 10, 2015 at 9:55 PM, Bernard Mentink
> wrote:
>
>> Hi Chuck,
>>
>> Thanks fo
Nope, your ARCH is wrong, use the same -mcpu and it will grab the correct
architecture.
--Chuck
On Fri, Jul 10, 2015 at 9:55 PM, Bernard Mentink wrote:
> Hi Chuck,
>
> Thanks for the quick reply. My link flags are:
>
> LINKFLAGS = -T$(LD_SCRIPT) -nostartfiles \
> -Wl,--gc-sections,-Map=$(BIN_D
Hi Chuck,
Thanks for the quick reply. My link flags are:
LINKFLAGS = -T$(LD_SCRIPT) -nostartfiles \
-Wl,--gc-sections,-Map=$(BIN_DIR)/$(OUTPUT).map \
-mthumb -march=armv7-m -L$(QP_PORT_DIR)/$(BIN_DIR) -L$(OPENCM3_DIR)/lib
I wonder if my -march is correct?
Bernie
On Sat, Jul 11, 2015 at 4:41
Well reading your error again I can see that you're error occurs when
linking not compiling, how do you link the final result?
On Fri, Jul 10, 2015 at 9:39 PM, Bernard Mentink wrote:
> Hi Chuck,
>
> Yes, I only showed you the floating point related flags, my total flags
> are:
>
> FP_FLAGS ?= -
Hi Chuck,
Yes, I only showed you the floating point related flags, my total flags are:
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
CPPFLAGS = -mcpu=cortex-m4 -mthumb -Wall \
-fno-rtti -fno-exceptions \
-Os $(INCLUDES) $(DEFINES) -DNDEBUG -fno-common \
-Wall -Wextra \
-Wredundant-decls \
You should also define the CPU type in your c-flags (not all Cortex CPUs
*have* floating point. My flags look like this:
$ make print-ARCH_FLAGS
ARCH_FLAGS=-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
$
And if you are wondering, I've got this in my Makefile.rules file ...
print-%:
Hi Guys,
I have the following error when trying to link my project after including
some files using floats.
arm-none-eabi/bin/ld: error: dbg/noddy.elf uses VFP register arguments,
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libm.a(lib_a-s_sin.o)
does not
My proj
12 matches
Mail list logo