Run the script on Ubuntu 22.04, after installing the NuttX dependencies it stops. When replacing the line linked above with GCC_FOUND_VER=0, the installation continues as expected.
I write some echo in the .sh to see where it stops, and find It stops at this line .
But when I create a new test.sh for test and copy the code paragraph bellow in it. It seems OK!
#! /usr/bin/env bash
# arm-none-eabi-gcc
NUTTX_GCC_VERSION="9-2020-q2-update"
NUTTX_GCC_VERSION_SHORT="9-2020q2"
source $HOME/.profile # load changed path for the case the script is reran before relogin
if [ $(which arm-none-eabi-gcc) ]; then
GCC_VER_STR=$(arm-none-eabi-gcc --version)
echo
echo ${GCC_VER_STR}
GCC_FOUND_VER=$(echo "$GCC_VER_STR" | grep -c "${NUTTX_GCC_VERSION}")
echo
echo $GCC_FOUND_VER
fi
Additional information
This computer was used to compile Ardupilot before, and have ros2 hamnle. I'm not sure If it has some conflict.
Describe the bug
I meet the same problem as #14888 in ubuntu22.04 When running the Ubuntu setup script (Tools/setup/ubuntu.sh) on Ubuntu 22.04, the script stops running at this line: https://github.com/PX4/PX4-Autopilot/blob/be03b7f098800d51281142cb0319cc37d36cfed2/Tools/setup/ubuntu.sh#LL168C1-L168C70
To Reproduce
Run the script on Ubuntu 22.04, after installing the NuttX dependencies it stops. When replacing the line linked above with GCC_FOUND_VER=0, the installation continues as expected.
I write some echo in the .sh to see where it stops, and find It stops at this line . But when I create a new test.sh for test and copy the code paragraph bellow in it. It seems OK!
Additional information
This computer was used to compile Ardupilot before, and have ros2 hamnle. I'm not sure If it has some conflict.