In all of the pins_arduino.h headers files the pinToInterrupt is not defined.
On line 72 in the pins_arduino.h the following needs to be added:
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11 || (p) == 13)
#define digitalPinToInterrupt(p) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))
The following files are missing this macro:
Bluefruit Micro
Generic 32u4
Circuit Play
Feather
Flora