Are you using build-std to build the standard library for your target? If so you need to tell cargo to build liballoc and not just libcore. For example using -Zbuild-std=core,alloc or build-std = ["core", "alloc"] in the config where you enable build-std.