So, I got a new PC and yesterday I downloaded and installed FPC2.4.0 and the latest Devkitpro, I had some old projects that I started some time ago for DS and I want to continue.
After some compilation errors, I found that setup script only worked for an older devkitpro version, so I configured the paths manually. But it still does not work, not even with the demos in 'examples' folder

Code:
C:\devkitPro\devkitARM\arm-eabi\lib\\libsysbase.a(abort.o): In function `abort':
(.text+0x10): undefined reference to `write'
DisplayList.pp(12,3) Error: Error while linking
DisplayList.pp(12,3) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Do anyone knows if there is a way to make it work, or latest version of FPC is not compatible with devkitpro R30?