BTW, I don’t recommend using the -mfcu switch - it makes it hard to break up your compilation into units that can be organized and compiled separately, forcing you to always compile your entire design in a single step. So called “incremental compile” features can save some time, but the compiler still has to access all your files to see what has changed.
So, here once you define something in a package it is different than including a define directly. So compiler could not look for define macro which is defined inside the package. Please note the difference between referring something from package and using compiler define directives.