SPI didn't work for me at first, until someone pointed out that the Robot_Control library had its own version of SPI.h, mucking things up. I deleted the Robot_Control file and all was well.
What kind of errors are you seeing? Are they compile errors? When everything is fixed in the Edison software, most Arduino sketches should run unaltered.