Cannot deploy custom codelet to Kaya - Jetson Nano


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:



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

     name = "deploy_me",
     modules = [

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

    "name": "deploy_me",
    "modules": [
    "graph": {
        "nodes": [
                "name": "deploy_me_node",
                "components" : [
                        "name": "deploy_me_component",
                        "type": "DeployMe"
    "config" : {
        "deploy_me_node": {
            "deploy_me_component": {
                "tick_period": "1Hz"


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

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



#include "DeployMe.hpp"

void DeployMe::start() {

void DeployMe::tick() {

void DeployMe::stop() {}

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

./engine/build/ --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) failed: error executing command external/toolchain/crosstool/scripts/ -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/", line 259, in <module>
  File "external/toolchain/crosstool/scripts/", line 256, in main
    return[CPU_COMPILER] + cpu_compiler_flags)
  File "/usr/lib/python2.7/", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/", 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.