PaulStoffregen
Well-known member
Any chance you'll give us (hopefully reasonably small) code to reproduce this error in Arduino+Teensyduino?
Any chance you'll give us (hopefully reasonably small) code to reproduce this error in Arduino+Teensyduino?
I finally converted my code into an Arduino compatible structure .... Same errors.
You can't just show us this converted code which has the same errors with Arduino?
extern "C" int _write(){return -1;}
c:/users/wdahar/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16\libg.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x12): undefined reference to `_write'
c:/users/wdahar/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: .ARM.exidx has both ordered [`.ARM.exidx.text._ZNSt8__detail15_List_node_base9_M_unhookEv' in c:/users/wdahar/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16\libstdc++.a(list.o)] and unordered [`.ARM.extab.text._ZSt17__throw_bad_allocv' in c:/users/wdahar/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16\libstdc++.a(functexcept.o)] sections
c:/users/wdahar/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: final link failed: Bad value
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\debug\firmware.elf] Error 1
I have been having trouble getting any toolchain built for my windows host.