Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find ruby when trying to run unit tests #100

Closed
maahinberiLW opened this issue May 29, 2024 · 1 comment
Closed

Unable to find ruby when trying to run unit tests #100

maahinberiLW opened this issue May 29, 2024 · 1 comment

Comments

@maahinberiLW
Copy link

Hi,
I am trying to run unit tests using the nrf-docker project.
Here, I'm trying to run the NRF Unity tests sample


// Fetch and Build the nrfDocker image
- git clone https://github.com/NordicPlayground/nrf-docker
- cd nrf-docker
- docker build -t nrfconnect-sdk --build-arg sdk_nrf_version=v2.5.0 .
- cd ..
           
// Trigger the NRF build
- docker run --rm
    -v ${PWD}:/workdir/project
    -w /workdir/nrf/tests/unity/example_test
    nrfconnect-sdk
    west build -b native_posix -t run --build-dir /workdir/project/build

However, when I try to run this, I get an error saying "unable to find Ruby"
Here's the full output:


-- west build: generating a build system

Loading Zephyr default modules (Zephyr base).

-- Application: /workdir/nrf/tests/unity/example_test

-- CMake version: 3.21.0

-- Using NCS Toolchain 2.6.20240304.188451165982 for building. (/root/ncs/toolchains/2be090971e/cmake)

-- Found Python3: /root/ncs/toolchains/2be090971e/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 

-- Cache files will be written to: /workdir/zephyr/.cache

-- Zephyr version: 3.5.99 (/workdir/zephyr)

-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")

-- Board: native_posix

-- Found host-tools: zephyr 0.16.5 (/root/ncs/toolchains/2be090971e/opt/zephyr-sdk)

-- Found toolchain: host (gcc/ld)

-- Found Dtc: /root/ncs/toolchains/2be090971e/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 

-- Found BOARD.dts: /workdir/zephyr/boards/posix/native_posix/native_posix.dts

-- Generated zephyr.dts: /workdir/project/build/zephyr/zephyr.dts

-- Generated devicetree_generated.h: /workdir/project/build/zephyr/include/generated/devicetree_generated.h

-- Including generated dts.cmake file: /workdir/project/build/zephyr/dts.cmake

Parsing /workdir/nrf/tests/unity/example_test/Kconfig

Loaded configuration '/workdir/zephyr/boards/posix/native_posix/native_posix_defconfig'

Merged configuration '/workdir/nrf/tests/unity/example_test/prj.conf'

Configuration saved to '/workdir/project/build/zephyr/.config'

Kconfig header saved to '/workdir/project/build/zephyr/include/generated/autoconf.h'

-- Found GnuLd: /usr/bin/ld.bfd (found version "2.38") 

-- The C compiler identification is GNU 11.4.0

-- The CXX compiler identification is unknown

-- The ASM compiler identification is GNU

-- Found assembler: /usr/bin/gcc

CMake Error at /workdir/nrf/tests/unity/CMakeLists.txt:54 (message):

  Unable to find ruby



-- Configuring incomplete, errors occurred!

See also "/workdir/project/build/CMakeFiles/CMakeOutput.log".

See also "/workdir/project/build/CMakeFiles/CMakeError.log".

FATAL ERROR: command exited with status 1: /root/ncs/toolchains/2be090971e/usr/local/bin/cmake -DWEST_PYTHON=/root/ncs/toolchains/2be090971e/usr/local/bin/python3.9 -B/workdir/project/build -GNinja -DBOARD=native_posix -S/workdir/nrf/tests/unity/example_test

Error: Launched process exited with non-zero status: 1

@coderbyheart
Copy link
Member

Currently this is not supported: #30

@coderbyheart coderbyheart closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants