Using Adafruit Bluefruit LE UART Friend as a controller

Hi. I can’t seem to get my program to work for the controller for my Adafruit Bluefruit LE UART Friend connected to an ATMega328P micricontroller that controlls the motors. I keep getting “exit status 1
Error compiling for board Arduino/Genuino Uno.”

#include <string.h>
#include <Arduino.h>
#include <SPI.h>
#include <SoftwareSerial.h>

#include "Adafruit_BLE.h"
#include "Adafruit_BluefruitLE_UART.h"

#define BLUEFRUIT_UART_MODE_PIN   13
#define BLUEFRUIT_CTS_PIN         12
#define BLUEFRUIT_TXO_PIN         11
#define BLUEFRUIT_RXI_PIN         10
#define BLUEFRUIT_RTS_PIN          9


uint8_t readPacket(Adafruit_BLE *ble, uint16_t timeout);
float parsefloat(uint8_t *buffer);
extern uint8_t packetbuffer[];

void setup()
{
  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, INPUT);
  pinMode(11, INPUT);
  pinMode(12, INPUT);
  
 
  pinMode(5, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(2, OUTPUT);
  pinMode(1, OUTPUT);
  pinMode(0, OUTPUT);

  digitalWrite(5, HIGH);
  digitalWrite(4, HIGH);
  digitalWrite(3, HIGH);
  digitalWrite(2, HIGH);
  digitalWrite(1, HIGH);
  digitalWrite(0, HIGH);

}

void loop()
{
   if (packetbuffer[0] == '!') (packetbuffer[1] == 'B');
    {  //Sensor data flag
      switch (packetbuffer[2])
      {
        case '3': //Button 3 Lowers Hook
          if (packetbuffer[3] == 1) //Pressed
          {
             digitalWrite(5, LOW);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);
          }
          else if (packetbuffer[3] == 0) //Released
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);            
          }
          
        case '4': //Button 4 Raises Hook
          //if (checkCRC(buffer) == false) { break; }
          if (packetbuffer[3] == 1) //Pressed
          {
             digitalWrite(5, LOW);
             digitalWrite(4, LOW);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);
          }
          else if (packetbuffer[3] == 0) //Released
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);            
          }
          
        case '5': //Forward
         // if (checkCRC(buffer) == false) { break; }
          if (packetbuffer[3] == 1) //Pressed
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, LOW);
             digitalWrite(2, HIGH);
             digitalWrite(1, LOW);
             digitalWrite(0, HIGH);            
          }
          else if (packetbuffer[3] == 0) //Released
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);            
          }
          
        case '6': //Backward
          //if (checkCRC(buffer) == false) { break; }
          if (packetbuffer[3] == 1) //Pressed
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, LOW);
             digitalWrite(2, LOW);
             digitalWrite(1, LOW);
             digitalWrite(0, LOW);            
          }
          else if (packetbuffer[3] == 0) //Released
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);            
          }
          
        case '7': //Left
          //if (checkCRC(buffer) == false) { break; }
          if (packetbuffer[3] == 1) //Pressed
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, LOW);
             digitalWrite(2, HIGH);
             digitalWrite(1, LOW);
             digitalWrite(0, LOW);            
          }
          else if (packetbuffer[3] == 0) //Released
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);            
          }
        case '8': //Right
         // if (checkCRC(buffer) == false) { break; }
          if (packetbuffer[3] == 1) //Pressed
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, LOW);
             digitalWrite(2, LOW);
             digitalWrite(1, LOW);
             digitalWrite(0, HIGH);            
          }
          else if (packetbuffer[3] == 0) //Released
          {
             digitalWrite(5, HIGH);
             digitalWrite(4, HIGH);
             digitalWrite(3, HIGH);
             digitalWrite(2, HIGH);
             digitalWrite(1, HIGH);
             digitalWrite(0, HIGH);            
          }
      }
   }
}

You are getting a lot more information than that. You need to scroll up in the output window and read what the error actually is. You can also click on the "Copy error messages" button by the output window and then paste that into a post here using code tags and it will be easier for people to help you.

You should look at the examples that come with the Adafruit BLE library and try some of those first.