Skip to content

[FEATURE] Proposed Updates to NuttX Dockerfile: NuttX Code + Ubuntu OS + Python + GCC + Zig #18057

Open

Description

@lupyuen

Is your feature request related to a problem? Please describe.

This PR proposes to update the NuttX Dockerfile, with changes to NuttX Code + Ubuntu OS + Python + GCC + Zig. Please comment if there are concerns:

Describe the solution you'd like

Please refer to the PR above.

Describe alternatives you've considered

No response

Verification

  • I have verified before submitting the report.

Activity

  1. added
    Type: Enhancement
    on Jan 21, 2026
  2. simbit18 commented on Jan 21, 2026

    @simbit18
    Contributor

    Hi @lupyuen, can I create a test repository for NuttX Docker image on https://github.com/nuttx this afternoon UTC?
    That way we can test everything thoroughly and identify any critical issues.

  3. lupyuen commented on Jan 21, 2026

    @lupyuen
    MemberAuthor

    @simbit18 Yep please proceed thanks! Wonder if the testing will get complicated, since we're storing and pulling the Docker Image at ghcr.io.

    @Barto22 You might wanna learn how we're testing the new Docker Image through ghcr.io.

  4. simbit18 commented on Jan 21, 2026

    @simbit18
    Contributor

    @lupyuen we need to understand how much space it takes up. The new toolchains are very heavy.

  5. simbit18 commented on Jan 22, 2026

    @simbit18
    Contributor

    @lupyuen I created the repository and also an image with all the tools and toolchains updated in @Barto22's Dockerfile.
    Now we just need to add a workflow to test the NuttX jobs matrix.

    https://github.com/NuttX/nuttx-docker-testing

  6. simbit18 commented on Jan 22, 2026

    @simbit18
    Contributor

    from job sim-01

    ====================================================================================
    Configuration/Tool: sim/adb
    2026-01-22 17:37:01
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Building NuttX...
    Cloning into 'tlsf/tlsf'...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    
    100 44130  100 44130    0     0   115k      0 --:--:-- --:--:-- --:--:--  115k
    
    100 1646k  100 1646k    0     0  3954k      0 --:--:-- --:--:-- --:--:-- 3954k
    In file included from netdev/netdev_checksum.c:27:
    netdev/netdev_checksum.c: In function 'hardware_chksum_get_proto':
    Error: netdev/netdev_checksum.c:107:37: error: implicit declaration of function 'IOB_DATA' [-Wimplicit-function-declaration]
      107 |       FAR struct ipv4_hdr_s *ipv4 = IPv4BUF;
          |                                     ^~~~~~~
    make[1]: *** [Makefile:86: netdev_checksum.o] Error 1
    make[1]: Target 'libnet.a' not remade because of errors.
    make: *** [tools/LibTargets.mk:77: net/libnet.a] Error 2
    make: Target 'all' not remade because of errors.
    /github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory
      [1/1] Normalize sim/adb
    ====================================================================================
    Cmake in present: sim/alsa
    Configuration/Tool: sim/alsa
    2026-01-22 17:37:56
    ------------------------------------------------------------------------------------
      Cleaning...
      Configuring...
      Select HOST_LINUX=y
      Select HOST_X86_64=y
       TOOLS_DIR path is "/github/workspace/sources/nuttx"
       HOST = Linux
      Building NuttX...
    [1/4] cd /github/workspace/sources/nuttx/build/libs/libc/misc && /usr/bin/cmake -E touch /github/workspace/sources/nuttx/libs/libc/misc/lib_utsname.c
    [2/4] Linking C executable nuttx
    FAILED: nuttx 
    : && /tools/ccache/bin/cc  -Wl,--gc-sections -m32 -Wl,-Ttext-segment=0x40000000 -Wl,-z,noexecstack -T nuttx.ld @CMakeFiles/nuttx.rsp -o nuttx  && :
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/14/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc: No such file or directory
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/14/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc: No such file or directory
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    cp: cannot stat 'nuttx': No such file or directory
    ====================================================================================
    
  7. simbit18 commented on Jan 23, 2026

    @simbit18
    Contributor

    Hi @lupyuen, I have added a new workflow, but I need to change the package visibility Packages permissions from private to public, otherwise the new workflow cannot access the new NuttX docker image.

    Run docker pull ghcr.io/nuttx/nuttx-docker-testing/apache-nuttx-ci-linux:latest
    Error response from daemon: denied
    Error: Process completed with exit code 1
    

    Can I proceed?

  8. lupyuen commented on Jan 23, 2026

    @lupyuen
    MemberAuthor

    @simbit18 Yes please proceed thanks!

  9. simbit18 commented on Jan 23, 2026

    @simbit18
    Contributor

    Hi @lupyuen, done. The new workflow is now running

    https://github.com/NuttX/nuttx-docker-testing/actions/runs/21284423363/job/61262110006

    As a test, I only added these jobs

         [
          ‘risc-v-01’, ‘sim-02’, ‘x86_64-01’, ‘other’,
          ‘arm-11’
         ]
    
  10. simbit18 commented on Jan 23, 2026

    @simbit18
    Contributor

    Hi @lupyuen, the workflow test is OK.
    Of course, updating the toolchains caused errors in the build of some board configurations.
    It might be useful for finding some currently silent bugs. :)
    I have now added all the jobs so that you can see the impact of the new NuttX image on the build of all boards.
    https://github.com/NuttX/nuttx-docker-testing/actions/runs/21285480349

    In any case, we now have a repository for testing NuttX docker images.

    @raiden00pl

  11. Barto22 commented on Jan 30, 2026

    @Barto22
    Contributor

    Sorry I didn’t see this earlier. I agree with you all — I’ve added some changes, which have already been merged. I’ll get back to this in April when the new Ubuntu LTS is released. At that point, we’ll have the latest GCC and other packages available, and I’ll try to optimize the Dockerfile and update everything.

  12. added this to the CI milestone on Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions