I always get this warning due to the way I set up my fpc.cfg (it contains path to Lazarus' units as well, to compile Lazarus project from outside Lazarus), but I can compile without problems. Perhaps you're having the same problem? Just check the warning messages, it points to the conflicting units.