Incorrect RTEMS Tools Installation

Hi, I’m getting the subject error while running the command rtems-test --rtems-bsp=erc32-sis build/sparc/erc32.

>> Incorrect RTEMS Tools installation.

I built the tools as below:

cd /usr/src && \
    git clone --depth 1 git://git.rtems.org/rtems-source-builder.git rsb && \
    cd /usr/src/rsb && \
    ./source-builder/sb-check && \
    cd /usr/src/rsb/rtems && \
    ../source-builder/sb-set-builder --prefix=/opt/rtems6 6/rtems-sparc && \
    cd /usr/src && \
    rm -rf rsb

I built rtems as below:

cd /usr/src && \
    git clone --depth 1 https://gitlab.rtems.org/rtems/rtos/rtems.git rtems && \
    cd rtems && \
    git fetch --all --tags && \
    git checkout tags/6.1 -b 6  && \
    mv /config.ini . && \
    ./waf configure \
    --prefix=/opt/rtems6 && \
    ./waf && \
    ./waf install

config.ini contains the following:

[DEFAULT]
RTEMS_POSIX_API = True
BUILD_TESTS = True
[sparc/erc32]

What version of python is installed on the system?

As of python 3.13, telnetlib is dropped from the core packages. There is often a direct replacement available in the package system. For Debian systems this is “python3-zombie-telnetlib”.

2 Likes

Is there an issue for this?

python --version

>> Python 3.13.5

Yes. I installed the python3-zombie-telnetlib and it resolved the issue. The tests are now running fine! :+1:

1 Like

I had the same issue and this worked. Thanks!

What is the usual practice here? Can anyone create an issue in gitlab for this?

There is already an issue in gitlab to address this: RTEMS tester fails with telnet under python 3.13 (#30) · Issues · RTEMS / Tools / RTEMS Tools · GitLab

There is a workaround and we haven’t had time to address it.