You don't have to do anything special to include debug info. Debug info is included by default.
Also, lazarus has a menu on the IDE, called Configure Build Lazarus. It's probably better to use that menu to build it
If you wish to use the command line, don't add OPT=-dDEBUG
This is a conditional define, not a instruction to add debug info.
But even then, this error shouldn't exist, Please report it as a bug on the bug tracker.