Hi,
Its rejecting all the Special Function Registers so I suspect it something like you have not changed all reference to the original chip.
There are usually three points - two in the beginning of the code -
P=pic16F877 and the Include pic 16F877, then on the mplab toolbar go into 'Configure' and 'Select Device' to = 16F877 and that should build OK.
Unfortunately you still have a problem, the 882/6 chips use its main internal oscillator but the 877 does not have one so must use another external crystal, which means you must use two of the i/o ports that have been allocated to driving the leds, so that would seem to compromise the design.
( the crystal you can see in the circuit diagram is soley for the Real TIme clock)
You can get round the crystal problem and moving the leds onto other spare ports on the 877 chip but you will have to recode accordingly.
Might be easier to send off for the right chip.