Responding to this really late, but I had this issue and it ended up being a makefile error.
I had forgotten to include all: $(MODULE_NAME).o in my makefile.
all: $(MODULE_NAME).o
Make sure to check your make file if you're someone stumbling across this same issue.