build with spm

spm is so confused.