PWM error in compiling sketch

It usually helps if you post it here

pinMode(PB6, PWM); 

What exactly are you trying to do with this line of code ?
The only valid options for pinMode() are INPUT, INPUT_PULLUP and OUTPUT