Sorry for silly question.
I found out that Arduino platform using another pin mapping (or naming) and it is NOT related to the physical pin number of the chip. For ATmega328, arduino mapping is as following:
https://www.arduino.cc/en/Hacking/PinMapping168Therefore, the SS pin (physical pin number is pin 14) is named as pin 10 in Arduino platform.