Cannot deploy custom codelet to Kaya - Jetson Nano

Hello,

I am getting a strange error when trying to deploy a custom codelet to my robot (Kaya.) I am able to deploy any sample apps, or even my own app, unless it has a custom codelet. If I remove all references of the codelet it works and deploys to the device.

I have simplified my directory structure for debugging. This is what I have:

/isaac
…/apps
…/deploy_me
…BUILD
…deploy_me.app.json
…DeployMe.cpp
…DeployMe.hpp

BUILD

load("//engine/build:isaac.bzl", "isaac_app", "isaac_cc_module")

isaac_app(
     name = "deploy_me",
     modules = [
       "//apps/deploy_me:deploy_me_codelet"
     ]
)

isaac_cc_module(
  name = "deploy_me_codelet",
  srcs = ["DeployMe.cpp"],
  hdrs = ["DeployMe.hpp"],
)

delpoy_me.app.json

{
    "name": "deploy_me",
    "modules": [
        "//apps/deploy_me:deploy_me_codelet"
    ],
    "graph": {
        "nodes": [
            {
                "name": "deploy_me_node",
                "components" : [
                    {
                        "name": "deploy_me_component",
                        "type": "DeployMe"
                    }
                ]
            }
        ]
    },
    "config" : {
        "deploy_me_node": {
            "deploy_me_component": {
                "tick_period": "1Hz"
            }
        }
    }
}

DeployMe.hpp

#pragma once
#include "engine/alice/alice.hpp"


class DeployMe : public isaac::alice::Codelet {
    public:
    void start() override;
    void tick() override;
    void stop() override;
};

ISAAC_ALICE_REGISTER_CODELET(DeployMe);

DeployMe.cpp

#include "DeployMe.hpp"

void DeployMe::start() {
    tickPeriodically();
}

void DeployMe::tick() {
    LOG_INFO("hello!");
}

void DeployMe::stop() {}

This is the error I am getting running this command (from isaac root dir):

./engine/build/deploy.sh --remote_user {USERNAME} -p //apps/deploy_me:deploy_me-pkg -d jetpack42 -h {IP ADDRESS}
================================================================================
Building Minidump tools
================================================================================
================================================================================
Building //apps/deploy_me:deploy_me-pkg for target platform 'jetpack42'
================================================================================
INFO: Build options have changed, discarding analysis cache.
INFO: Analysed target //apps/deploy_me:deploy_me-pkg (3 packages loaded, 2850 targets configured).
INFO: Found 1 target...
ERROR: /home/shatterhand/Projects/Navon/isaac/apps/deploy_me/BUILD:10:1: Couldn't build file apps/deploy_me/_objs/_deploy_me_codelet/DeployMe.pic.o: C++ compilation of rule '//apps/deploy_me:_deploy_me_codelet' failed (Exit 1) crosstool_wrapper_driver_is_not_gcc.py failed: error executing command external/toolchain/crosstool/scripts/crosstool_wrapper_driver_is_not_gcc.py -D_DEFAULT_SOURCE -U_FORTIFY_SOURCE -D__STDC_FORMAT_MACROS -fPIC -O2 -ggdb2 '-D_FORTIFY_SOURCE=2' -DNDEBUG ... (remaining 171 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
Traceback (most recent call last):
  File "external/toolchain/crosstool/scripts/crosstool_wrapper_driver_is_not_gcc.py", line 259, in <module>
    sys.exit(main())
  File "external/toolchain/crosstool/scripts/crosstool_wrapper_driver_is_not_gcc.py", line 256, in main
    return subprocess.call([CPU_COMPILER] + cpu_compiler_flags)
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Target //apps/deploy_me:deploy_me-pkg failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.233s, Critical Path: 10.33s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 45 processes: 45 linux-sandbox.
FAILED: Build did NOT complete successfully

Update: So If I remove the modules entry for the Codelet from isaac_app() BUILD file, it lets me deploy. However, this fails compilation because its no longer referencing the Codelet in the BUILD file…

Update: Nothing was seeming to work, so I reinstalled the SDK.