RedBearLab / nRF51822-Arduino

Moved to https://github.com/redbear/nRF5x
251 stars 109 forks source link

linux linker is case sensitive #26

Open holla2040 opened 8 years ago

holla2040 commented 8 years ago

running on ubuntu 14.04 32-bit BLE nano arduino 1.6.5

compile error arm-none-eabi-gcc: error: /tmp/build1300592631149697299.tmp/startup_NRF51822.s.o: No such file or directory

ls -l /tmp/build1300592631149697299.tmp/startup_NRF51822.S.o -rw-r--r-- 1 holla holla 5516 Aug 17 11:50 /tmp/build1300592631149697299.tmp/startup_NRF51822.S.o

fix change .arduino15/packages/RedBearLab/hardware/nRF51822/1.0.0/platform.txt

Combine gc-sections, archives, and objects

recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} {build.extra_flags} "-T{build.variant.path}/{build.ldscript}" {compiler.ldflags} "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/system_nrf51.c.o" {object_files} "{build.path}/startup_NRF51822.S.o" "{build.path}/{archive_file}" -Wl,--end-group

recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mcpu={build.mcu} -mthumb -Wl,--gc-sections --specs=nano.specs -Wl,--wrap,main -Wl,-Map={build.path}/{build.project_name}.map,--cref "-T{build.variant.path}/{build.ldscript}" -o "{build.path}/{build.project_name}.elf" -Wl,--start-group "{build.path}/system_nrf51.c.o" {object_files} "{build.path}/startup_NRF51822.S.o" "{build.path}/{archive_file}" -Wl,--end-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys

Cheong2K commented 8 years ago

Hi, yes, thank you for pointing out this, will fix it as soon as possible.