johnnyfp
Well-known member
Hi,
I'm trying to get make to work using these instructions with a Teensy 3.6 and am failing to link to a math file with the following error
Any ideas?
Build options from my boards.txt
I'm trying to get make to work using these instructions with a Teensy 3.6 and am failing to link to a math file with the following error
Code:
/usr/share/arduino/hardware/tools/arm/bin/arm-none-eabi-gcc -mthumb --specs=nano.specs -larm_cortexM4lf_math -T/usr/share/arduino/hardware/teensy/cores/teensy3/mk66fx1m0.ld -mcpu=cortex-m4 -Wl,--gc-sections -Os -o build-teensy36/blink.elf build-teensy36/blink.o build-teensy36/libcore.a -lc -lm
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: cannot find -larm_cortexM4lf_math
Any ideas?
Build options from my boards.txt
Code:
teensy36.build.additionalobject1=-larm_cortexM4lf_math
teensy36.build.architecture=arm
teensy36.build.board=TEENSY36
teensy36.build.core=teensy3
teensy36.build.cpu=cortex-m4
teensy36.build.fpu=fpv4-sp-d16
teensy36.build.mcu=mk66fx1m0
teensy36.build.warn_data_percentage=99
teensy36.build.toolchain=arm/bin/
teensy36.build.command.gcc=arm-none-eabi-gcc
teensy36.build.command.g++=arm-none-eabi-g++
teensy36.build.command.ar=arm-none-eabi-ar
teensy36.build.command.objcopy=arm-none-eabi-objcopy
teensy36.build.command.objdump=arm-none-eabi-objdump
teensy36.build.command.size=arm-none-eabi-size
teensy36.buils.cppoption1=-fno-rtti
teensy36.build.dependency=true
teensy36.build.flags.common=-g -Wall -ffunction-sections -fdata-sections -nostdlib
teensy36.build.flags.dep=-MMD
teensy36.build.flags.optimize=-Os
teensy36.build.flags.cpu=-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant
teensy36.build.flags.defs=-D__MK66FX1M0__ -DTEENSYDUINO=130
teensy36.build.flags.cpp=-fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti
teensy36.build.flags.c=
teensy36.build.flags.S=-x assembler-with-cpp
teensy36.build.flags.ld=-Wl,--gc-sections,--relax,--defsym=__rtc_localtime={extra.time.local} "-T{build.core.path}/mk66fx1m0.ld"
teensy36.build.flags.libs=-larm_cortexM4lf_math -lm
teensy36.build.gnu0x=true
teensy36.build.linkoption1=-mthumb
teensy36.build.linkoption2=--specs=nano.specs
teensy36.build.linkscript=mk66fx1m0.ld
teensy36.build.option1=-mthumb
teensy36.build.option2=-nostdlib
teensy36.build.option3=-D__MK66FX1M0__
teensy36.build.option4=-DTEENSYDUINO=130
teensy36.build.option5=-fsingle-precision-constant
teensy36.build.option6=-mfloat-abi=hard
teensy36.build.option7=-mfpu=fpv4-sp-d16
teensy36.build.post_compile_script=teensy_post_compile