Skip to content

It's not possible to build on jetson nano #40

@misk

Description

@misk

I have tried to compile this project on jetson nano
balena OS: balenaOS 2.88.4+rev1

Docker.template

FROM balenalib/%%BALENA_MACHINE_NAME%%-debian

RUN apt-get update && apt-get install -y curl wget build-essential libelf-dev awscli bc flex libssl-dev python bison
COPY . /usr/src/app
WORKDIR /usr/src/app

ENV VERSION '2.88.4+rev1.prod'
RUN BALENA_MACHINE_NAME=%%BALENA_MACHINE_NAME%% ./build.sh build --device %%BALENA_MACHINE_NAME%% --os-version "$VERSION" --src example_module

CMD ./run.sh

Output:

[main]     2022-02-05 18:55:18 (15.4 MB/s) - ‘kernel_modules_headers.tar.gz’ saved [10491890/10491890]
[main]
[main]     make: Entering directory '/tmp/tmp.E1dC3ci86A'
[main]       CC [M]  /usr/src/app/output/example_module_jetson-nano_2.88.4+rev1.prod/hello.o
[main]     scripts/basic/fixdep: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by scripts/basic/fixdep)
[main]     scripts/basic/fixdep: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by scripts/basic/fixdep)
[main]
[main]     make[1]: *** [scripts/Makefile.build:342: /usr/src/app/output/example_module_jetson-nano_2.88.4+rev1.prod/hello.o] Error 1
[main]
[main]     make: *** [Makefile:1655: _module_/usr/src/app/output/example_module_jetson-nano_2.88.4+rev1.prod] Error 2
[main]
[main]     make: Leaving directory '/tmp/tmp.E1dC3ci86A'
[main]     Removing intermediate container 71480fb5a829
[main]     The command '/bin/sh -c BALENA_MACHINE_NAME=jetson-nano ./build.sh build --device jetson-nano --os-version "$VERSION" --src example_module' returned a non-zero code: 2
[Info]     Uploading images
[Success]  Successfully uploaded images
[Error]    Some services failed to build:
[Error]      Service: main
[Error]        Error: The command '/bin/sh -c BALENA_MACHINE_NAME=jetson-nano ./build.sh build --device jetson-nano --os-version "$VERSION" --src example_module' returned a non-zero code: 2
[Info]     Built on arm03
[Error]    Not deploying release.

remote: error: hook declined to update refs/heads/master
 ! [remote rejected] master -> master (hook declined)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions