/usr/lib/fpc/3.3.0/units/x86_64-linux/ncurses.ppu
FPC 3.3.0 does not exist. (Frankly, may never exist since trunk imho warrants a major release (like 4.0), but at least it would be in the future)
And trunk is still 3.1.1.
How did you install and from where?
Does line 4 refer to a library? Which one? libncurses?